KVM: s390: ucontrol: export page faults to user
authorCarsten Otte <cotte@de.ibm.com>
Wed, 4 Jan 2012 09:25:22 +0000 (10:25 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:19 +0000 (14:52 +0200)
commite168bf8de33e16a909df2401af1f7d419c5780de
tree49dee8cc76e65eb1347895a6cb8f8843f690066d
parent27e0393f15fc8bc855c6a888387ff5ffd2181089
KVM: s390: ucontrol: export page faults to user

This patch introduces a new exit reason in the kvm_run structure
named KVM_EXIT_S390_UCONTROL. This exit indicates, that a virtual cpu
has regognized a fault on the host page table. The idea is that
userspace can handle this fault by mapping memory at the fault
location into the cpu's address space and then continue to run the
virtual cpu.

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>
Documentation/virtual/kvm/api.txt
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
include/linux/kvm.h