diff options
author | Gleb Natapov <gleb@redhat.com> | 2011-04-12 05:36:23 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-05-22 08:39:51 -0400 |
commit | 4947e7cd0ee36e1aa37dfec4f7fa71cc64a2f0fd (patch) | |
tree | 0a9e55daba99941ddf8285374ab58a42b4be1f91 /arch/x86/kvm/emulate.c | |
parent | 8d7d810255982bfcc355cdb8972d72843acb0cf8 (diff) |
KVM: emulator: Propagate fault in far jump emulation
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 7466abae84bf..3624f202b440 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -3993,7 +3993,8 @@ special_insn: | |||
3993 | jump_far: | 3993 | jump_far: |
3994 | memcpy(&sel, c->src.valptr + c->op_bytes, 2); | 3994 | memcpy(&sel, c->src.valptr + c->op_bytes, 2); |
3995 | 3995 | ||
3996 | if (load_segment_descriptor(ctxt, ops, sel, VCPU_SREG_CS)) | 3996 | rc = load_segment_descriptor(ctxt, ops, sel, VCPU_SREG_CS); |
3997 | if (rc != X86EMUL_CONTINUE) | ||
3997 | goto done; | 3998 | goto done; |
3998 | 3999 | ||
3999 | c->eip = 0; | 4000 | c->eip = 0; |