aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/virtual/kvm/api.txt
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@linaro.org>2013-09-30 04:50:08 -0400
committerChristoffer Dall <christoffer.dall@linaro.org>2013-10-02 14:29:49 -0400
commit740edfc0a35dd688c97ae8907c4377df49219bf3 (patch)
tree5349197e44335ce4dd8bbf44e8029cf87c188728 /Documentation/virtual/kvm/api.txt
parent42c4e0c77ac91505ab94284b14025e3a0865c0a5 (diff)
KVM: Add documentation for KVM_ARM_PREFERRED_TARGET ioctl
To implement CPU=Host we have added KVM_ARM_PREFERRED_TARGET vm ioctl which provides information to user space required for creating VCPU matching underlying Host. This patch adds info related to this new KVM_ARM_PREFERRED_TARGET vm ioctl in the KVM API documentation. Signed-off-by: Anup Patel <anup.patel@linaro.org> Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'Documentation/virtual/kvm/api.txt')
-rw-r--r--Documentation/virtual/kvm/api.txt31
1 files changed, 27 insertions, 4 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt
index 858aecf21db2..076b8492d810 100644
--- a/Documentation/virtual/kvm/api.txt
+++ b/Documentation/virtual/kvm/api.txt
@@ -2304,7 +2304,31 @@ Possible features:
2304 Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only). 2304 Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only).
2305 2305
2306 2306
23074.83 KVM_GET_REG_LIST 23074.83 KVM_ARM_PREFERRED_TARGET
2308
2309Capability: basic
2310Architectures: arm, arm64
2311Type: vm ioctl
2312Parameters: struct struct kvm_vcpu_init (out)
2313Returns: 0 on success; -1 on error
2314Errors:
2315  ENODEV:    no preferred target available for the host
2316
2317This queries KVM for preferred CPU target type which can be emulated
2318by KVM on underlying host.
2319
2320The ioctl returns struct kvm_vcpu_init instance containing information
2321about preferred CPU target type and recommended features for it. The
2322kvm_vcpu_init->features bitmap returned will have feature bits set if
2323the preferred target recommends setting these features, but this is
2324not mandatory.
2325
2326The information returned by this ioctl can be used to prepare an instance
2327of struct kvm_vcpu_init for KVM_ARM_VCPU_INIT ioctl which will result in
2328in VCPU matching underlying host.
2329
2330
23314.84 KVM_GET_REG_LIST
2308 2332
2309Capability: basic 2333Capability: basic
2310Architectures: arm, arm64 2334Architectures: arm, arm64
@@ -2323,8 +2347,7 @@ struct kvm_reg_list {
2323This ioctl returns the guest registers that are supported for the 2347This ioctl returns the guest registers that are supported for the
2324KVM_GET_ONE_REG/KVM_SET_ONE_REG calls. 2348KVM_GET_ONE_REG/KVM_SET_ONE_REG calls.
2325 2349
2326 23504.85 KVM_ARM_SET_DEVICE_ADDR
23274.84 KVM_ARM_SET_DEVICE_ADDR
2328 2351
2329Capability: KVM_CAP_ARM_SET_DEVICE_ADDR 2352Capability: KVM_CAP_ARM_SET_DEVICE_ADDR
2330Architectures: arm, arm64 2353Architectures: arm, arm64
@@ -2362,7 +2385,7 @@ must be called after calling KVM_CREATE_IRQCHIP, but before calling
2362KVM_RUN on any of the VCPUs. Calling this ioctl twice for any of the 2385KVM_RUN on any of the VCPUs. Calling this ioctl twice for any of the
2363base addresses will return -EEXIST. 2386base addresses will return -EEXIST.
2364 2387
23654.85 KVM_PPC_RTAS_DEFINE_TOKEN 23884.86 KVM_PPC_RTAS_DEFINE_TOKEN
2366 2389
2367Capability: KVM_CAP_PPC_RTAS 2390Capability: KVM_CAP_PPC_RTAS
2368Architectures: ppc 2391Architectures: ppc