KVM: PPC: Book3S: Fix potential deadlocks
Get series with b4
b4 am 20190523063424.GB19655@blackberryVersions newest first
- v1 Latest4 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | KVM: PPC: Book3S HV: Avoid touching arch.mmu_ready in XIVE release functionsarch/ arch/ | +24 | 0 replies | |
| 2/4 | KVM: PPC: Book3S HV: Use new mutex to synchronize MMU setuparch/ arch/ arch/ | +42 | 0 replies | |
| 3/4 | KVM: PPC: Book3S: Use new mutex to synchronize access to rtas token listarch/ arch/ arch/ | +9 | 2 replies | |
| 4/4 | KVM: PPC: Book3S HV: Don't take kvm->lock around kvm_for_each_vcpuarch/ | +1 | 1 reply |
Reviews trailers per patch
2 of 4 patches have a Reviewed-by or Acked-by.
| Patch | Cédric Le Goater |
|---|---|
| 1/4 | |
| 2/4 | |
| 3/4 | R-b |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/4] KVM: PPC: Book3S: Fix potential deadlocks
Recent reports of lockdep splats in the HV KVM code revealed that it was taking the kvm->lock mutex in several contexts where a vcpu mutex was already held. Lockdep has only started warning since I added code to take the vcpu mutexes in the XIVE device release functions, but since Documentation/virtual/kvm/locking.txt specifies that the vcpu mutexes nest inside kvm->lock, it seems that the new code is correct and it is most of the old uses of kvm->lock that are wrong.
This series should fix the problems, by adding new mutexes that nest inside the vcpu mutexes and using them instead of kvm->lock.
Paul.