Loading arch/x86/kvm/emulate.c +4 −3 Original line number Diff line number Diff line Loading @@ -668,8 +668,6 @@ static int __linearize(struct x86_emulate_ctxt *ctxt, la = seg_base(ctxt, addr.seg) + addr.ea; switch (ctxt->mode) { case X86EMUL_MODE_REAL: break; case X86EMUL_MODE_PROT64: if (((signed long)la << 16) >> 16 != la) return emulate_gp(ctxt, 0); Loading Loading @@ -699,6 +697,9 @@ static int __linearize(struct x86_emulate_ctxt *ctxt, goto bad; } cpl = ctxt->ops->cpl(ctxt); if (ctxt->mode == X86EMUL_MODE_REAL) rpl = 0; else rpl = sel & 3; cpl = max(cpl, rpl); if (!(desc.type & 8)) { Loading Loading
arch/x86/kvm/emulate.c +4 −3 Original line number Diff line number Diff line Loading @@ -668,8 +668,6 @@ static int __linearize(struct x86_emulate_ctxt *ctxt, la = seg_base(ctxt, addr.seg) + addr.ea; switch (ctxt->mode) { case X86EMUL_MODE_REAL: break; case X86EMUL_MODE_PROT64: if (((signed long)la << 16) >> 16 != la) return emulate_gp(ctxt, 0); Loading Loading @@ -699,6 +697,9 @@ static int __linearize(struct x86_emulate_ctxt *ctxt, goto bad; } cpl = ctxt->ops->cpl(ctxt); if (ctxt->mode == X86EMUL_MODE_REAL) rpl = 0; else rpl = sel & 3; cpl = max(cpl, rpl); if (!(desc.type & 8)) { Loading