aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2012-01-04 04:25:23 -0500
committerAvi Kivity <avi@redhat.com>2012-03-05 07:52:19 -0500
commit5b1c1493afe8d69909f9df3221bb2fffdf479f4a (patch)
treef64fa2be60cb44e4d9cb7cc9338b4dabba65348a /virt
parente168bf8de33e16a909df2401af1f7d419c5780de (diff)
KVM: s390: ucontrol: export SIE control block to user
This patch exports the s390 SIE hardware control block to userspace via the mapping of the vcpu file descriptor. In order to do so, a new arch callback named kvm_arch_vcpu_fault is introduced for all architectures. It allows to map architecture specific pages. Signed-off-by: Carsten Otte <cotte@de.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 32e3b048a6cf..64be836f3348 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -1657,7 +1657,7 @@ static int kvm_vcpu_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
1657 page = virt_to_page(vcpu->kvm->coalesced_mmio_ring); 1657 page = virt_to_page(vcpu->kvm->coalesced_mmio_ring);
1658#endif 1658#endif
1659 else 1659 else
1660 return VM_FAULT_SIGBUS; 1660 return kvm_arch_vcpu_fault(vcpu, vmf);
1661 get_page(page); 1661 get_page(page);
1662 vmf->page = page; 1662 vmf->page = page;
1663 return 0; 1663 return 0;