]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Properly lock mm context allow_gmap_hpage_1m setting
authorJanosch Frank <frankja@linux.ibm.com>
Thu, 30 Aug 2018 14:14:18 +0000 (16:14 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 4 Sep 2018 09:40:26 +0000 (11:40 +0200)
commit6099a4720c655294536f831f4c6cecb6c2debeb4
tree5ecdb676fe4a0bc80ffca99703385a239b107c75
parentf5787c61a3defb0fe9d69ae87db87596ba7451d2
KVM: s390: Properly lock mm context allow_gmap_hpage_1m setting

We have to do down_write on the mm semaphore to set a bitfield in the
mm context.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Fixes: 676c948f ("KVM: s390: Add huge page enablement control")
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/mmu.h
arch/s390/kvm/kvm-s390.c