|
From: | Philippe Mathieu-Daudé |
Subject: | Re: [PATCH 06/14] system: Declare qemu_[min/max]rampagesize() in 'system/hostmem.h' |
Date: | Fri, 7 Mar 2025 22:12:09 +0100 |
User-agent: | Mozilla Thunderbird |
On 7/3/25 19:03, Philippe Mathieu-Daudé wrote:
Both qemu_minrampagesize() and qemu_maxrampagesize() are related to host memory backends. Move their prototype declaration to "system/hostmem.h".
qemu_minrampagesize() -> find_min_backend_pagesize() -> object_dynamic_cast(obj, TYPE_MEMORY_BACKEND) qemu_maxrampagesize() -> find_max_backend_pagesize() -> object_dynamic_cast(obj, TYPE_MEMORY_BACKEND) Having: include/system/hostmem.h:23:#define TYPE_MEMORY_BACKEND "memory-backend"
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- include/exec/ram_addr.h | 3 --- include/system/hostmem.h | 3 +++ hw/ppc/spapr_caps.c | 1 + hw/s390x/s390-virtio-ccw.c | 1 + hw/vfio/spapr.c | 1 + 5 files changed, 6 insertions(+), 3 deletions(-)
[Prev in Thread] | Current Thread | [Next in Thread] |