lkml.org 
[lkml]   [2017]   [Dec]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] KVM: introduce kvm_arch_vcpu_async_ioctl
From
Date
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 :)
>

\
 
 \ /
  Last update: 2017-12-12 18:50    [W:0.087 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site