]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Inject #UD for INVLPGA if EFER.SVME=0
authorKevin Cheng <chengkev@google.com>
Sat, 28 Feb 2026 03:33:26 +0000 (03:33 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 5 Mar 2026 00:08:42 +0000 (16:08 -0800)
commitd99df02ff427f461102230f9c5b90a6c64ee8e23
treeed52b474116fb30604843b3a4b3c9ba9a1405b96
parentc64bc6ed1764c1b7e3c0017019f743196074092f
KVM: SVM: Inject #UD for INVLPGA if EFER.SVME=0

INVLPGA should cause a #UD when EFER.SVME is not set. Add a check to
properly inject #UD when EFER.SVME=0.

Fixes: ff092385e828 ("KVM: SVM: Implement INVLPGA")
Cc: stable@vger.kernel.org
Signed-off-by: Kevin Cheng <chengkev@google.com>
Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20260228033328.2285047-3-chengkev@google.com
[sean: tag for stable@]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c