qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM
@ 2012-11-03 18:49 Blue Swirl
  2012-11-03 18:51 ` Jan Kiszka
  0 siblings, 1 reply; 10+ messages in thread
From: Blue Swirl @ 2012-11-03 18:49 UTC (permalink / raw)
  To: qemu-devel; +Cc: blauwirbel, Jan Kiszka

Ignore accesses to VAPIC when kvmvapic is not enabled.

Cc: Jan Kiszka <jan.kiszka@web.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
---
 hw/kvmvapic.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/hw/kvmvapic.c b/hw/kvmvapic.c
index dc111ee..a97d532 100644
--- a/hw/kvmvapic.c
+++ b/hw/kvmvapic.c
@@ -612,6 +612,9 @@ static void vapic_write(void *opaque, hwaddr addr, uint64_t data,
     hwaddr rom_paddr;
     VAPICROMState *s = opaque;
 
+    if (!kvm_irqchip_in_kernel()) {
+        return;
+    }
     cpu_synchronize_state(env);
 
     /*
@@ -665,9 +668,7 @@ static void vapic_write(void *opaque, hwaddr addr, uint64_t data,
         break;
     default:
     case 4:
-        if (!kvm_irqchip_in_kernel()) {
-            apic_poll_irq(env->apic_state);
-        }
+        apic_poll_irq(env->apic_state);
         break;
     }
 }
-- 
1.7.2.5

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2012-11-03 21:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-03 18:49 [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM Blue Swirl
2012-11-03 18:51 ` Jan Kiszka
2012-11-03 18:56   ` Blue Swirl
2012-11-03 19:03     ` Jan Kiszka
2012-11-03 19:10       ` Blue Swirl
2012-11-03 19:10       ` Jan Kiszka
2012-11-03 19:26         ` Blue Swirl
2012-11-03 19:37           ` Jan Kiszka
2012-11-03 20:57             ` Jan Kiszka
2012-11-03 21:00               ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).