]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: SVM: Open code handling of unexpected exits in svm_invoke_exit_handler()
authorSean Christopherson <seanjc@google.com>
Tue, 30 Dec 2025 21:13:41 +0000 (13:13 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 14 Jan 2026 01:37:03 +0000 (17:37 -0800)
commit2450c9774510e45c506df4a1b46d129435993ff6
treea4a632fa5726c5d9abbcaf3bbebf5ebb9b2aa0a3
parent217463aa329ea9a2efafd1bbfa6787e8df9091b9
KVM: SVM: Open code handling of unexpected exits in svm_invoke_exit_handler()

Fold svm_check_exit_valid() and svm_handle_invalid_exit() into their sole
caller, svm_invoke_exit_handler(), as having tiny single-use helpers makes
the code unncessarily difficult to follow.  This will also allow for
additional cleanups in svm_invoke_exit_handler().

No functional change intended.

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