diff options
author | Dominik Dingel <dingel@linux.vnet.ibm.com> | 2014-04-09 07:13:00 -0400 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2014-04-22 07:24:12 -0400 |
commit | f2061656209fb9a5d54bbb1999f0a633438504e7 (patch) | |
tree | 6aeef103f33943cedaf9fa341002a2a1c0ad83d8 /Documentation | |
parent | 15f36ebd34b5b296c274ef67024f14c2d394a507 (diff) |
KVM: s390: Per-vm kvm device controls
We sometimes need to get/set attributes specific to a virtual machine
and so need something else than ONE_REG.
Let's copy the KVM_DEVICE approach, and define the respective ioctls
for the vm file descriptor.
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/virtual/kvm/api.txt | 8 | ||||
-rw-r--r-- | Documentation/virtual/kvm/devices/vm.txt | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index a9380ba54c8e..2014ff12b492 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -2314,8 +2314,8 @@ struct kvm_create_device { | |||
2314 | 2314 | ||
2315 | 4.80 KVM_SET_DEVICE_ATTR/KVM_GET_DEVICE_ATTR | 2315 | 4.80 KVM_SET_DEVICE_ATTR/KVM_GET_DEVICE_ATTR |
2316 | 2316 | ||
2317 | Capability: KVM_CAP_DEVICE_CTRL | 2317 | Capability: KVM_CAP_DEVICE_CTRL, KVM_CAP_VM_ATTRIBUTES for vm device |
2318 | Type: device ioctl | 2318 | Type: device ioctl, vm ioctl |
2319 | Parameters: struct kvm_device_attr | 2319 | Parameters: struct kvm_device_attr |
2320 | Returns: 0 on success, -1 on error | 2320 | Returns: 0 on success, -1 on error |
2321 | Errors: | 2321 | Errors: |
@@ -2340,8 +2340,8 @@ struct kvm_device_attr { | |||
2340 | 2340 | ||
2341 | 4.81 KVM_HAS_DEVICE_ATTR | 2341 | 4.81 KVM_HAS_DEVICE_ATTR |
2342 | 2342 | ||
2343 | Capability: KVM_CAP_DEVICE_CTRL | 2343 | Capability: KVM_CAP_DEVICE_CTRL, KVM_CAP_VM_ATTRIBUTES for vm device |
2344 | Type: device ioctl | 2344 | Type: device ioctl, vm ioctl |
2345 | Parameters: struct kvm_device_attr | 2345 | Parameters: struct kvm_device_attr |
2346 | Returns: 0 on success, -1 on error | 2346 | Returns: 0 on success, -1 on error |
2347 | Errors: | 2347 | Errors: |
diff --git a/Documentation/virtual/kvm/devices/vm.txt b/Documentation/virtual/kvm/devices/vm.txt new file mode 100644 index 000000000000..562bee6e600b --- /dev/null +++ b/Documentation/virtual/kvm/devices/vm.txt | |||
@@ -0,0 +1,10 @@ | |||
1 | Generic vm interface | ||
2 | ==================================== | ||
3 | |||
4 | The virtual machine "device" also accepts the ioctls KVM_SET_DEVICE_ATTR, | ||
5 | KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same | ||
6 | struct kvm_device_attr as other devices, but targets VM-wide settings | ||
7 | and controls. | ||
8 | |||
9 | The groups and attributes per virtual machine, if any, are architecture | ||
10 | specific. | ||