From: Avi Kivity <[email protected]>

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/hw/apic.c b/hw/apic.c
index cdb5972..778a853 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -1088,7 +1088,9 @@ int apic_init(CPUState *env)
     s->cpu_env = env;
 
     apic_reset(s);
-    msix_supported = 1;
+    if (!kvm_enabled() || !qemu_kvm_irqchip_in_kernel()) {
+        msix_supported = 1;
+    }
 
     /* XXX: mapping more APICs at the same memory location */
     if (apic_io_memory == 0) {
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to