aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
authorLaurent Vivier <Laurent.Vivier@bull.net>2007-08-05 03:43:32 -0400
committerAvi Kivity <avi@qumranet.com>2007-10-13 04:18:23 -0400
commit3090dd7377c7eb5cbe229e2a538f9dc7e5b06814 (patch)
tree7f93e361f5bcea61b9b10f607fb69e4d9b124478 /drivers/kvm/svm.c
parente70669abd4e60dfea3ac1639848e20e2b8dd1255 (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/svm.c')
-rw-r--r--drivers/kvm/svm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index a83ff01bb014..e3c6d891326b 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1005,8 +1005,7 @@ static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)
1005 rep = (io_info & SVM_IOIO_REP_MASK) != 0; 1005 rep = (io_info & SVM_IOIO_REP_MASK) != 0;
1006 down = (svm->vmcb->save.rflags & X86_EFLAGS_DF) != 0; 1006 down = (svm->vmcb->save.rflags & X86_EFLAGS_DF) != 0;
1007 1007
1008 return kvm_setup_pio(&svm->vcpu, kvm_run, in, size, 1, 0, 1008 return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port);
1009 down, 0, rep, port);
1010} 1009}
1011 1010
1012static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) 1011static int nop_on_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run)