KVM: SVM: Use "standard" stgi() helper when disabling SVM
authorSean Christopherson <seanjc@google.com>
Fri, 21 Jul 2023 20:18:58 +0000 (13:18 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 3 Aug 2023 22:37:15 +0000 (15:37 -0700)
commit2e6b9bd49b702c4a52278e35202354b709021116
treef25bca152e137fc7026a47effec2f204883c6d2b
parent6ae44e012f4c35fb67bc61bd0bf1b3c5f504d931
KVM: SVM: Use "standard" stgi() helper when disabling SVM

Now that kvm_rebooting is guaranteed to be true prior to disabling SVM
in an emergency, use the existing stgi() helper instead of open coding
STGI.  In effect, eat faults on STGI if and only if kvm_rebooting==true.

Link: https://lore.kernel.org/r/20230721201859.2307736-19-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c