aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kvm
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 /arch/ia64/kvm
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 'arch/ia64/kvm')
-rw-r--r--arch/ia64/kvm/kvm-ia64.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index df6b14194051..8ca7261e7b3d 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -1566,6 +1566,11 @@ out:
1566 return r; 1566 return r;
1567} 1567}
1568 1568
1569int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf)
1570{
1571 return VM_FAULT_SIGBUS;
1572}
1573
1569int kvm_arch_prepare_memory_region(struct kvm *kvm, 1574int kvm_arch_prepare_memory_region(struct kvm *kvm,
1570 struct kvm_memory_slot *memslot, 1575 struct kvm_memory_slot *memslot,
1571 struct kvm_memory_slot old, 1576 struct kvm_memory_slot old,