KVM: s390: use facilities and cpu_id per KVM
[deliverable/linux.git] / Documentation / virtual / kvm / devices / vm.txt
CommitLineData
f2061656
DD
1Generic vm interface
2====================================
3
4The virtual machine "device" also accepts the ioctls KVM_SET_DEVICE_ATTR,
5KVM_GET_DEVICE_ATTR, and KVM_HAS_DEVICE_ATTR. The interface uses the same
6struct kvm_device_attr as other devices, but targets VM-wide settings
7and controls.
8
9The groups and attributes per virtual machine, if any, are architecture
10specific.
4f718eab
DD
11
121. GROUP: KVM_S390_VM_MEM_CTRL
13Architectures: s390
14
365dc163 151.1. ATTRIBUTE: KVM_S390_VM_MEM_ENABLE_CMMA
4f718eab 16Parameters: none
365dc163 17Returns: -EBUSY if a vcpu is already defined, otherwise 0
4f718eab 18
365dc163 19Enables Collaborative Memory Management Assist (CMMA) for the virtual machine.
4f718eab 20
365dc163
DD
211.2. ATTRIBUTE: KVM_S390_VM_MEM_CLR_CMMA
22Parameters: none
4f718eab
DD
23Returns: 0
24
25Clear the CMMA status for all guest pages, so any pages the guest marked
26as unused are again used any may not be reclaimed by the host.
8c0a7ce6
DD
27
281.3. ATTRIBUTE KVM_S390_VM_MEM_LIMIT_SIZE
29Parameters: in attr->addr the address for the new limit of guest memory
30Returns: -EFAULT if the given address is not accessible
31 -EINVAL if the virtual machine is of type UCONTROL
32 -E2BIG if the given guest memory is to big for that machine
33 -EBUSY if a vcpu is already defined
34 -ENOMEM if not enough memory is available for a new shadow guest mapping
35 0 otherwise
36
37Allows userspace to query the actual limit and set a new limit for
38the maximum guest memory size. The limit will be rounded up to
392048 MB, 4096 GB, 8192 TB respectively, as this limit is governed by
40the number of page table levels.
This page took 0.087012 seconds and 5 git commands to generate.