]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
kvm: nVMX: NMI-window and interrupt-window exiting should wake L2 from HLT
authorJim Mattson <jmattson@google.com>
Mon, 26 Nov 2018 19:22:32 +0000 (11:22 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2019 06:38:39 +0000 (08:38 +0200)
commit646f8e01fc37f383c82eb497f925759fefe440c8
tree849eb869ff2a1edf9cc32fa1d74e56b8cbcbea11
parent4d552acf337038028f7e2f63a927afb7adf65fc1
kvm: nVMX: NMI-window and interrupt-window exiting should wake L2 from HLT

[ Upstream commit 9ebdfe5230f2e50e3ba05c57723a06e90946815a ]

According to the SDM, "NMI-window exiting" VM-exits wake a logical
processor from the same inactive states as would an NMI and
"interrupt-window exiting" VM-exits wake a logical processor from the
same inactive states as would an external interrupt. Specifically, they
wake a logical processor from the shutdown state and from the states
entered using the HLT and MWAIT instructions.

Fixes: 6dfacadd5858 ("KVM: nVMX: Add support for activity state HLT")
Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
[Squashed comments of two Jim's patches and used the simplified code
 hunk provided by Sean. - Radim]
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx.c