KVM: x86: latch INITs while in system management mode
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2015 08:41:21 +0000 (10:41 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jun 2015 14:01:51 +0000 (16:01 +0200)
commitcd7764fe9f73530b20a0f2310fa753af635fabb3
tree4a82128e03604182b8501d4df46dbd2cee880db8
parent64d6067057d9658acb8675afcfba549abdb7fc16
KVM: x86: latch INITs while in system management mode

Do not process INITs immediately while in system management mode, keep
it instead in apic->pending_events.  Tell userspace if an INIT is
pending when they issue GET_VCPU_EVENTS, and similarly handle the
new field in SET_VCPU_EVENTS.

Note that the same treatment should be done while in VMX non-root mode.

Reviewed-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c