aboutsummaryrefslogtreecommitdiff
path: root/hw/mem
diff options
context:
space:
mode:
authorDavid Hildenbrand <david@redhat.com>2023-06-22 12:49:19 +0200
committerMaciej S. Szmigiero <maciej.szmigiero@oracle.com>2023-11-06 13:54:57 +0100
commiteb1b7c4bd4135648a96449d4607063e80692fd0c (patch)
treec66623d8e1c18a19181f20d3b36d3538a93f6f32 /hw/mem
parent2d7f1081864790eb1000e6ef34e202dae66a03d2 (diff)
downloadqemu-eb1b7c4bd4135648a96449d4607063e80692fd0c.zip
qemu-eb1b7c4bd4135648a96449d4607063e80692fd0c.tar.gz
qemu-eb1b7c4bd4135648a96449d4607063e80692fd0c.tar.bz2
memory-device: Drop size alignment check
There is no strong requirement that the size has to be multiples of the requested alignment, let's drop it. This is a preparation for hv-baloon. Signed-off-by: David Hildenbrand <david@redhat.com> Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Diffstat (limited to 'hw/mem')
-rw-r--r--hw/mem/memory-device.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/hw/mem/memory-device.c b/hw/mem/memory-device.c
index db702cc..e0704b8 100644
--- a/hw/mem/memory-device.c
+++ b/hw/mem/memory-device.c
@@ -236,12 +236,6 @@ static uint64_t memory_device_get_free_addr(MachineState *ms,
return 0;
}
- if (!QEMU_IS_ALIGNED(size, align)) {
- error_setg(errp, "backend memory size must be multiple of 0x%"
- PRIx64, align);
- return 0;
- }
-
if (hint) {
if (range_init(&new, *hint, size) || !range_contains_range(&as, &new)) {
error_setg(errp, "can't add memory device [0x%" PRIx64 ":0x%" PRIx64