diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2025-09-30 14:35:28 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2025-10-02 10:41:23 +0200 |
| commit | f0b52aa08ab0868c18d881381a8fda4b59b37517 (patch) | |
| tree | c1703b8684fedddb4c3c2286a53a6575e6dc9500 /hw/vfio-user/container.c | |
| parent | 0ca70d3bf722a94c53f254670e6a642e77aa077c (diff) | |
| download | focaccia-qemu-f0b52aa08ab0868c18d881381a8fda4b59b37517.tar.gz focaccia-qemu-f0b52aa08ab0868c18d881381a8fda4b59b37517.zip | |
hw/vfio: Use uint64_t for IOVA mapping size in vfio_container_dma_*map
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. This doesn't represent well an IOVA mapping size. Simply use the uint64_t type. 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-5-philmd@linaro.org Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio-user/container.c')
| -rw-r--r-- | hw/vfio-user/container.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/vfio-user/container.c b/hw/vfio-user/container.c index 411eb7b28b..e45192fef6 100644 --- a/hw/vfio-user/container.c +++ b/hw/vfio-user/container.c @@ -39,7 +39,7 @@ static void vfio_user_listener_commit(VFIOContainer *bcontainer) } static int vfio_user_dma_unmap(const VFIOContainer *bcontainer, - hwaddr iova, ram_addr_t size, + hwaddr iova, uint64_t size, IOMMUTLBEntry *iotlb, bool unmap_all) { VFIOUserContainer *container = VFIO_IOMMU_USER(bcontainer); @@ -81,7 +81,7 @@ static int vfio_user_dma_unmap(const VFIOContainer *bcontainer, } static int vfio_user_dma_map(const VFIOContainer *bcontainer, hwaddr iova, - ram_addr_t size, void *vaddr, bool readonly, + uint64_t size, void *vaddr, bool readonly, MemoryRegion *mrp) { VFIOUserContainer *container = VFIO_IOMMU_USER(bcontainer); |