diff options
author | Jan Kiszka <jan.kiszka@siemens.com> | 2010-01-28 09:30:51 +0100 |
---|---|---|
committer | Marcelo Tosatti <mtosatti@redhat.com> | 2010-02-03 19:47:33 -0200 |
commit | aee028b95d1d250a727583a14c864bc95ec27c69 (patch) | |
tree | fc09b65dd62538bf5d830407492ccabcd66d7731 /target-i386/kvm.c | |
parent | 62a2744ca09a0b44b8406ea0c430c4c67a2c3231 (diff) |
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/kvm.c')
-rw-r--r-- | 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 5b093ce3bf..b457b96d46 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; |