]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/iommufd: Add hw_caps field to HostIOMMUDeviceCaps
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 22 Jul 2024 21:13:20 +0000 (22:13 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commit21e8d3a3aa1627079088e2430946dea62bf5c703
treeeecdbff9b958537e1e535ea64608393b0f914c1e
parent6c635326425091e164b563a7ce96408ef74ff2ec
vfio/iommufd: Add hw_caps field to HostIOMMUDeviceCaps

Store the value of @caps returned by iommufd_backend_get_device_info()
in a new field HostIOMMUDeviceCaps::hw_caps. Right now the only value is
whether device IOMMU supports dirty tracking (IOMMU_HW_CAP_DIRTY_TRACKING).

This is in preparation for HostIOMMUDevice::realize() being called early
during attach_device().

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
hw/vfio/iommufd.c
include/sysemu/host_iommu_device.h