mm/hugetlb.c: call MMU notifiers when copying a hugetlb page range
authorAndreas Sandberg <andreas@sandberg.pp.se>
Tue, 21 Jan 2014 23:49:09 +0000 (15:49 -0800)
committerMark Brown <broonie@linaro.org>
Thu, 15 May 2014 18:59:50 +0000 (19:59 +0100)
commitd5edd6d254097253b9feb3707c7405777a91630b
treed7ad0ce16d9680c4008f43a17b2b0f3d791eb4e9
parentce30e7d5f7d20ab0df99c6f3d7f45600f0deeecc
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 <andreas@sandberg.pp.se>
Acked-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c