mbox series

[GIT,PULL] Please pull my kvm-ppc-fixes-5.2-1 tag

Message ID 20190530115944.GA6675@blackberry
State Accepted
Headers show
Series [GIT,PULL] Please pull my kvm-ppc-fixes-5.2-1 tag | expand

Pull-request

git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-fixes-5.2-1

Message

Paul Mackerras May 30, 2019, 11:59 a.m. UTC
Paolo or Radim,

Please do a pull from my kvm-ppc-fixes-5.2-1 tag to get a series of
commits which should go into 5.2 (i.e. via the master branch of the
kvm tree).  They are mostly fixes for the new code which allows guests
to access the XIVE interrupt controller on POWER9 machines directly,
and locking fixes to solve host deadlock issues.

It turns out that the PPC KVM code had been using the kvm->lock mutex
in several places where the vcpu mutex was already held.  Although
this is contrary to what Documentation/virtual/kvm/locking.txt says,
lockdep didn't complain about it in the past because we (apparently)
had no places where a vcpu mutex was taken with kvm->lock held.  Now
there is such a place, in the recently-added XIVE code.  Thus we now
need to fix those other places that take the locks in the wrong order.

Thanks,
Paul.

The following changes since commit cd6c84d8f0cdc911df435bb075ba22ce3c605b07:

  Linux 5.2-rc2 (2019-05-26 16:49:19 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-fixes-5.2-1

for you to fetch changes up to d724c9e54939a597592de3659541da11fc7aa112:

  KVM: PPC: Book3S HV: Restore SPRG3 in kvmhv_p9_guest_entry() (2019-05-30 14:00:54 +1000)

----------------------------------------------------------------
PPC KVM fixes for 5.2

- Several bug fixes for the new XIVE-native code.
- Replace kvm->lock by other mutexes in several places where we hold a
  vcpu mutex, to avoid lock order inversions.
- Fix a lockdep warning on guest entry for radix-mode guests.
- Fix a bug causing user-visible corruption of SPRG3 on the host.

----------------------------------------------------------------
Cédric Le Goater (7):
      KVM: PPC: Book3S HV: XIVE: Clear file mapping when device is released
      KVM: PPC: Book3S HV: XIVE: Do not test the EQ flag validity when resetting
      KVM: PPC: Book3S HV: XIVE: Fix the enforced limit on the vCPU identifier
      KVM: PPC: Book3S HV: XIVE: Introduce a new mutex for the XIVE device
      KVM: PPC: Book3S HV: XIVE: Do not clear IRQ data of passthrough interrupts
      KVM: PPC: Book3S HV: XIVE: Take the srcu read lock when accessing memslots
      KVM: PPC: Book3S HV: XIVE: Fix page offset when clearing ESB pages

Paul Mackerras (5):
      KVM: PPC: Book3S HV: Avoid touching arch.mmu_ready in XIVE release functions
      KVM: PPC: Book3S HV: Use new mutex to synchronize MMU setup
      KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token list
      KVM: PPC: Book3S HV: Don't take kvm->lock around kvm_for_each_vcpu
      KVM: PPC: Book3S HV: Fix lockdep warning when entering guest on POWER9

Suraj Jitindar Singh (1):
      KVM: PPC: Book3S HV: Restore SPRG3 in kvmhv_p9_guest_entry()

 arch/powerpc/include/asm/kvm_host.h   |   2 +
 arch/powerpc/kvm/book3s.c             |   1 +
 arch/powerpc/kvm/book3s_64_mmu_hv.c   |  36 ++++++------
 arch/powerpc/kvm/book3s_hv.c          |  48 ++++++++++------
 arch/powerpc/kvm/book3s_rtas.c        |  14 ++---
 arch/powerpc/kvm/book3s_xive.c        |  55 +++++++++----------
 arch/powerpc/kvm/book3s_xive.h        |   1 +
 arch/powerpc/kvm/book3s_xive_native.c | 100 +++++++++++++++++++---------------
 8 files changed, 142 insertions(+), 115 deletions(-)

Comments

Paolo Bonzini May 31, 2019, 10:48 p.m. UTC | #1
On 30/05/19 13:59, Paul Mackerras wrote:
>   git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc tags/kvm-ppc-fixes-5.2-1

Pulled, thanks.

Paolo