aboutsummaryrefslogtreecommitdiff
path: root/hw/intc/xics_kvm.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2019-02-15 12:40:30 +0100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-02-18 10:43:19 +1100
commit557b4567298a6952de347a4fb7676ff44775f495 (patch)
treebaeafa93169c06f55451d0cfd7f81530d221a68f /hw/intc/xics_kvm.c
parentf1f5b701b8978f7d783c3582252a3475c762800d (diff)
downloadqemu-557b4567298a6952de347a4fb7676ff44775f495.zip
qemu-557b4567298a6952de347a4fb7676ff44775f495.tar.gz
qemu-557b4567298a6952de347a4fb7676ff44775f495.tar.bz2
xics: Handle KVM interrupt presentation from "simple" ICS code
We want to use the "simple" ICS type in both KVM and non-KVM setups. Teach the "simple" ICS how to present interrupts to KVM and adapt sPAPR accordingly. Signed-off-by: Greg Kurz <groug@kaod.org> Message-Id: <155023082996.1011724.16237920586343905010.stgit@bahia.lan> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/intc/xics_kvm.c')
-rw-r--r--hw/intc/xics_kvm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c
index e7b8d4c..f34eacd 100644
--- a/hw/intc/xics_kvm.c
+++ b/hw/intc/xics_kvm.c
@@ -259,9 +259,8 @@ int ics_set_kvm_state(ICSState *ics)
return 0;
}
-void ics_kvm_set_irq(void *opaque, int srcno, int val)
+void ics_kvm_set_irq(ICSState *ics, int srcno, int val)
{
- ICSState *ics = opaque;
struct kvm_irq_level args;
int rc;