Re: [PATCH] KVM: introduce kvm_arch_vcpu_async_ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 12/12/2017 18:47, David Hildenbrand wrote:
>> @@ -2547,13 +2547,13 @@ static long kvm_vcpu_ioctl(struct file *filp,
>>  #if defined(CONFIG_S390) || defined(CONFIG_PPC) || defined(CONFIG_MIPS)
> can we now also get rid of this ugly define?

Not yet, I'd have to add the function to x86 and ARM, or a dummy inline.

Paolo

>>  	/*
>>  	 * Special cases: vcpu ioctls that are asynchronous to vcpu execution,
>> -	 * so vcpu_load() would break it.
>> +	 * so mutex_lock() would break it.
>>  	 */
>> -	if (ioctl == KVM_S390_INTERRUPT || ioctl == KVM_S390_IRQ || ioctl == KVM_INTERRUPT)
>> -		return kvm_arch_vcpu_ioctl(filp, ioctl, arg);
>> +	r = kvm_arch_vcpu_async_ioctl(filp, ioctl, arg);
>> +	if (r != -ENOIOCTLCMD)
>> +		return r;
>>  #endif
>>  
>> -
> unrelated change but the right thing to do :)
> 

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux