kvm: remove one useless check extension
We already check KVM_CAP_IRQFD in generic once enable CONFIG_HAVE_KVM_IRQFD,
kvm_vm_ioctl_check_extension_generic()
    |
    + switch (arg) {
    +   ...
    +   #ifdef CONFIG_HAVE_KVM_IRQFD
    +       case KVM_CAP_IRQFD:
    +   #endif
    +   ...
    +   return 1;
    +   ...
    + }
    |
    + kvm_vm_ioctl_check_extension()
So its not necessary to check this in arch again, and also fix one typo,
s/emlation/emulation.
Signed-off-by: Tiejun Chen <tiejun.chen@intel.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
	
	
This commit is contained in:
		
					parent
					
						
							
								85e84ba310
							
						
					
				
			
			
				commit
				
					
						ea2c6d9745
					
				
			
		
					 2 changed files with 1 additions and 2 deletions
				
			
		|  | @ -895,7 +895,7 @@ struct kvm_xen_hvm_config { | |||
|  * | ||||
|  * KVM_IRQFD_FLAG_RESAMPLE indicates resamplefd is valid and specifies | ||||
|  * the irqfd to operate in resampling mode for level triggered interrupt | ||||
|  * emlation.  See Documentation/virtual/kvm/api.txt. | ||||
|  * emulation.  See Documentation/virtual/kvm/api.txt. | ||||
|  */ | ||||
| #define KVM_IRQFD_FLAG_RESAMPLE (1 << 1) | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tiejun Chen
				Tiejun Chen