From: Gleb Natapov Date: Tue, 12 Apr 2011 09:36:23 +0000 (+0300) Subject: KVM: emulator: Propagate fault in far jump emulation X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4947e7cd0ee36e1aa37dfec4f7fa71cc64a2f0fd;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git KVM: emulator: Propagate fault in far jump emulation Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 7466abae84b..3624f202b44 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c @@ -3993,7 +3993,8 @@ special_insn: 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;