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.txt41
1 files changed, 39 insertions, 2 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 0fe36497642c..5c54d196f4c8 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -2863,8 +2863,8 @@ The fields in each entry are defined as follows:
2863 this function/index combination 2863 this function/index combination
2864 2864
2865 2865
28666. Capabilities that can be enabled 28666. Capabilities that can be enabled on vCPUs
2867----------------------------------- 2867--------------------------------------------
2868 2868
2869There are certain capabilities that change the behavior of the virtual CPU when 2869There are certain capabilities that change the behavior of the virtual CPU when
2870enabled. To enable them, please see section 4.37. Below you can find a list of 2870enabled. To enable them, please see section 4.37. Below you can find a list of
@@ -3002,3 +3002,40 @@ Parameters: args[0] is the XICS device fd
3002 args[1] is the XICS CPU number (server ID) for this vcpu 3002 args[1] is the XICS CPU number (server ID) for this vcpu
3003 3003
3004This capability connects the vcpu to an in-kernel XICS device. 3004This capability connects the vcpu to an in-kernel XICS device.
3005
3006
30077. Capabilities that can be enabled on VMs
3008------------------------------------------
3009
3010There are certain capabilities that change the behavior of the virtual
3011machine when enabled. To enable them, please see section 4.37. Below
3012you can find a list of capabilities and what their effect on the VM
3013is when enabling them.
3014
3015The following information is provided along with the description:
3016
3017 Architectures: which instruction set architectures provide this ioctl.
3018 x86 includes both i386 and x86_64.
3019
3020 Parameters: what parameters are accepted by the capability.
3021
3022 Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL)
3023 are not detailed, but errors with specific meanings are.
3024
3025
30267.1 KVM_CAP_PPC_ENABLE_HCALL
3027
3028Architectures: ppc
3029Parameters: args[0] is the sPAPR hcall number
3030 args[1] is 0 to disable, 1 to enable in-kernel handling
3031
3032This capability controls whether individual sPAPR hypercalls (hcalls)
3033get handled by the kernel or not. Enabling or disabling in-kernel
3034handling of an hcall is effective across the VM. On creation, an
3035initial set of hcalls are enabled for in-kernel handling, which
3036consists of those hcalls for which in-kernel handlers were implemented
3037before this capability was implemented. If disabled, the kernel will
3038not to attempt to handle the hcall, but will always exit to userspace
3039to handle it. Note that it may not make sense to enable some and
3040disable others of a group of related hcalls, but KVM does not prevent
3041userspace from doing that.