Signed-off-by: Sean Christopherson <sean.j.christopherson@xxxxxxxxx> --- arch/x86/kvm/x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index d6dd701c471f..5c520bb2f649 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -7860,7 +7860,7 @@ static int leave_smm(struct kvm_vcpu *vcpu) } if ((vcpu->arch.hflags & HF_SMM_INSIDE_NMI_MASK) == 0) - ctxt->ops->set_nmi_mask(ctxt, false); + kvm_x86_ops->set_nmi_mask(vcpu, false); kvm_set_hflags(vcpu, vcpu->arch.hflags & ~(HF_SMM_INSIDE_NMI_MASK | HF_SMM_MASK)); -- 2.21.0