Hi Cédric, >-----Original Message----- >From: Cédric Le Goater <c...@redhat.com> >Subject: Re: [PATCH rfcv3 05/21] vfio/iommufd: Save vendor specific device info > >Hello Zhenzhong, > >On 5/21/25 13:14, Zhenzhong Duan wrote: >> Some device information returned by ioctl(IOMMU_GET_HW_INFO) are vendor >> specific. Save them all in a new defined structure mirroring that vendor >> IOMMU's structure, then get_cap() can query those information for >> capability. >> >> We can't use the vendor IOMMU's structure directly because they are in >> linux/iommufd.h which breaks build on windows. >> >> Suggested-by: Eric Auger <eric.au...@redhat.com> >> Suggested-by: Nicolin Chen <nicol...@nvidia.com> >> Signed-off-by: Zhenzhong Duan <zhenzhong.d...@intel.com> >> --- >> include/system/host_iommu_device.h | 12 ++++++++++++ >> hw/vfio/iommufd.c | 12 ++++++++++++ >> 2 files changed, 24 insertions(+) >> >> diff --git a/include/system/host_iommu_device.h >b/include/system/host_iommu_device.h >> index 809cced4ba..908bfe32c7 100644 >> --- a/include/system/host_iommu_device.h >> +++ b/include/system/host_iommu_device.h >> @@ -15,6 +15,17 @@ >> #include "qom/object.h" >> #include "qapi/error.h" >> >> +/* This is mirror of struct iommu_hw_info_vtd */ >> +typedef struct Vtd_Caps { > >please name the struct VtdCaps instead.
Will do. Thanks Zhenzhong