]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/vfio: Avoid ram_addr_t in vfio_container_query_dirty_bitmap()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 30 Sep 2025 12:35:27 +0000 (14:35 +0200)
committerCédric Le Goater <clg@redhat.com>
Thu, 2 Oct 2025 08:41:23 +0000 (10:41 +0200)
commit0ca70d3bf722a94c53f254670e6a642e77aa077c
tree6143882048b54259f037c2ec0b31360b9d0c4e63
parent5764a715277afc4d6076fbf2bae1697dbd2fa182
hw/vfio: Avoid ram_addr_t in vfio_container_query_dirty_bitmap()

The 'ram_addr_t' type is described as:

  a QEMU internal address space that maps guest RAM physical
  addresses into an intermediate address space that can map
  to host virtual address spaces.

vfio_container_query_dirty_bitmap() doesn't expect such QEMU
intermediate address, but a guest physical addresses. Use the
appropriate 'hwaddr' type, rename as @translated_addr for
clarity.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250930123528.42878-4-philmd@linaro.org
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c
hw/vfio/listener.c
hw/vfio/trace-events
include/hw/vfio/vfio-container.h