Searched refs:vbmap (Results 1 – 7 of 7) sorted by relevance
/openbmc/qemu/hw/vfio/ |
H A D | container.c | 69 VFIOBitmap vbmap; in vfio_dma_unmap_bitmap() local 72 ret = vfio_bitmap_alloc(&vbmap, size); in vfio_dma_unmap_bitmap() 91 bitmap->size = vbmap.size; in vfio_dma_unmap_bitmap() 92 bitmap->data = (__u64 *)vbmap.bitmap; in vfio_dma_unmap_bitmap() 94 if (vbmap.size > bcontainer->max_dirty_bitmap_size) { in vfio_dma_unmap_bitmap() 95 error_report("UNMAP: Size of bitmap too big 0x%"PRIx64, vbmap.size); in vfio_dma_unmap_bitmap() 102 cpu_physical_memory_set_dirty_lebitmap(vbmap.bitmap, in vfio_dma_unmap_bitmap() 103 iotlb->translated_addr, vbmap.pages); in vfio_dma_unmap_bitmap() 110 g_free(vbmap.bitmap); in vfio_dma_unmap_bitmap() 239 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp) in vfio_legacy_query_dirty_bitmap() argument [all …]
|
H A D | helpers.c | 261 int vfio_bitmap_alloc(VFIOBitmap *vbmap, hwaddr size) in vfio_bitmap_alloc() argument 263 vbmap->pages = REAL_HOST_PAGE_ALIGN(size) / qemu_real_host_page_size(); in vfio_bitmap_alloc() 264 vbmap->size = ROUND_UP(vbmap->pages, sizeof(__u64) * BITS_PER_BYTE) / in vfio_bitmap_alloc() 266 vbmap->bitmap = g_try_malloc0(vbmap->size); in vfio_bitmap_alloc() 267 if (!vbmap->bitmap) { in vfio_bitmap_alloc()
|
H A D | container-base.c | 77 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp) in vfio_container_query_dirty_bitmap() argument 82 return vioc->query_dirty_bitmap(bcontainer, vbmap, iova, size, in vfio_container_query_dirty_bitmap()
|
H A D | common.c | 1135 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp) in vfio_devices_query_dirty_bitmap() argument 1142 vbmap->bitmap); in vfio_devices_query_dirty_bitmap() 1162 VFIOBitmap vbmap; in vfio_get_dirty_bitmap() local 1172 ret = vfio_bitmap_alloc(&vbmap, size); in vfio_get_dirty_bitmap() 1180 ret = vfio_devices_query_dirty_bitmap(bcontainer, &vbmap, iova, size, in vfio_get_dirty_bitmap() 1183 ret = vfio_container_query_dirty_bitmap(bcontainer, &vbmap, iova, size, in vfio_get_dirty_bitmap() 1191 dirty_pages = cpu_physical_memory_set_dirty_lebitmap(vbmap.bitmap, ram_addr, in vfio_get_dirty_bitmap() 1192 vbmap.pages); in vfio_get_dirty_bitmap() 1194 trace_vfio_get_dirty_bitmap(iova, size, vbmap.size, ram_addr, dirty_pages); in vfio_get_dirty_bitmap() 1196 g_free(vbmap.bitmap); in vfio_get_dirty_bitmap()
|
H A D | iommufd.c | 151 VFIOBitmap *vbmap, hwaddr iova, in iommufd_query_dirty_bitmap() argument 167 (uint64_t *)vbmap->bitmap, in iommufd_query_dirty_bitmap()
|
/openbmc/qemu/include/hw/vfio/ |
H A D | vfio-container-base.h | 87 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp); 153 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp);
|
H A D | vfio-common.h | 298 int vfio_bitmap_alloc(VFIOBitmap *vbmap, hwaddr size); 304 VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp);
|