aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2008-01-23 18:14:23 +0200
committerAvi Kivity <avi@qumranet.com>2008-04-27 11:53:15 +0300
commit09566765efd034feba45611f9d0ae9a702f8bb1d (patch)
tree3abe1b831ed5dc62bfdb6e06987f65180aad271e /virt
parent5c5027425ec23ded452879ee5d0775a9a90fb9bf (diff)
downloadmrst-s0i3-test-09566765efd034feba45611f9d0ae9a702f8bb1d.tar.gz
mrst-s0i3-test-09566765efd034feba45611f9d0ae9a702f8bb1d.tar.xz
mrst-s0i3-test-09566765efd034feba45611f9d0ae9a702f8bb1d.zip
KVM: Only x86 has pio
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'virt')
-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 04595fe77ef..121e65cccc5 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)
if (vmf->pgoff == 0)
page = virt_to_page(vcpu->run);
+#ifdef CONFIG_X86
else if (vmf->pgoff == KVM_PIO_PAGE_OFFSET)
page = virt_to_page(vcpu->arch.pio_data);
+#endif
else
return VM_FAULT_SIGBUS;
get_page(page);