Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4947e7cd authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity
Browse files

KVM: emulator: Propagate fault in far jump emulation



Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 8d7d8102
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;