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 06:31 PM, Paolo Bonzini wrote:
> After the vcpu_load/vcpu_put pushdown, the handling of asynchronous VCPU
> ioctl is already much clearer in that it is obvious that they bypass
> vcpu_load and vcpu_put.
>
> However, it is still not perfect in that the different state of the VCPU
> mutex is still hidden in the caller. Separate those ioctls into a new
> function kvm_arch_vcpu_async_ioctl that returns -ENOIOCTLCMD for more
> "traditional" synchronous ioctls.
>
> Cc: James Hogan <jhogan@kernel.org>
> Cc: Paul Mackerras <paulus@ozlabs.org>
> Cc: Christian Borntraeger <borntraeger@de.ibm.com>

looks sane.

> Suggested-by: Cornelia Huck <cohuck@redhat.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> arch/mips/kvm/mips.c | 15 ++++++++++++---
> arch/powerpc/kvm/powerpc.c | 14 +++++++++++---
> arch/s390/kvm/kvm-s390.c | 16 ++++++++++++----
> include/linux/kvm_host.h | 2 ++
> virt/kvm/kvm_main.c | 8 ++++----
> 5 files changed, 41 insertions(+), 14 deletions(-)
>

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