Skip to content

Commit

Permalink
KVM: emulator: Propagate fault in far jump emulation
Browse files Browse the repository at this point in the history
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed May 22, 2011
1 parent 8d7d810 commit 4947e7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/x86/kvm/emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -3993,7 +3993,8 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt)
jump_far:
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;

c->eip = 0;
Expand Down

0 comments on commit 4947e7c

Please sign in to comment.