diff options
author | Michael S. Tsirkin | 2013-08-19 16:26:52 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2013-08-20 23:18:39 +0200 |
commit | 0851c9f75ccb0baf28f5bf901b9ffe3c91fcf969 (patch) | |
tree | 87334710c73cdace76979bd9762c7eb35fd843b2 /hw/core | |
parent | pc: cleanup 1.4 compat support (diff) | |
download | qemu-0851c9f75ccb0baf28f5bf901b9ffe3c91fcf969.tar.gz qemu-0851c9f75ccb0baf28f5bf901b9ffe3c91fcf969.tar.xz qemu-0851c9f75ccb0baf28f5bf901b9ffe3c91fcf969.zip |
arch_init: align MR size to target page size
Migration code assumes that each MR is a multiple of TARGET_PAGE_SIZE:
MR size is divided by TARGET_PAGE_SIZE, so if it isn't migration
never completes.
But this isn't really required for regions set up with
memory_region_init_ram, since that calls qemu_ram_alloc
which aligns size up using TARGET_PAGE_ALIGN.
Align MR size up to full target page sizes, this way
migration completes even if we create a RAM MR
which is not a full target page size.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'hw/core')
0 files changed, 0 insertions, 0 deletions