[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/6] KVM: Request setting of nmi_pending and sipi_ve
From: |
Marcelo Tosatti |
Subject: |
[Qemu-devel] [PATCH 2/6] KVM: Request setting of nmi_pending and sipi_vector |
Date: |
Wed, 3 Feb 2010 21:55:47 -0200 |
From: Jan Kiszka <address@hidden>
The final version of VCPU events in 2.6.33 will allow to skip
nmi_pending and sipi_vector on KVM_SET_VCPU_EVENTS. For now let's write
them unconditionally, which is unproblematic for upstream due to missing
SMP support. Future version which enable SMP will write them only on
reset.
Signed-off-by: Jan Kiszka <address@hidden>
Signed-off-by: Marcelo Tosatti <address@hidden>
---
target-i386/kvm.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 5b093ce..b457b96 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -794,6 +794,9 @@ static int kvm_put_vcpu_events(CPUState *env)
events.sipi_vector = env->sipi_vector;
+ events.flags =
+ KVM_VCPUEVENT_VALID_NMI_PENDING | KVM_VCPUEVENT_VALID_SIPI_VECTOR;
+
return kvm_vcpu_ioctl(env, KVM_SET_VCPU_EVENTS, &events);
#else
return 0;
--
1.6.6
- [Qemu-devel] [PATCH 0/6] [GIT PULL] qemu-kvm.git uq/master queue, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 2/6] KVM: Request setting of nmi_pending and sipi_vector,
Marcelo Tosatti <=
- [Qemu-devel] [PATCH 4/6] KVM: Make vmport KVM-compatible, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 5/6] KVM: Move and rename regs_modified, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 3/6] KVM: x86: Fix up misreported CPU features, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 6/6] Fix incoming migration with iothread, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] [PATCH 1/6] kvm: Flush coalesced MMIO buffer periodly, Marcelo Tosatti, 2010/02/03
- [Qemu-devel] Re: [PATCH 0/6] [GIT PULL] qemu-kvm.git uq/master queue, Anthony Liguori, 2010/02/08