aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 8f6c21d02656..0b23657f434c 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -2244,7 +2244,7 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
2244 if (r) 2244 if (r)
2245 goto out; 2245 goto out;
2246 } 2246 }
2247 2247#if CONFIG_HAS_IOMEM
2248 if (vcpu->mmio_needed) { 2248 if (vcpu->mmio_needed) {
2249 memcpy(vcpu->mmio_data, kvm_run->mmio.data, 8); 2249 memcpy(vcpu->mmio_data, kvm_run->mmio.data, 8);
2250 vcpu->mmio_read_completed = 1; 2250 vcpu->mmio_read_completed = 1;
@@ -2259,7 +2259,7 @@ static int kvm_vcpu_ioctl_run(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
2259 goto out; 2259 goto out;
2260 } 2260 }
2261 } 2261 }
2262 2262#endif
2263 if (kvm_run->exit_reason == KVM_EXIT_HYPERCALL) { 2263 if (kvm_run->exit_reason == KVM_EXIT_HYPERCALL) {
2264 kvm_x86_ops->cache_regs(vcpu); 2264 kvm_x86_ops->cache_regs(vcpu);
2265 vcpu->regs[VCPU_REGS_RAX] = kvm_run->hypercall.ret; 2265 vcpu->regs[VCPU_REGS_RAX] = kvm_run->hypercall.ret;