]> 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)
commit893d07b0ac1f2c338af113ace2c70d121443e971
tree384aaaf4b65878390acb5fd2cf2cc8d7fd68cc6c
parentb8d94a070d8b8d6414eb821ea6813ad18da4baf3
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