aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm/api.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r--Documentation/virtual/kvm/api.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index b2511360b8f5..e8875fef3eb8 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -1532,6 +1532,23 @@ Userspace can now handle the hypercall and when it's done modify the gprs as
1532necessary. Upon guest entry all guest GPRs will then be replaced by the values 1532necessary. Upon guest entry all guest GPRs will then be replaced by the values
1533in this struct. 1533in this struct.
1534 1534
1535 /* KVM_EXIT_PAPR_HCALL */
1536 struct {
1537 __u64 nr;
1538 __u64 ret;
1539 __u64 args[9];
1540 } papr_hcall;
1541
1542This is used on 64-bit PowerPC when emulating a pSeries partition,
1543e.g. with the 'pseries' machine type in qemu. It occurs when the
1544guest does a hypercall using the 'sc 1' instruction. The 'nr' field
1545contains the hypercall number (from the guest R3), and 'args' contains
1546the arguments (from the guest R4 - R12). Userspace should put the
1547return code in 'ret' and any extra returned values in args[].
1548The possible hypercalls are defined in the Power Architecture Platform
1549Requirements (PAPR) document available from www.power.org (free
1550developer registration required to access it).
1551
1535 /* Fix the size of the union. */ 1552 /* Fix the size of the union. */
1536 char padding[256]; 1553 char padding[256];
1537 }; 1554 };