diff options
| author | Claudio Imbrenda <imbrenda@linux.ibm.com> | 2026-07-02 17:23:59 +0200 |
|---|---|---|
| committer | Christian Borntraeger <borntraeger@linux.ibm.com> | 2026-07-09 10:26:10 +0200 |
| commit | 866d03de6def89c386cdfd457b28a1f566e02565 (patch) | |
| tree | 2d668ec30c90ab4630b1fe64654cbbe5d06eb864 /drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git | |
| parent | 7b69729046a4c58f4cb457184e5ac4aaa179bff4 (diff) | |
KVM: s390: vsie: Avoid potential deadlock with real spaces
The natural lock ordering is mmu_lock -> children_lock, but in
gmap_create_shadow() the reverse order is used when handling shadowing
of real address spaces.
Convert the inner locking of kvm->mmu_lock to a trylock; return -EAGAIN
if the lock is busy, and let the caller try again.
This path is not expected to happen in real-life scenarios, so its
performance is not important.
Fixes: a2c17f9270cc ("KVM: s390: New gmap code")
Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Diffstat (limited to 'drivers/gpu/nova-core/fsp/hal/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
