diff options
author | Laurent Vivier <Laurent.Vivier@bull.net> | 2007-08-05 03:43:32 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:23 -0400 |
commit | 3090dd7377c7eb5cbe229e2a538f9dc7e5b06814 (patch) | |
tree | 7f93e361f5bcea61b9b10f607fb69e4d9b124478 /drivers/kvm/kvm.h | |
parent | e70669abd4e60dfea3ac1639848e20e2b8dd1255 (diff) |
KVM: Clean up kvm_setup_pio()
Split kvm_setup_pio() into two functions, one to setup in/out pio
(kvm_emulate_pio()) and one to setup ins/outs pio (kvm_emulate_pio_string()).
Signed-off-by: Laurent Vivier <Laurent.Vivier@bull.net>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 6d258261891e..2245baeeb022 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -539,9 +539,11 @@ int kvm_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data); | |||
539 | 539 | ||
540 | struct x86_emulate_ctxt; | 540 | struct x86_emulate_ctxt; |
541 | 541 | ||
542 | int kvm_setup_pio(struct kvm_vcpu *vcpu, struct kvm_run *run, int in, | 542 | int kvm_emulate_pio (struct kvm_vcpu *vcpu, struct kvm_run *run, int in, |
543 | int size, unsigned long count, int string, int down, | 543 | int size, unsigned port); |
544 | gva_t address, int rep, unsigned port); | 544 | int kvm_emulate_pio_string(struct kvm_vcpu *vcpu, struct kvm_run *run, int in, |
545 | int size, unsigned long count, int down, | ||
546 | gva_t address, int rep, unsigned port); | ||
545 | void kvm_emulate_cpuid(struct kvm_vcpu *vcpu); | 547 | void kvm_emulate_cpuid(struct kvm_vcpu *vcpu); |
546 | int kvm_emulate_halt(struct kvm_vcpu *vcpu); | 548 | int kvm_emulate_halt(struct kvm_vcpu *vcpu); |
547 | int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address); | 549 | int emulate_invlpg(struct kvm_vcpu *vcpu, gva_t address); |