aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm
diff options
context:
space:
mode:
Diffstat (limited to 'virt/kvm')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 04595fe77efb..121e65cccc58 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -678,8 +678,10 @@ static int kvm_vcpu_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
678 678
679 if (vmf->pgoff == 0) 679 if (vmf->pgoff == 0)
680 page = virt_to_page(vcpu->run); 680 page = virt_to_page(vcpu->run);
681#ifdef CONFIG_X86
681 else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET) 682 else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET)
682 page = virt_to_page(vcpu->arch.pio_data); 683 page = virt_to_page(vcpu->arch.pio_data);
684#endif
683 else 685 else
684 return VM_FAULT_SIGBUS; 686 return VM_FAULT_SIGBUS;
685 get_page(page); 687 get_page(page);