Repository navigation
Commit e8569dd
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>1 parent 549543d commit e8569dd
1 file changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2346 | 2346 | | |
2347 | 2347 | | |
2348 | 2348 | | |
| 2349 | + | |
| 2350 | + | |
| 2351 | + | |
2349 | 2352 | | |
2350 | 2353 | | |
2351 | 2354 | | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
2352 | 2360 | | |
2353 | 2361 | | |
2354 | 2362 | | |
2355 | 2363 | | |
2356 | 2364 | | |
2357 | 2365 | | |
2358 | | - | |
2359 | | - | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2360 | 2370 | | |
2361 | 2371 | | |
2362 | 2372 | | |
| |||
2377 | 2387 | | |
2378 | 2388 | | |
2379 | 2389 | | |
2380 | | - | |
2381 | 2390 | | |
2382 | | - | |
2383 | | - | |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
2384 | 2395 | | |
2385 | 2396 | | |
2386 | 2397 | | |
| |||
0 commit comments