]> www.infradead.org Git - users/dwmw2/qemu.git/commit
postcopy: Require RAMBlocks that are whole pages
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 17 May 2017 16:58:10 +0000 (17:58 +0100)
committerJuan Quintela <quintela@redhat.com>
Thu, 18 May 2017 16:04:53 +0000 (18:04 +0200)
commit5d214a92acb38979ee1abd1883a225903cb171b6
tree6be7615349430bc9ff5912f46143f52e0a5f4d7d
parent1eb3fc0a0b61b5d22adee2a9add3162a6c03a47e
postcopy: Require RAMBlocks that are whole pages

It turns out that it's legal to create a VM with RAMBlocks that aren't
a multiple of the pagesize in use; e.g. a 1025M main memory using
2M host pages.  That breaks postcopy's atomic placement of pages,
so disallow it.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
migration/postcopy-ram.c