summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2010-01-28 09:30:51 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2010-01-31 19:20:26 -0200
commit59691c0cb129c9aa955be22573b43b26534f9db4 (patch)
treee4a0f246b5592c98abcf399fb0e19d8945d75149 /target-i386
parentSynchronize kvm headers (diff)
downloadqemu-kvm-59691c0cb129c9aa955be22573b43b26534f9db4.tar.gz
qemu-kvm-59691c0cb129c9aa955be22573b43b26534f9db4.tar.bz2
qemu-kvm-59691c0cb129c9aa955be22573b43b26534f9db4.zip
KVM: Request setting of nmi_pending and sipi_vector
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 <jan.kiszka@siemens.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-i386')
-rw-r--r--target-i386/kvm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index cb7077b41..0376cc58c 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -745,6 +745,9 @@ 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;