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)
commitdf88f3181f10565c6e3a89eb6f0f9e6afaaf15f1
tree5ecdb676fe4a0bc80ffca99703385a239b107c75
parent204c97245612b6c255edf4e21e24d417c4a0c008
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: a4499382 ("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