diff options
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 41 |
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 | ||
2866 | 6. Capabilities that can be enabled | 2866 | 6. Capabilities that can be enabled on vCPUs |
2867 | ----------------------------------- | 2867 | -------------------------------------------- |
2868 | 2868 | ||
2869 | There are certain capabilities that change the behavior of the virtual CPU when | 2869 | There are certain capabilities that change the behavior of the virtual CPU when |
2870 | enabled. To enable them, please see section 4.37. Below you can find a list of | 2870 | enabled. 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 | ||
3004 | This capability connects the vcpu to an in-kernel XICS device. | 3004 | This capability connects the vcpu to an in-kernel XICS device. |
3005 | |||
3006 | |||
3007 | 7. Capabilities that can be enabled on VMs | ||
3008 | ------------------------------------------ | ||
3009 | |||
3010 | There are certain capabilities that change the behavior of the virtual | ||
3011 | machine when enabled. To enable them, please see section 4.37. Below | ||
3012 | you can find a list of capabilities and what their effect on the VM | ||
3013 | is when enabling them. | ||
3014 | |||
3015 | The 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 | |||
3026 | 7.1 KVM_CAP_PPC_ENABLE_HCALL | ||
3027 | |||
3028 | Architectures: ppc | ||
3029 | Parameters: args[0] is the sPAPR hcall number | ||
3030 | args[1] is 0 to disable, 1 to enable in-kernel handling | ||
3031 | |||
3032 | This capability controls whether individual sPAPR hypercalls (hcalls) | ||
3033 | get handled by the kernel or not. Enabling or disabling in-kernel | ||
3034 | handling of an hcall is effective across the VM. On creation, an | ||
3035 | initial set of hcalls are enabled for in-kernel handling, which | ||
3036 | consists of those hcalls for which in-kernel handlers were implemented | ||
3037 | before this capability was implemented. If disabled, the kernel will | ||
3038 | not to attempt to handle the hcall, but will always exit to userspace | ||
3039 | to handle it. Note that it may not make sense to enable some and | ||
3040 | disable others of a group of related hcalls, but KVM does not prevent | ||
3041 | userspace from doing that. | ||