aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual
diff options
context:
space:
mode:
authorCornelia Huck <cornelia.huck@de.ibm.com>2014-06-27 03:29:26 -0400
committerChristian Borntraeger <borntraeger@de.ibm.com>2014-07-21 07:22:46 -0400
commit0907c855b3b2006b11a96e6c81f91e36a5278d0e (patch)
tree22f6c627c038707f1abaceb6c70948bc22de2f83 /Documentation/virtual
parentea74c0ea1b24a6978a6ebc80ba4dbc7b7848b32d (diff)
KVM: document target of capability enablement
Capabilities can be enabled on a vcpu or (since recently) on a vm. Document this and note for the existing capabilites whether they are per-vcpu or per-vm. Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'Documentation/virtual')
-rw-r--r--Documentation/virtual/kvm/api.txt18
1 files changed, 15 insertions, 3 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index a41465bd6a5c..7ab41e9154c2 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -2875,15 +2875,18 @@ The fields in each entry are defined as follows:
28756. Capabilities that can be enabled 28756. Capabilities that can be enabled
2876----------------------------------- 2876-----------------------------------
2877 2877
2878There are certain capabilities that change the behavior of the virtual CPU when 2878There are certain capabilities that change the behavior of the virtual CPU or
2879enabled. To enable them, please see section 4.37. Below you can find a list of 2879the virtual machine when enabled. To enable them, please see section 4.37.
2880capabilities and what their effect on the vCPU is when enabling them. 2880Below you can find a list of capabilities and what their effect on the vCPU or
2881the virtual machine is when enabling them.
2881 2882
2882The following information is provided along with the description: 2883The following information is provided along with the description:
2883 2884
2884 Architectures: which instruction set architectures provide this ioctl. 2885 Architectures: which instruction set architectures provide this ioctl.
2885 x86 includes both i386 and x86_64. 2886 x86 includes both i386 and x86_64.
2886 2887
2888 Target: whether this is a per-vcpu or per-vm capability.
2889
2887 Parameters: what parameters are accepted by the capability. 2890 Parameters: what parameters are accepted by the capability.
2888 2891
2889 Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL) 2892 Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL)
@@ -2893,6 +2896,7 @@ The following information is provided along with the description:
28936.1 KVM_CAP_PPC_OSI 28966.1 KVM_CAP_PPC_OSI
2894 2897
2895Architectures: ppc 2898Architectures: ppc
2899Target: vcpu
2896Parameters: none 2900Parameters: none
2897Returns: 0 on success; -1 on error 2901Returns: 0 on success; -1 on error
2898 2902
@@ -2907,6 +2911,7 @@ When this capability is enabled, KVM_EXIT_OSI can occur.
29076.2 KVM_CAP_PPC_PAPR 29116.2 KVM_CAP_PPC_PAPR
2908 2912
2909Architectures: ppc 2913Architectures: ppc
2914Target: vcpu
2910Parameters: none 2915Parameters: none
2911Returns: 0 on success; -1 on error 2916Returns: 0 on success; -1 on error
2912 2917
@@ -2926,6 +2931,7 @@ When this capability is enabled, KVM_EXIT_PAPR_HCALL can occur.
29266.3 KVM_CAP_SW_TLB 29316.3 KVM_CAP_SW_TLB
2927 2932
2928Architectures: ppc 2933Architectures: ppc
2934Target: vcpu
2929Parameters: args[0] is the address of a struct kvm_config_tlb 2935Parameters: args[0] is the address of a struct kvm_config_tlb
2930Returns: 0 on success; -1 on error 2936Returns: 0 on success; -1 on error
2931 2937
@@ -2968,6 +2974,7 @@ For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV:
29686.4 KVM_CAP_S390_CSS_SUPPORT 29746.4 KVM_CAP_S390_CSS_SUPPORT
2969 2975
2970Architectures: s390 2976Architectures: s390
2977Target: vcpu
2971Parameters: none 2978Parameters: none
2972Returns: 0 on success; -1 on error 2979Returns: 0 on success; -1 on error
2973 2980
@@ -2979,9 +2986,13 @@ handled in-kernel, while the other I/O instructions are passed to userspace.
2979When this capability is enabled, KVM_EXIT_S390_TSCH will occur on TEST 2986When this capability is enabled, KVM_EXIT_S390_TSCH will occur on TEST
2980SUBCHANNEL intercepts. 2987SUBCHANNEL intercepts.
2981 2988
2989Note that even though this capability is enabled per-vcpu, the complete
2990virtual machine is affected.
2991
29826.5 KVM_CAP_PPC_EPR 29926.5 KVM_CAP_PPC_EPR
2983 2993
2984Architectures: ppc 2994Architectures: ppc
2995Target: vcpu
2985Parameters: args[0] defines whether the proxy facility is active 2996Parameters: args[0] defines whether the proxy facility is active
2986Returns: 0 on success; -1 on error 2997Returns: 0 on success; -1 on error
2987 2998
@@ -3007,6 +3018,7 @@ This capability connects the vcpu to an in-kernel MPIC device.
30076.7 KVM_CAP_IRQ_XICS 30186.7 KVM_CAP_IRQ_XICS
3008 3019
3009Architectures: ppc 3020Architectures: ppc
3021Target: vcpu
3010Parameters: args[0] is the XICS device fd 3022Parameters: args[0] is the XICS device fd
3011 args[1] is the XICS CPU number (server ID) for this vcpu 3023 args[1] is the XICS CPU number (server ID) for this vcpu
3012 3024