]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: Add huge page dirty sync support
authorJanosch Frank <frankja@linux.ibm.com>
Tue, 17 Jul 2018 12:21:22 +0000 (13:21 +0100)
committerJanosch Frank <frankja@linux.ibm.com>
Mon, 30 Jul 2018 10:20:18 +0000 (11:20 +0100)
commit2586196d2bf91e031416a9fb4f2013e412eccb41
tree384aaaf4b65878390acb5fd2cf2cc8d7fd68cc6c
parentc76d04724507411ad8f7f5b663660e48f43cb853
s390/mm: Add huge page dirty sync support

To do dirty loging with huge pages, we protect huge pmds in the
gmap. When they are written to, we unprotect them and mark them dirty.

We introduce the function gmap_test_and_clear_dirty_pmd which handles
dirty sync for huge pages.

Signed-off-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
arch/s390/include/asm/gmap.h
arch/s390/include/asm/pgtable.h
arch/s390/kvm/kvm-s390.c
arch/s390/mm/gmap.c
arch/s390/mm/pgtable.c