diff options
author | Carsten Otte <cotte@de.ibm.com> | 2012-01-04 04:25:23 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-03-05 07:52:19 -0500 |
commit | 5b1c1493afe8d69909f9df3221bb2fffdf479f4a (patch) | |
tree | f64fa2be60cb44e4d9cb7cc9338b4dabba65348a /arch/x86/kvm/x86.c | |
parent | e168bf8de33e16a909df2401af1f7d419c5780de (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/x86/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 06925b4bcc27..a3ce196d21fe 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -2814,6 +2814,11 @@ out: | |||
2814 | return r; | 2814 | return r; |
2815 | } | 2815 | } |
2816 | 2816 | ||
2817 | int kvm_arch_vcpu_fault(struct kvm_vcpu *vcpu, struct vm_fault *vmf) | ||
2818 | { | ||
2819 | return VM_FAULT_SIGBUS; | ||
2820 | } | ||
2821 | |||
2817 | static int kvm_vm_ioctl_set_tss_addr(struct kvm *kvm, unsigned long addr) | 2822 | static int kvm_vm_ioctl_set_tss_addr(struct kvm *kvm, unsigned long addr) |
2818 | { | 2823 | { |
2819 | int ret; | 2824 | int ret; |