aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 6787f11738cf..c35b8c83bf3f 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1037,6 +1037,7 @@ static int io_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1037 kvm_run->io.size = ((io_info & SVM_IOIO_SIZE_MASK) >> SVM_IOIO_SIZE_SHIFT); 1037 kvm_run->io.size = ((io_info & SVM_IOIO_SIZE_MASK) >> SVM_IOIO_SIZE_SHIFT);
1038 kvm_run->io.string = (io_info & SVM_IOIO_STR_MASK) != 0; 1038 kvm_run->io.string = (io_info & SVM_IOIO_STR_MASK) != 0;
1039 kvm_run->io.rep = (io_info & SVM_IOIO_REP_MASK) != 0; 1039 kvm_run->io.rep = (io_info & SVM_IOIO_REP_MASK) != 0;
1040 kvm_run->io.count = 1;
1040 1041
1041 if (kvm_run->io.string) { 1042 if (kvm_run->io.string) {
1042 unsigned addr_mask; 1043 unsigned addr_mask;
@@ -1056,6 +1057,7 @@ static int io_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1056 } 1057 }
1057 } else 1058 } else
1058 kvm_run->io.value = vcpu->svm->vmcb->save.rax; 1059 kvm_run->io.value = vcpu->svm->vmcb->save.rax;
1060 vcpu->pio_pending = 1;
1059 return 0; 1061 return 0;
1060} 1062}
1061 1063