KVM: s390/mm: new gmap_test_and_clear_dirty function
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Mon, 24 Mar 2014 13:27:58 +0000 (14:27 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 22 Apr 2014 07:36:27 +0000 (09:36 +0200)
commita0bf4f149bbfa2e31b5f4172c817afdb7b986733
treeed16368e498daaf4451241b5c734368a31986b1e
parent0a61b222df75a6a69dc34816f7db2f61fee8c935
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>
arch/s390/include/asm/pgtable.h
arch/s390/mm/pgtable.c