Merge tag 'iwlwifi-next-for-kalle-2014-12-30' of https://git.kernel.org/pub/scm/linux...
[cascardo/linux.git] / Documentation / virtual / kvm / devices / vm.txt
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.
11
12 1. GROUP: KVM_S390_VM_MEM_CTRL
13 Architectures: s390
14
15 1.1. ATTRIBUTE: KVM_S390_VM_MEM_ENABLE_CMMA
16 Parameters: none
17 Returns: -EBUSY if a vcpu is already defined, otherwise 0
18
19 Enables Collaborative Memory Management Assist (CMMA) for the virtual machine.
20
21 1.2. ATTRIBUTE: KVM_S390_VM_MEM_CLR_CMMA
22 Parameters: none
23 Returns: 0
24
25 Clear the CMMA status for all guest pages, so any pages the guest marked
26 as unused are again used any may not be reclaimed by the host.