summaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorDominik Dingel2014-03-24 14:27:58 +0100
committerChristian Borntraeger2014-04-22 09:36:27 +0200
commita0bf4f149bbfa2e31b5f4172c817afdb7b986733 (patch)
treeed16368e498daaf4451241b5c734368a31986b1e /arch/s390/include
parentKVM: s390/mm: use software dirty bit detection for user dirty tracking (diff)
downloadkernel-qcow2-linux-a0bf4f149bbfa2e31b5f4172c817afdb7b986733.tar.gz
kernel-qcow2-linux-a0bf4f149bbfa2e31b5f4172c817afdb7b986733.tar.xz
kernel-qcow2-linux-a0bf4f149bbfa2e31b5f4172c817afdb7b986733.zip
KVM: s390/mm: new gmap_test_and_clear_dirty function
For live migration kvm needs to test and clear the dirty bit of guest pages. That for is ptep_test_and_clear_user_dirty, to be sure we are not racing with other code, we protect the pte. This needs to be done within the architecture memory management code. Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com> Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/pgtable.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/pgtable.h b/arch/s390/include/asm/pgtable.h
index b2c630df0ca5..fcba5e03839f 100644
--- a/arch/s390/include/asm/pgtable.h
+++ b/arch/s390/include/asm/pgtable.h
@@ -838,6 +838,8 @@ unsigned long __gmap_fault(unsigned long address, struct gmap *);
unsigned long gmap_fault(unsigned long address, struct gmap *);
void gmap_discard(unsigned long from, unsigned long to, struct gmap *);
void __gmap_zap(unsigned long address, struct gmap *);
+bool gmap_test_and_clear_dirty(unsigned long address, struct gmap *);
+
void gmap_register_ipte_notifier(struct gmap_notifier *);
void gmap_unregister_ipte_notifier(struct gmap_notifier *);