aboutsummaryrefslogtreecommitdiff
path: root/migration/block.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2015-11-19 15:27:48 +0000
committerJuan Quintela <quintela@redhat.com>2015-11-25 15:27:28 +0100
commit1d7414396f926651c4d7a673eb3a10aca5246d76 (patch)
treeff3b04ca4e3cc6bf195bd0422cb0147f802117c7 /migration/block.c
parente85dda8070b20dd8765d52daf64de70a9ccf395f (diff)
Assume madvise for (no)hugepage works
madvise() returns EINVAL in the case of many failures, but also returns it in cases where the host kernel doesn't have THP enabled. Postcopy only really cares that THP is off before it detects faults, and turns it back on afterwards; so we're going to have to assume that if the madvise fails then the host just doesn't do THP and we can carry on with the postcopy. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Tested-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration/block.c')
0 files changed, 0 insertions, 0 deletions