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>
Fri, 9 May 2014 11:02:47 +0000 (12:02 +0100)
commit89a6a78ec21e274c8abe1a63f2abc876ba127b60
treeb4e58dc166ef0e414f8e30a95491d4b1ba696173
parent7e5f0d41d30d8914400e0e4b892bc25b19cd38f1
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