OSDN Git Service

exec: round up size on MR resize
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 17 Feb 2015 09:15:30 +0000 (10:15 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 26 Feb 2015 11:42:20 +0000 (12:42 +0100)
commit129ddaf31be583fb7c97812e07e028661005ce42
treec091d71b346ab2713fa525eee2271ece3fd09cb9
parent358774d780ee8f91429323f44bef1f53afa448bf
exec: round up size on MR resize

Block size must fundamentally be a multiple of target page size.
Aligning automatically removes need to worry about the alignment
from callers.

Note: the only caller of qemu_ram_resize (acpi) already happens to have
size padded to a power of 2, but we would like to drop the padding in
ACPI core, and don't want to expose target page size knowledge to ACPI.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Paolo Bonzini <ponzini@redhat.com>
exec.c