KVM: x86: Open code kvm_set_hflags
[linux-2.6-block.git] / arch / x86 / kvm / emulate.c
index ae0d289b50fefe2b6ee1996307393d09bce7cbcb..a6b2828532530725d8c713360bb1cf830e046223 100644 (file)
@@ -2629,6 +2629,9 @@ static int em_rsm(struct x86_emulate_ctxt *ctxt)
 
        ctxt->ops->set_hflags(ctxt, ctxt->ops->get_hflags(ctxt) &
                ~(X86EMUL_SMM_INSIDE_NMI_MASK | X86EMUL_SMM_MASK));
+
+       ctxt->ops->post_leave_smm(ctxt);
+
        return X86EMUL_CONTINUE;
 }