KVM: emulator: Propagate fault in far jump emulation
Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
8d7d810255
commit
4947e7cd0e
1 changed files with 2 additions and 1 deletions
|
@ -3993,7 +3993,8 @@ special_insn:
|
||||||
jump_far:
|
jump_far:
|
||||||
memcpy(&sel, c->src.valptr + c->op_bytes, 2);
|
memcpy(&sel, c->src.valptr + c->op_bytes, 2);
|
||||||
|
|
||||||
if (load_segment_descriptor(ctxt, ops, sel, VCPU_SREG_CS))
|
rc = load_segment_descriptor(ctxt, ops, sel, VCPU_SREG_CS);
|
||||||
|
if (rc != X86EMUL_CONTINUE)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
c->eip = 0;
|
c->eip = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue