]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit271e89127116dc01fcf0059876081c7ab409f21d
treeed16368e498daaf4451241b5c734368a31986b1e
parent17e38ff5d81bf8721cedcf4691954aab9c797188
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