diff options
author | Jason J. Herne <[email protected]> | 2015-11-20 15:57:04 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-11-20 16:17:32 -0800 |
commit | 1a763615688b891246c5b0a932d7a95fea4c1a68 (patch) | |
tree | ff7dac4e67a0d7121b156b6e06544b5c94469f53 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7511c3ede752e6dd67df20779b4e11effe102637 (diff) |
mm: loosen MADV_NOHUGEPAGE to enable Qemu postcopy on s390
MADV_NOHUGEPAGE processing is too restrictive. kvm already disables
hugepage but hugepage_madvise() takes the error path when we ask to turn
on the MADV_NOHUGEPAGE bit and the bit is already on. This causes Qemu's
new postcopy migration feature to fail on s390 because its first action is
to madvise the guest address space as NOHUGEPAGE. This patch modifies the
code so that the operation succeeds without error now.
For consistency reasons do the same for MADV_HUGEPAGE.
Signed-off-by: Jason J. Herne <[email protected]>
Reviewed-by: Andrea Arcangeli <[email protected]>
Acked-by: Christian Borntraeger <[email protected]>
Acked-by: David Rientjes <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions