summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2013-09-26 16:18:47 +1000
committerAlexander Graf <agraf@suse.de>2013-10-25 23:25:47 +0200
commit9554233c9b8fe7d94dfa53db09ce3d186f2e8b9e (patch)
tree4ab77e23fef9bf6db87695a400f83a5639edf374 /hw
parent5d87e4b74a0100fbb7970edaa3449eb04b06f782 (diff)
downloadhqemu-9554233c9b8fe7d94dfa53db09ce3d186f2e8b9e.zip
hqemu-9554233c9b8fe7d94dfa53db09ce3d186f2e8b9e.tar.gz
xics-kvm: enable irqfd for MSI
This enables IRQFD support for sPAPR. The feature decreases the latency of interrupt handling. To enable IRQFD for MSI, this sets kvm_gsi_direct_mapping to true which enables direct MSI mapping. To enable IRQFD for LSI (level triggered INTx interrupts), a PCI host bus callback is required. The patch for that is coming next. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw')
-rw-r--r--hw/intc/xics_kvm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c
index a2ccafa..c203646 100644
--- a/hw/intc/xics_kvm.c
+++ b/hw/intc/xics_kvm.c
@@ -441,6 +441,12 @@ static void xics_kvm_realize(DeviceState *dev, Error **errp)
goto fail;
}
}
+
+ kvm_kernel_irqchip = true;
+ kvm_irqfds_allowed = true;
+ kvm_msi_via_irqfd_allowed = true;
+ kvm_gsi_direct_mapping = true;
+
return;
fail:
OpenPOWER on IntegriCloud