]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nVMX x86: Check VMX-preemption timer controls on vmentry of L2 guests
authorKrish Sadhukhan <krish.sadhukhan@oracle.com>
Thu, 1 Nov 2018 05:21:58 +0000 (01:21 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Feb 2023 11:47:14 +0000 (12:47 +0100)
commitff1e51b8d02b4d0945cd5d6b367cec282d0f927c
tree59c60a9e7f01f5053ccf3138e65cf516be76057c
parent7bc868f083fa22ff82c3ef9fd560a2c331334ec6
nVMX x86: Check VMX-preemption timer controls on vmentry of L2 guests

[ Upstream commit 14aa61d0a9eb3ddad06c3a0033f88b5fa7f05613 ]

According to section "Checks on VMX Controls" in Intel SDM vol 3C, the
following check needs to be enforced on vmentry of L2 guests:

    If the "activate VMX-preemption timer" VM-execution control is 0, the
    the "save VMX-preemption timer value" VM-exit control must also be 0.

Signed-off-by: Krish Sadhukhan <krish.sadhukhan@oracle.com>
Reviewed-by: Mihai Carabas <mihai.carabas@oracle.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Stable-dep-of: a44b331614e6 ("KVM: x86/vmx: Do not skip segment attributes if unusable bit is set")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx.c