[Qemu-devel] [PATCH 0/2] Migration+huge page fixes

Dr. David Alan Gilbert (git) posted 2 patches 6 years, 11 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20170517165810.18164-1-dgilbert@redhat.com
Test checkpatch passed
Test docker passed
Test s390x passed
migration/postcopy-ram.c | 16 +++++++++++++---
migration/ram.c          |  5 ++++-
2 files changed, 17 insertions(+), 4 deletions(-)
[Qemu-devel] [PATCH 0/2] Migration+huge page fixes
Posted by Dr. David Alan Gilbert (git) 6 years, 11 months ago
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>

Hi,
  The attached patch-pair fix migration in the case
where you are using huge pages but you have a RAM size
which is not a multiple of the huge page size.
It's unfortunately legal so there might be VMs out there
that already have it, and it turns out it used to work,
but it broke, probably when I added the support for hugepages
in postcopy.

Here I:
   a) Fix it for normal migration
   b) Ban it for postcopy, since postcopy+hugepage was new
     recently anyway and it's a non-trivial fix.

Dave

Dr. David Alan Gilbert (2):
  migration: Fix non-multiple of page size migration
  postcopy: Require RAMBlocks that are whole pages

 migration/postcopy-ram.c | 16 +++++++++++++---
 migration/ram.c          |  5 ++++-
 2 files changed, 17 insertions(+), 4 deletions(-)

-- 
2.13.0