]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Check for an unexpected VM-Exit after RETPOLINE "fast" handling
authorSean Christopherson <seanjc@google.com>
Tue, 30 Dec 2025 21:13:42 +0000 (13:13 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 01:37:03 +0000 (17:37 -0800)
commit194c17bf5ebadd2fcf52ac641793e3d755a7af55
tree25b6b3a9c17d2eb1f958698110195ad80eb7a6ef
parent2450c9774510e45c506df4a1b46d129435993ff6
KVM: SVM: Check for an unexpected VM-Exit after RETPOLINE "fast" handling

Check for an unexpected/unhandled VM-Exit after the manual RETPOLINE=y
handling.  The entire point of the RETPOLINE checks is to optimize for
common VM-Exits, i.e. checking for the rare case of an unsupported
VM-Exit is counter-productive.  This also aligns SVM and VMX exit handling.

No functional change intended.

Reviewed-by: Yosry Ahmed <yosry.ahmed@linux.dev>
Link: https://patch.msgid.link/20251230211347.4099600-4-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c