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)
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>

No differences found