]> 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)
commit79ca6ee9a951f4a1b6fb8a4eba8fb8966d62551d
treec789c7cd507f3e5fa5150dc8f6e44efc1e2ab866
parent35cc436baa6c743a0537164044aa96291582bcd7
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