[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 03/10] memory-device: Drop size alignment check
From: |
Maciej S. Szmigiero |
Subject: |
[PULL 03/10] memory-device: Drop size alignment check |
Date: |
Mon, 6 Nov 2023 15:20:47 +0100 |
From: David Hildenbrand <david@redhat.com>
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>
---
hw/mem/memory-device.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/hw/mem/memory-device.c b/hw/mem/memory-device.c
index db702ccad554..e0704b8dc37a 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
- [PULL 00/10] Hyper-V Dynamic Memory Protocol driver (hv-balloon) pull req fixed, Maciej S. Szmigiero, 2023/11/06
- [PULL 02/10] Revert "hw/virtio/virtio-pmem: Replace impossible check by assertion", Maciej S. Szmigiero, 2023/11/06
- [PULL 01/10] memory-device: Support empty memory devices, Maciej S. Szmigiero, 2023/11/06
- [PULL 03/10] memory-device: Drop size alignment check,
Maciej S. Szmigiero <=
- [PULL 04/10] Add Hyper-V Dynamic Memory Protocol definitions, Maciej S. Szmigiero, 2023/11/06
- [PULL 05/10] Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) base, Maciej S. Szmigiero, 2023/11/06
- [PULL 06/10] Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) hot-add support, Maciej S. Szmigiero, 2023/11/06
- [PULL 07/10] qapi: Add query-memory-devices support to hv-balloon, Maciej S. Szmigiero, 2023/11/06
- [PULL 08/10] qapi: Add HV_BALLOON_STATUS_REPORT event and its QMP query command, Maciej S. Szmigiero, 2023/11/06
- [PULL 09/10] hw/i386/pc: Support hv-balloon, Maciej S. Szmigiero, 2023/11/06
- [PULL 10/10] MAINTAINERS: Add an entry for Hyper-V Dynamic Memory Protocol, Maciej S. Szmigiero, 2023/11/06
- Re: [PULL 00/10] Hyper-V Dynamic Memory Protocol driver (hv-balloon) pull req fixed, Stefan Hajnoczi, 2023/11/06