Re: [PATCH 06/14] system: Declare qemu_[min/max]rampagesize() in 'system/hostmem.h'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
  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(-)





[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux