mm/hugetlb.c: call MMU notifiers when copying a hugetlb page range
authorAndreas Sandberg <[email protected]>
Tue, 21 Jan 2014 23:49:09 +0000 (15:49 -0800)
committerLinus Torvalds <[email protected]>
Wed, 22 Jan 2014 00:19:44 +0000 (16:19 -0800)
commite8569dd299dbc7bac878325c0bdc7aa449eae479
treedd512bba20e9413ee8bf1a0eff169d9e017051ad
parent549543dff797ae1081f61a69f8511c61806c3735
mm/hugetlb.c: call MMU notifiers when copying a hugetlb page range

When copy_hugetlb_page_range() is called to copy a range of hugetlb
mappings, the secondary MMUs are not notified if there is a protection
downgrade, which breaks COW semantics in KVM.

This patch adds the necessary MMU notifier calls.

Signed-off-by: Andreas Sandberg <[email protected]>
Acked-by: Steve Capper <[email protected]>
Acked-by: Marc Zyngier <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Hugh Dickins <[email protected]>
Cc: Andrea Arcangeli <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/hugetlb.c