[PATCH v3 0/4] hw/vfio: Remove invalid uses of ram_addr_t type

Philippe Mathieu-Daudé posted 4 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250930123528.42878-1-philmd@linaro.org
Maintainers: Yi Liu <yi.l.liu@intel.com>, Eric Auger <eric.auger@redhat.com>, Zhenzhong Duan <zhenzhong.duan@intel.com>, John Levon <john.levon@nutanix.com>, Thanos Makatos <thanos.makatos@nutanix.com>, "Cédric Le Goater" <clg@redhat.com>, Alex Williamson <alex.williamson@redhat.com>, Steve Sistare <steven.sistare@oracle.com>
include/hw/vfio/vfio-container.h | 13 +++++++------
include/hw/vfio/vfio-cpr.h       |  2 +-
include/system/iommufd.h         |  6 +++---
backends/iommufd.c               |  6 +++---
hw/vfio-user/container.c         |  4 ++--
hw/vfio/container-legacy.c       |  8 ++++----
hw/vfio/container.c              | 15 ++++++++-------
hw/vfio/cpr-legacy.c             |  2 +-
hw/vfio/iommufd.c                |  6 +++---
hw/vfio/listener.c               | 18 +++++++++---------
hw/vfio/trace-events             |  6 +++---
11 files changed, 44 insertions(+), 42 deletions(-)
[PATCH v3 0/4] hw/vfio: Remove invalid uses of ram_addr_t type
Posted by Philippe Mathieu-Daudé 1 month, 2 weeks ago
Replace ram_addr_t by either hwaddr or uint64_t types.

Since v2:
- Rename variables as 'translated_addr' (Cédric)

Philippe Mathieu-Daudé (4):
  system/iommufd: Use uint64_t type for IOVA mapping size
  hw/vfio: Reorder vfio_container_query_dirty_bitmap() trace format
  hw/vfio: Avoid ram_addr_t in vfio_container_query_dirty_bitmap()
  hw/vfio: Use uint64_t for IOVA mapping size in vfio_container_dma_*map

 include/hw/vfio/vfio-container.h | 13 +++++++------
 include/hw/vfio/vfio-cpr.h       |  2 +-
 include/system/iommufd.h         |  6 +++---
 backends/iommufd.c               |  6 +++---
 hw/vfio-user/container.c         |  4 ++--
 hw/vfio/container-legacy.c       |  8 ++++----
 hw/vfio/container.c              | 15 ++++++++-------
 hw/vfio/cpr-legacy.c             |  2 +-
 hw/vfio/iommufd.c                |  6 +++---
 hw/vfio/listener.c               | 18 +++++++++---------
 hw/vfio/trace-events             |  6 +++---
 11 files changed, 44 insertions(+), 42 deletions(-)

-- 
2.51.0


Re: [PATCH v3 0/4] hw/vfio: Remove invalid uses of ram_addr_t type
Posted by Cédric Le Goater 1 month, 2 weeks ago
On 9/30/25 14:35, Philippe Mathieu-Daudé wrote:
> Replace ram_addr_t by either hwaddr or uint64_t types.
> 
> Since v2:
> - Rename variables as 'translated_addr' (Cédric)
> 
> Philippe Mathieu-Daudé (4):
>    system/iommufd: Use uint64_t type for IOVA mapping size
>    hw/vfio: Reorder vfio_container_query_dirty_bitmap() trace format
>    hw/vfio: Avoid ram_addr_t in vfio_container_query_dirty_bitmap()
>    hw/vfio: Use uint64_t for IOVA mapping size in vfio_container_dma_*map
> 
>   include/hw/vfio/vfio-container.h | 13 +++++++------
>   include/hw/vfio/vfio-cpr.h       |  2 +-
>   include/system/iommufd.h         |  6 +++---
>   backends/iommufd.c               |  6 +++---
>   hw/vfio-user/container.c         |  4 ++--
>   hw/vfio/container-legacy.c       |  8 ++++----
>   hw/vfio/container.c              | 15 ++++++++-------
>   hw/vfio/cpr-legacy.c             |  2 +-
>   hw/vfio/iommufd.c                |  6 +++---
>   hw/vfio/listener.c               | 18 +++++++++---------
>   hw/vfio/trace-events             |  6 +++---
>   11 files changed, 44 insertions(+), 42 deletions(-)
> 


Applied to vfio-next.

Thanks,

C.