summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))