KVM: SVM: add wrappers to enable/disable IRET interception
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 27 Feb 2023 08:40:09 +0000 (14:10 +0530)
committerSean Christopherson <seanjc@google.com>
Wed, 22 Mar 2023 19:34:32 +0000 (12:34 -0700)
commit772f254d4d5687ee349cbe443959bc01304880d6
treea864382c85dba50ad6c07340440b1035f776b4fd
parent5d1ec4565200f461943990f0988932ca86823087
KVM: SVM: add wrappers to enable/disable IRET interception

SEV-ES guests don't use IRET interception for the detection of
an end of a NMI.

Therefore it makes sense to create a wrapper to avoid repeating
the check for the SEV-ES.

No functional change is intended.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
[Renamed iret intercept API of style svm_{clr,set}_iret_intercept()]
Signed-off-by: Santosh Shukla <Santosh.Shukla@amd.com>
Link: https://lore.kernel.org/r/20230227084016.3368-5-santosh.shukla@amd.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c