]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6d6b2ca736d0ce3d598ff945666d3cd9f67f49c1
treea21d0ef04e3bf831b2f9e674b6266535267cc9ce
parent0175f43d2b7f0ade5d14578af68ab3f371bb4c81
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