KVM: x86: Extend KVM_SET_VCPU_EVENTS with selective updates
authorJan Kiszka <jan.kiszka@web.de>
Sun, 6 Dec 2009 17:24:15 +0000 (18:24 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sun, 27 Dec 2009 15:36:33 +0000 (13:36 -0200)
commitdab4b911a5327859bb8f969249c6978c26cd4853
treea21d0ef04e3bf831b2f9e674b6266535267cc9ce
parent6e24a6eff4571002cd48b99a2b92dc829ce39cb9
KVM: x86: Extend KVM_SET_VCPU_EVENTS with selective updates

User space may not want to overwrite asynchronously changing VCPU event
states on write-back. So allow to skip nmi.pending and sipi_vector by
setting corresponding bits in the flags field of kvm_vcpu_events.

[avi: advertise the bits in KVM_GET_VCPU_EVENTS]

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/kvm/api.txt
arch/x86/include/asm/kvm.h
arch/x86/kvm/x86.c