KVM: x86: API changes for SMM support
This patch includes changes to the external API for SMM support. Userspace can predicate the availability of the new fields and ioctls on a new capability, KVM_CAP_X86_SMM, which is added at the end of the patch series. Reviewed-by: Radim Krčmář <rkrcmar@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
		
					parent
					
						
							
								a584539b24
							
						
					
				
			
			
				commit
				
					
						f077825a87
					
				
			
		
					 7 changed files with 99 additions and 10 deletions
				
			
		|  | @ -202,7 +202,7 @@ struct kvm_run { | |||
| 	__u32 exit_reason; | ||||
| 	__u8 ready_for_interrupt_injection; | ||||
| 	__u8 if_flag; | ||||
| 	__u8 padding2[2]; | ||||
| 	__u16 flags; | ||||
| 
 | ||||
| 	/* in (pre_kvm_run), out (post_kvm_run) */ | ||||
| 	__u64 cr8; | ||||
|  | @ -815,6 +815,7 @@ struct kvm_ppc_smmu_info { | |||
| #define KVM_CAP_S390_IRQ_STATE 114 | ||||
| #define KVM_CAP_PPC_HWRNG 115 | ||||
| #define KVM_CAP_DISABLE_QUIRKS 116 | ||||
| #define KVM_CAP_X86_SMM 117 | ||||
| 
 | ||||
| #ifdef KVM_CAP_IRQ_ROUTING | ||||
| 
 | ||||
|  | @ -1200,6 +1201,8 @@ struct kvm_s390_ucas_mapping { | |||
| /* Available with KVM_CAP_S390_IRQ_STATE */ | ||||
| #define KVM_S390_SET_IRQ_STATE	  _IOW(KVMIO, 0xb5, struct kvm_s390_irq_state) | ||||
| #define KVM_S390_GET_IRQ_STATE	  _IOW(KVMIO, 0xb6, struct kvm_s390_irq_state) | ||||
| /* Available with KVM_CAP_X86_SMM */ | ||||
| #define KVM_SMI                   _IO(KVMIO,   0xb7) | ||||
| 
 | ||||
| #define KVM_DEV_ASSIGN_ENABLE_IOMMU	(1 << 0) | ||||
| #define KVM_DEV_ASSIGN_PCI_2_3		(1 << 1) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Paolo Bonzini
				Paolo Bonzini