]> git.ipfire.org Git - thirdparty/qemu.git/commit
ram-block-attributes: Unify the retrieval of the block size
authorChenyi Qiang <chenyi.qiang@intel.com>
Thu, 23 Oct 2025 09:55:25 +0000 (17:55 +0800)
committerPeter Xu <peterx@redhat.com>
Mon, 3 Nov 2025 21:04:10 +0000 (16:04 -0500)
commitb2ceb87b1a210d91a29d525590eb164d1121b8a1
tree8459ed579eb6e01cdd91d96e31bfa2c9a72ffc69
parent8922a758b29251d9009ec509e7f580b76509ab3d
ram-block-attributes: Unify the retrieval of the block size

There's an existing helper function designed to obtain the block size.
Modify ram_block_attribute_create() to use this function for
consistency.

Tested-by: Farrah Chen <farrah.chen@intel.com>
Signed-off-by: Chenyi Qiang <chenyi.qiang@intel.com>
Link: https://lore.kernel.org/r/20251023095526.48365-3-chenyi.qiang@intel.com
[peterx: fix double spaces, per david]
Signed-off-by: Peter Xu <peterx@redhat.com>
system/ram-block-attributes.c