1. 16 Jan, 2018 37 commits
  2. 11 Jan, 2018 1 commit
  3. 14 Dec, 2017 2 commits
    • Paolo Bonzini's avatar
      KVM: introduce kvm_arch_vcpu_async_ioctl · 5cb0944c
      Paolo Bonzini authored
      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>
      Reviewed-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
      Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
      Suggested-by: default avatarCornelia Huck <cohuck@redhat.com>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      5cb0944c
    • Christoffer Dall's avatar
      KVM: Move vcpu_load to arch-specific kvm_arch_vcpu_ioctl · 9b062471
      Christoffer Dall authored
      Move the calls to vcpu_load() and vcpu_put() in to the architecture
      specific implementations of kvm_arch_vcpu_ioctl() which dispatches
      further architecture-specific ioctls on to other functions.
      
      Some architectures support asynchronous vcpu ioctls which cannot call
      vcpu_load() or take the vcpu->mutex, because that would prevent
      concurrent execution with a running VCPU, which is the intended purpose
      of these ioctls, for example because they inject interrupts.
      
      We repeat the separate checks for these specifics in the architecture
      code for MIPS, S390 and PPC, and avoid taking the vcpu->mutex and
      calling vcpu_load for these ioctls.
      Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
      9b062471