diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-03-18 09:20:18 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:16:17 -0400 |
commit | 2e873022f511b82a5318c7af179f588f08d68cb9 (patch) | |
tree | 6ac9175a25f91ceab6dd2add7425b1bc0af5dd4e /arch/x86/kvm/emulate.c | |
parent | 38ba30ba51a003360f177d5b8349439fe44fc55b (diff) |
KVM: x86 emulator: Use load_segment_descriptor() instead of kvm_load_segment_descriptor()
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index db4776c6b500..702bffffd27f 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -1508,7 +1508,7 @@ static int emulate_pop_sreg(struct x86_emulate_ctxt *ctxt, | |||
1508 | if (rc != X86EMUL_CONTINUE) | 1508 | if (rc != X86EMUL_CONTINUE) |
1509 | return rc; | 1509 | return rc; |
1510 | 1510 | ||
1511 | rc = kvm_load_segment_descriptor(ctxt->vcpu, (u16)selector, seg); | 1511 | rc = load_segment_descriptor(ctxt, ops, (u16)selector, seg); |
1512 | return rc; | 1512 | return rc; |
1513 | } | 1513 | } |
1514 | 1514 | ||
@@ -1683,7 +1683,7 @@ static int emulate_ret_far(struct x86_emulate_ctxt *ctxt, | |||
1683 | rc = emulate_pop(ctxt, ops, &cs, c->op_bytes); | 1683 | rc = emulate_pop(ctxt, ops, &cs, c->op_bytes); |
1684 | if (rc != X86EMUL_CONTINUE) | 1684 | if (rc != X86EMUL_CONTINUE) |
1685 | return rc; | 1685 | return rc; |
1686 | rc = kvm_load_segment_descriptor(ctxt->vcpu, (u16)cs, VCPU_SREG_CS); | 1686 | rc = load_segment_descriptor(ctxt, ops, (u16)cs, VCPU_SREG_CS); |
1687 | return rc; | 1687 | return rc; |
1688 | } | 1688 | } |
1689 | 1689 | ||
@@ -2717,7 +2717,7 @@ special_insn: | |||
2717 | if (c->modrm_reg == VCPU_SREG_SS) | 2717 | if (c->modrm_reg == VCPU_SREG_SS) |
2718 | toggle_interruptibility(ctxt, KVM_X86_SHADOW_INT_MOV_SS); | 2718 | toggle_interruptibility(ctxt, KVM_X86_SHADOW_INT_MOV_SS); |
2719 | 2719 | ||
2720 | rc = kvm_load_segment_descriptor(ctxt->vcpu, sel, c->modrm_reg); | 2720 | rc = load_segment_descriptor(ctxt, ops, sel, c->modrm_reg); |
2721 | 2721 | ||
2722 | c->dst.type = OP_NONE; /* Disable writeback. */ | 2722 | c->dst.type = OP_NONE; /* Disable writeback. */ |
2723 | break; | 2723 | break; |
@@ -2892,8 +2892,8 @@ special_insn: | |||
2892 | goto jmp; | 2892 | goto jmp; |
2893 | case 0xea: /* jmp far */ | 2893 | case 0xea: /* jmp far */ |
2894 | jump_far: | 2894 | jump_far: |
2895 | if (kvm_load_segment_descriptor(ctxt->vcpu, c->src2.val, | 2895 | if (load_segment_descriptor(ctxt, ops, c->src2.val, |
2896 | VCPU_SREG_CS)) | 2896 | VCPU_SREG_CS)) |
2897 | goto done; | 2897 | goto done; |
2898 | 2898 | ||
2899 | c->eip = c->src.val; | 2899 | c->eip = c->src.val; |