Commit 0907c855 authored by Cornelia Huck's avatar Cornelia Huck Committed by Christian Borntraeger

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: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: default avatarDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
parent ea74c0ea
...@@ -2875,15 +2875,18 @@ The fields in each entry are defined as follows: ...@@ -2875,15 +2875,18 @@ The fields in each entry are defined as follows:
6. Capabilities that can be enabled 6. Capabilities that can be enabled
----------------------------------- -----------------------------------
There are certain capabilities that change the behavior of the virtual CPU when There are certain capabilities that change the behavior of the virtual CPU or
enabled. To enable them, please see section 4.37. Below you can find a list of the virtual machine when enabled. To enable them, please see section 4.37.
capabilities and what their effect on the vCPU is when enabling them. Below you can find a list of capabilities and what their effect on the vCPU or
the virtual machine is when enabling them.
The following information is provided along with the description: The following information is provided along with the description:
Architectures: which instruction set architectures provide this ioctl. Architectures: which instruction set architectures provide this ioctl.
x86 includes both i386 and x86_64. x86 includes both i386 and x86_64.
Target: whether this is a per-vcpu or per-vm capability.
Parameters: what parameters are accepted by the capability. Parameters: what parameters are accepted by the capability.
Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL) Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL)
...@@ -2893,6 +2896,7 @@ The following information is provided along with the description: ...@@ -2893,6 +2896,7 @@ The following information is provided along with the description:
6.1 KVM_CAP_PPC_OSI 6.1 KVM_CAP_PPC_OSI
Architectures: ppc Architectures: ppc
Target: vcpu
Parameters: none Parameters: none
Returns: 0 on success; -1 on error Returns: 0 on success; -1 on error
...@@ -2907,6 +2911,7 @@ When this capability is enabled, KVM_EXIT_OSI can occur. ...@@ -2907,6 +2911,7 @@ When this capability is enabled, KVM_EXIT_OSI can occur.
6.2 KVM_CAP_PPC_PAPR 6.2 KVM_CAP_PPC_PAPR
Architectures: ppc Architectures: ppc
Target: vcpu
Parameters: none Parameters: none
Returns: 0 on success; -1 on error Returns: 0 on success; -1 on error
...@@ -2926,6 +2931,7 @@ When this capability is enabled, KVM_EXIT_PAPR_HCALL can occur. ...@@ -2926,6 +2931,7 @@ When this capability is enabled, KVM_EXIT_PAPR_HCALL can occur.
6.3 KVM_CAP_SW_TLB 6.3 KVM_CAP_SW_TLB
Architectures: ppc Architectures: ppc
Target: vcpu
Parameters: args[0] is the address of a struct kvm_config_tlb Parameters: args[0] is the address of a struct kvm_config_tlb
Returns: 0 on success; -1 on error Returns: 0 on success; -1 on error
...@@ -2968,6 +2974,7 @@ For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV: ...@@ -2968,6 +2974,7 @@ For mmu types KVM_MMU_FSL_BOOKE_NOHV and KVM_MMU_FSL_BOOKE_HV:
6.4 KVM_CAP_S390_CSS_SUPPORT 6.4 KVM_CAP_S390_CSS_SUPPORT
Architectures: s390 Architectures: s390
Target: vcpu
Parameters: none Parameters: none
Returns: 0 on success; -1 on error Returns: 0 on success; -1 on error
...@@ -2979,9 +2986,13 @@ handled in-kernel, while the other I/O instructions are passed to userspace. ...@@ -2979,9 +2986,13 @@ handled in-kernel, while the other I/O instructions are passed to userspace.
When this capability is enabled, KVM_EXIT_S390_TSCH will occur on TEST When this capability is enabled, KVM_EXIT_S390_TSCH will occur on TEST
SUBCHANNEL intercepts. SUBCHANNEL intercepts.
Note that even though this capability is enabled per-vcpu, the complete
virtual machine is affected.
6.5 KVM_CAP_PPC_EPR 6.5 KVM_CAP_PPC_EPR
Architectures: ppc Architectures: ppc
Target: vcpu
Parameters: args[0] defines whether the proxy facility is active Parameters: args[0] defines whether the proxy facility is active
Returns: 0 on success; -1 on error Returns: 0 on success; -1 on error
...@@ -3007,6 +3018,7 @@ This capability connects the vcpu to an in-kernel MPIC device. ...@@ -3007,6 +3018,7 @@ This capability connects the vcpu to an in-kernel MPIC device.
6.7 KVM_CAP_IRQ_XICS 6.7 KVM_CAP_IRQ_XICS
Architectures: ppc Architectures: ppc
Target: vcpu
Parameters: args[0] is the XICS device fd Parameters: args[0] is the XICS device fd
args[1] is the XICS CPU number (server ID) for this vcpu args[1] is the XICS CPU number (server ID) for this vcpu
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment