diff options
author | Eric Auger <eric.auger@linaro.org> | 2015-06-02 14:56:23 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2015-06-02 14:56:25 +0100 |
commit | 9718e4ae362d2f221ec028cdacefafc593ef1357 (patch) | |
tree | 17b0515117789c0fe475731d05d3333a45d7b16d /hw/intc | |
parent | 1850b6b7d027bb4b45010a7d1da919267fff2cd4 (diff) | |
download | qemu-9718e4ae362d2f221ec028cdacefafc593ef1357.zip qemu-9718e4ae362d2f221ec028cdacefafc593ef1357.tar.gz qemu-9718e4ae362d2f221ec028cdacefafc593ef1357.tar.bz2 |
arm_gicv2m: set kvm_gsi_direct_mapping and kvm_msi_via_irqfd_allowed
After introduction of kvm_arch_msi_data_to_gsi, kvm_gsi_direct_mapping
now can be set on ARM. Also kvm_msi_via_irqfd_allowed can be set,
depending on kernel irqfd support, hence enabling VIRTIO-PCI with
vhost back-end.
Signed-off-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/intc')
-rw-r--r-- | hw/intc/arm_gicv2m.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/intc/arm_gicv2m.c b/hw/intc/arm_gicv2m.c index 9f84f72..43d1976 100644 --- a/hw/intc/arm_gicv2m.c +++ b/hw/intc/arm_gicv2m.c @@ -148,6 +148,8 @@ static void gicv2m_realize(DeviceState *dev, Error **errp) } msi_supported = true; + kvm_gsi_direct_mapping = true; + kvm_msi_via_irqfd_allowed = kvm_irqfds_enabled(); } static void gicv2m_init(Object *obj) |