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)
commit0959e168678d2d95648317e1e5e46bcb358272eb
tree384aaaf4b65878390acb5fd2cf2cc8d7fd68cc6c
parent6a3762778d1ba1a58ab473124790cd612d10eadc
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