summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYosry Ahmed <yosry.ahmed@linux.dev>2026-02-19 02:09:56 +0300
committerSean Christopherson <seanjc@google.com>2026-03-05 03:09:01 +0300
commitef09eebc5736add3415b6efb009fdb7c47a504c7 (patch)
treec1031d7ec963c76f2452f0fd4f2273deee55eee6
parent586160b750914d5bd636f395a2ba9248c6f346e5 (diff)
downloadlinux-ef09eebc5736add3415b6efb009fdb7c47a504c7.tar.xz
KVM: nSVM: Use vmcb12_is_intercept() in nested_sync_control_from_vmcb02()
Use vmcb12_is_intercept() instead of open-coding the intercept check. No functional change intended. Signed-off-by: Yosry Ahmed <yosry.ahmed@linux.dev> Link: https://patch.msgid.link/20260218230958.2877682-7-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
-rw-r--r--arch/x86/kvm/svm/nested.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c
index 46804b54200d..c965d10f3187 100644
--- a/arch/x86/kvm/svm/nested.c
+++ b/arch/x86/kvm/svm/nested.c
@@ -570,7 +570,7 @@ void nested_sync_control_from_vmcb02(struct vcpu_svm *svm)
* int_ctl (because it was never recognized while L2 was running).
*/
if (svm_is_intercept(svm, INTERCEPT_VINTR) &&
- !test_bit(INTERCEPT_VINTR, (unsigned long *)svm->nested.ctl.intercepts))
+ !vmcb12_is_intercept(&svm->nested.ctl, INTERCEPT_VINTR))
mask &= ~V_IRQ_MASK;
if (nested_vgif_enabled(svm))