diff options
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 1c4a018bf4bb..22e88a4a51c7 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1194,7 +1194,7 @@ static int shutdown_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | |||
1194 | static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | 1194 | static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) |
1195 | { | 1195 | { |
1196 | u32 io_info = svm->vmcb->control.exit_info_1; /* address size bug? */ | 1196 | u32 io_info = svm->vmcb->control.exit_info_1; /* address size bug? */ |
1197 | int size, down, in, string, rep; | 1197 | int size, in, string; |
1198 | unsigned port; | 1198 | unsigned port; |
1199 | 1199 | ||
1200 | ++svm->vcpu.stat.io_exits; | 1200 | ++svm->vcpu.stat.io_exits; |
@@ -1213,8 +1213,6 @@ static int io_interception(struct vcpu_svm *svm, struct kvm_run *kvm_run) | |||
1213 | in = (io_info & SVM_IOIO_TYPE_MASK) != 0; | 1213 | in = (io_info & SVM_IOIO_TYPE_MASK) != 0; |
1214 | port = io_info >> 16; | 1214 | port = io_info >> 16; |
1215 | size = (io_info & SVM_IOIO_SIZE_MASK) >> SVM_IOIO_SIZE_SHIFT; | 1215 | size = (io_info & SVM_IOIO_SIZE_MASK) >> SVM_IOIO_SIZE_SHIFT; |
1216 | rep = (io_info & SVM_IOIO_REP_MASK) != 0; | ||
1217 | down = (svm->vmcb->save.rflags & X86_EFLAGS_DF) != 0; | ||
1218 | 1216 | ||
1219 | skip_emulated_instruction(&svm->vcpu); | 1217 | skip_emulated_instruction(&svm->vcpu); |
1220 | return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port); | 1218 | return kvm_emulate_pio(&svm->vcpu, kvm_run, in, size, port); |