aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual
diff options
context:
space:
mode:
authorCarsten Otte <cotte@de.ibm.com>2012-01-04 04:25:22 -0500
committerAvi Kivity <avi@redhat.com>2012-03-05 07:52:19 -0500
commite168bf8de33e16a909df2401af1f7d419c5780de (patch)
tree49dee8cc76e65eb1347895a6cb8f8843f690066d /Documentation/virtual
parent27e0393f15fc8bc855c6a888387ff5ffd2181089 (diff)
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>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r--Documentation/virtual/kvm/api.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index ee394b263261..6e53ff51422f 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -1694,6 +1694,20 @@ s390 specific.
1694 1694
1695s390 specific. 1695s390 specific.
1696 1696
1697 /* KVM_EXIT_S390_UCONTROL */
1698 struct {
1699 __u64 trans_exc_code;
1700 __u32 pgm_code;
1701 } s390_ucontrol;
1702
1703s390 specific. A page fault has occurred for a user controlled virtual
1704machine (KVM_VM_S390_UNCONTROL) on it's host page table that cannot be
1705resolved by the kernel.
1706The program code and the translation exception code that were placed
1707in the cpu's lowcore are presented here as defined by the z Architecture
1708Principles of Operation Book in the Chapter for Dynamic Address Translation
1709(DAT)
1710
1697 /* KVM_EXIT_DCR */ 1711 /* KVM_EXIT_DCR */
1698 struct { 1712 struct {
1699 __u32 dcrn; 1713 __u32 dcrn;