aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-02-19 07:37:46 -0500
committerAvi Kivity <avi@qumranet.com>2007-03-04 04:12:39 -0500
commitd27d4aca184ac0ca6b7e32caf79e1c2b91959be9 (patch)
tree048e9ea24b55ac63783cc6cc3495d0feb5de57d0 /drivers/kvm/svm.c
parent43934a38d7cb39ff33baedc7f2c40a2a891116fa (diff)
KVM: Cosmetics
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index 83da4ea150a3..31836444bc62 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -1042,22 +1042,22 @@ static int io_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1042 1042
1043 addr_mask = io_adress(vcpu, _in, &kvm_run->io.address); 1043 addr_mask = io_adress(vcpu, _in, &kvm_run->io.address);
1044 if (!addr_mask) { 1044 if (!addr_mask) {
1045 printk(KERN_DEBUG "%s: get io address failed\n", __FUNCTION__); 1045 printk(KERN_DEBUG "%s: get io address failed\n",
1046 __FUNCTION__);
1046 return 1; 1047 return 1;
1047 } 1048 }
1048 1049
1049 if (kvm_run->io.rep) { 1050 if (kvm_run->io.rep) {
1050 kvm_run->io.count = vcpu->regs[VCPU_REGS_RCX] & addr_mask; 1051 kvm_run->io.count
1052 = vcpu->regs[VCPU_REGS_RCX] & addr_mask;
1051 kvm_run->io.string_down = (vcpu->svm->vmcb->save.rflags 1053 kvm_run->io.string_down = (vcpu->svm->vmcb->save.rflags
1052 & X86_EFLAGS_DF) != 0; 1054 & X86_EFLAGS_DF) != 0;
1053 } 1055 }
1054 } else { 1056 } else
1055 kvm_run->io.value = vcpu->svm->vmcb->save.rax; 1057 kvm_run->io.value = vcpu->svm->vmcb->save.rax;
1056 }
1057 return 0; 1058 return 0;
1058} 1059}
1059 1060
1060
1061static int nop_on_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1061static int nop_on_interception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1062{ 1062{
1063 return 1; 1063 return 1;