diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index ec7f8425974da30195ab5104306b563240596645..00d0293ba6220aea5dc7d555cd507b97501d1692 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -2957,6 +2957,7 @@ static int em_sysexit(struct x86_emulate_ctxt *ctxt) ops->set_segment(ctxt, ss_sel, &ss, 0, VCPU_SREG_SS); ctxt->_eip = rdx; + ctxt->mode = usermode; *reg_write(ctxt, VCPU_REGS_RSP) = rcx; return X86EMUL_CONTINUE;