KVM: emulator: Propagate fault in far jump emulation
authorGleb Natapov <gleb@redhat.com>
Tue, 12 Apr 2011 09:36:23 +0000 (12:36 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:51 +0000 (08:39 -0400)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/emulate.c

index 7466abae84bf513d2879aa9c5a74f0e128141a83..3624f202b440aaf1251d5a6c29684c2a56bbca00 100644 (file)
@@ -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;