projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c50274
)
KVM: Only x86 has pio
author
Avi Kivity
<avi@qumranet.com>
Wed, 23 Jan 2008 16:14:23 +0000
(18:14 +0200)
committer
Avi Kivity
<avi@qumranet.com>
Sun, 27 Apr 2008 08:53:15 +0000
(11:53 +0300)
Signed-off-by: Avi Kivity <avi@qumranet.com>
virt/kvm/kvm_main.c
patch
|
blob
|
history
diff --git
a/virt/kvm/kvm_main.c
b/virt/kvm/kvm_main.c
index 04595fe77efbbc305d50f40918d81b31c6c8fd1d..121e65cccc58132f5aac387058305d4b599ce124 100644
(file)
--- 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);