diff options
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index c563da4244da..495b7742ab58 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -1269,12 +1269,18 @@ struct kvm_cpuid_entry2 { | |||
1269 | __u32 padding[3]; | 1269 | __u32 padding[3]; |
1270 | }; | 1270 | }; |
1271 | 1271 | ||
1272 | This ioctl returns x86 cpuid features which are supported by both the hardware | 1272 | This ioctl returns x86 cpuid features which are supported by both the |
1273 | and kvm. Userspace can use the information returned by this ioctl to | 1273 | hardware and kvm in its default configuration. Userspace can use the |
1274 | construct cpuid information (for KVM_SET_CPUID2) that is consistent with | 1274 | information returned by this ioctl to construct cpuid information (for |
1275 | hardware, kernel, and userspace capabilities, and with user requirements (for | 1275 | KVM_SET_CPUID2) that is consistent with hardware, kernel, and |
1276 | example, the user may wish to constrain cpuid to emulate older hardware, | 1276 | userspace capabilities, and with user requirements (for example, the |
1277 | or for feature consistency across a cluster). | 1277 | user may wish to constrain cpuid to emulate older hardware, or for |
1278 | feature consistency across a cluster). | ||
1279 | |||
1280 | Note that certain capabilities, such as KVM_CAP_X86_DISABLE_EXITS, may | ||
1281 | expose cpuid features (e.g. MONITOR) which are not supported by kvm in | ||
1282 | its default configuration. If userspace enables such capabilities, it | ||
1283 | is responsible for modifying the results of this ioctl appropriately. | ||
1278 | 1284 | ||
1279 | Userspace invokes KVM_GET_SUPPORTED_CPUID by passing a kvm_cpuid2 structure | 1285 | Userspace invokes KVM_GET_SUPPORTED_CPUID by passing a kvm_cpuid2 structure |
1280 | with the 'nent' field indicating the number of entries in the variable-size | 1286 | with the 'nent' field indicating the number of entries in the variable-size |