mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
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>
This commit is contained in:
parent
6c63532642
commit
21e8d3a3aa
2 changed files with 5 additions and 0 deletions
|
@ -19,9 +19,13 @@
|
|||
* struct HostIOMMUDeviceCaps - Define host IOMMU device capabilities.
|
||||
*
|
||||
* @type: host platform IOMMU type.
|
||||
*
|
||||
* @hw_caps: host platform IOMMU capabilities (e.g. on IOMMUFD this represents
|
||||
* the @out_capabilities value returned from IOMMU_GET_HW_INFO ioctl)
|
||||
*/
|
||||
typedef struct HostIOMMUDeviceCaps {
|
||||
uint32_t type;
|
||||
uint64_t hw_caps;
|
||||
} HostIOMMUDeviceCaps;
|
||||
|
||||
#define TYPE_HOST_IOMMU_DEVICE "host-iommu-device"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue