KVM: s390: Fix tprot locking
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 17 Nov 2011 10:00:43 +0000 (11:00 +0100)
committerAvi Kivity <avi@redhat.com>
Thu, 17 Nov 2011 14:25:48 +0000 (16:25 +0200)
commit1eddb85f889a5a9fe59ec184e06844716a00aded
treec789c7cd507f3e5fa5150dc8f6e44efc1e2ab866
parentbd59d3a4444e5f941c863db1a7715edf7289e29a
KVM: s390: Fix tprot locking

There is a potential host deadlock in the tprot intercept handling.
We must not hold the mmap semaphore while resolving the guest
address. If userspace is remapping, then the memory detection in
the guest is broken anyway so we can safely separate the
address translation from walking the vmas.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/priv.c