diff options
author | Greg Kurz <groug@kaod.org> | 2019-02-15 12:40:24 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-02-18 10:41:27 +1100 |
commit | f1f5b701b8978f7d783c3582252a3475c762800d (patch) | |
tree | 6d0788877290341285898463e0699307469c2bc6 /hw/intc/xics.c | |
parent | d80b2ccfa741dd689634ce6c2b2a703d7d449319 (diff) | |
download | qemu-f1f5b701b8978f7d783c3582252a3475c762800d.zip qemu-f1f5b701b8978f7d783c3582252a3475c762800d.tar.gz qemu-f1f5b701b8978f7d783c3582252a3475c762800d.tar.bz2 |
xics: Handle KVM ICS reset from the "simple" ICS code
The KVM ICS reset handler simply writes the ICS state to KVM. This
doesn't need the overkill parent_reset logic we have today. Also
we want to use the same ICS type for the KVM and non-KVM case with
pseries.
Call icp_set_kvm_state() from the "simple" ICS reset function.
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155023082407.1011724.1983100830860273401.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/intc/xics.c')
-rw-r--r-- | hw/intc/xics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/intc/xics.c b/hw/intc/xics.c index ae5d5ea..4940174 100644 --- a/hw/intc/xics.c +++ b/hw/intc/xics.c @@ -553,6 +553,10 @@ static void ics_simple_reset(DeviceState *dev) ICSStateClass *icsc = ICS_BASE_GET_CLASS(dev); icsc->parent_reset(dev); + + if (kvm_irqchip_in_kernel()) { + ics_set_kvm_state(ICS_BASE(dev)); + } } static void ics_simple_reset_handler(void *dev) |