]> git.ipfire.org Git - thirdparty/qemu.git/commit
hv-balloon: use get_min_alignment() to express 32 GiB alignment
authorDavid Hildenbrand <david@redhat.com>
Wed, 17 Jan 2024 13:55:53 +0000 (14:55 +0100)
committerDavid Hildenbrand <david@redhat.com>
Sun, 4 Feb 2024 16:42:03 +0000 (17:42 +0100)
commitf77c5f38f49c71bc14cf1019ac92b0b95f572414
tree549f014b21f9153ff365391beda32885c825ce53
parent39a6e4f87e7b75a45b08d6dc8b8b7c2954c87440
hv-balloon: use get_min_alignment() to express 32 GiB alignment

Let's implement the get_min_alignment() callback for memory devices, and
copy for the device memory region the alignment of the host memory
region. This mimics what virtio-mem does, and allows for re-introducing
proper alignment checks for the memory region size (where we don't care
about additional device requirements) in memory device core.

Message-ID: <20240117135554.787344-2-david@redhat.com>
Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
hw/hyperv/hv-balloon.c