]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3799d48ce98d85d51330fb387ad44980f28eb788
treec789c7cd507f3e5fa5150dc8f6e44efc1e2ab866
parenta90b3101eac1e2941183bc045535dafe56bbeec3
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