KVM: Add per-vm capability enablement.
Allow KVM_ENABLE_CAP to act on a vm as well as on a vcpu. This makes more sense when the caller wants to enable a vm-related capability. s390 will be the first user; wire it up. Reviewed-by: Thomas Huth <thuth@linux.vnet.ibm.com> Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
This commit is contained in:
		
					parent
					
						
							
								36c9549460
							
						
					
				
			
			
				commit
				
					
						d938dc5522
					
				
			
		
					 3 changed files with 33 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -741,6 +741,7 @@ struct kvm_ppc_smmu_info {
 | 
			
		|||
#define KVM_CAP_EXT_EMUL_CPUID 95
 | 
			
		||||
#define KVM_CAP_HYPERV_TIME 96
 | 
			
		||||
#define KVM_CAP_IOAPIC_POLARITY_IGNORED 97
 | 
			
		||||
#define KVM_CAP_ENABLE_CAP_VM 98
 | 
			
		||||
 | 
			
		||||
#ifdef KVM_CAP_IRQ_ROUTING
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1076,6 +1077,10 @@ struct kvm_s390_ucas_mapping {
 | 
			
		|||
/* Available with KVM_CAP_DEBUGREGS */
 | 
			
		||||
#define KVM_GET_DEBUGREGS         _IOR(KVMIO,  0xa1, struct kvm_debugregs)
 | 
			
		||||
#define KVM_SET_DEBUGREGS         _IOW(KVMIO,  0xa2, struct kvm_debugregs)
 | 
			
		||||
/*
 | 
			
		||||
 * vcpu version available with KVM_ENABLE_CAP
 | 
			
		||||
 * vm version available with KVM_CAP_ENABLE_CAP_VM
 | 
			
		||||
 */
 | 
			
		||||
#define KVM_ENABLE_CAP            _IOW(KVMIO,  0xa3, struct kvm_enable_cap)
 | 
			
		||||
/* Available with KVM_CAP_XSAVE */
 | 
			
		||||
#define KVM_GET_XSAVE		  _IOR(KVMIO,  0xa4, struct kvm_xsave)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue