[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM
From: |
Blue Swirl |
Subject: |
[Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM |
Date: |
Sat, 3 Nov 2012 18:49:21 +0000 |
Ignore accesses to VAPIC when kvmvapic is not enabled.
Cc: Jan Kiszka <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
---
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
- [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM,
Blue Swirl <=
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Blue Swirl, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Blue Swirl, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Blue Swirl, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03
- Re: [Qemu-devel] [PATCH] kvm: fix Win2k boot without KVM, Jan Kiszka, 2012/11/03