diff options
author | Avi Kivity <avi@redhat.com> | 2009-08-24 04:10:17 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:06 -0500 |
commit | 851ba6922ac575b749f63dee0ae072808163ba6a (patch) | |
tree | 665111285e65fea316ce6614f1208261a255fb70 /arch/x86/kvm/emulate.c | |
parent | d8769fedd4e8323d8afea9a1b2bdebff4f1d2d37 (diff) |
KVM: Don't pass kvm_run arguments
They're just copies of vcpu->run, which is readily accessible.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/emulate.c')
-rw-r--r-- | arch/x86/kvm/emulate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c index 1f0ff4afa73e..0644d3df621a 100644 --- a/arch/x86/kvm/emulate.c +++ b/arch/x86/kvm/emulate.c | |||
@@ -1826,7 +1826,7 @@ special_insn: | |||
1826 | break; | 1826 | break; |
1827 | case 0x6c: /* insb */ | 1827 | case 0x6c: /* insb */ |
1828 | case 0x6d: /* insw/insd */ | 1828 | case 0x6d: /* insw/insd */ |
1829 | if (kvm_emulate_pio_string(ctxt->vcpu, NULL, | 1829 | if (kvm_emulate_pio_string(ctxt->vcpu, |
1830 | 1, | 1830 | 1, |
1831 | (c->d & ByteOp) ? 1 : c->op_bytes, | 1831 | (c->d & ByteOp) ? 1 : c->op_bytes, |
1832 | c->rep_prefix ? | 1832 | c->rep_prefix ? |
@@ -1842,7 +1842,7 @@ special_insn: | |||
1842 | return 0; | 1842 | return 0; |
1843 | case 0x6e: /* outsb */ | 1843 | case 0x6e: /* outsb */ |
1844 | case 0x6f: /* outsw/outsd */ | 1844 | case 0x6f: /* outsw/outsd */ |
1845 | if (kvm_emulate_pio_string(ctxt->vcpu, NULL, | 1845 | if (kvm_emulate_pio_string(ctxt->vcpu, |
1846 | 0, | 1846 | 0, |
1847 | (c->d & ByteOp) ? 1 : c->op_bytes, | 1847 | (c->d & ByteOp) ? 1 : c->op_bytes, |
1848 | c->rep_prefix ? | 1848 | c->rep_prefix ? |
@@ -2135,7 +2135,7 @@ special_insn: | |||
2135 | case 0xef: /* out (e/r)ax,dx */ | 2135 | case 0xef: /* out (e/r)ax,dx */ |
2136 | port = c->regs[VCPU_REGS_RDX]; | 2136 | port = c->regs[VCPU_REGS_RDX]; |
2137 | io_dir_in = 0; | 2137 | io_dir_in = 0; |
2138 | do_io: if (kvm_emulate_pio(ctxt->vcpu, NULL, io_dir_in, | 2138 | do_io: if (kvm_emulate_pio(ctxt->vcpu, io_dir_in, |
2139 | (c->d & ByteOp) ? 1 : c->op_bytes, | 2139 | (c->d & ByteOp) ? 1 : c->op_bytes, |
2140 | port) != 0) { | 2140 | port) != 0) { |
2141 | c->eip = saved_eip; | 2141 | c->eip = saved_eip; |