On Wed, May 21, 2025 at 07:14:35PM +0800, Zhenzhong Duan wrote: > @@ -852,6 +853,17 @@ static bool hiod_iommufd_vfio_realize(HostIOMMUDevice > *hiod, void *opaque, > caps->type = type; > caps->hw_caps = hw_caps; > > + switch (type) { > + case IOMMU_HW_INFO_TYPE_INTEL_VTD: > + vendor_caps->vtd.flags = data.vtd.flags; > + vendor_caps->vtd.cap_reg = data.vtd.cap_reg; > + vendor_caps->vtd.ecap_reg = data.vtd.ecap_reg; > + break; > + case IOMMU_HW_INFO_TYPE_ARM_SMMUV3: > + case IOMMU_HW_INFO_TYPE_NONE:
Should this be a part of hiod_iommufd_get_vendor_cap() in backends? Thanks Nicolin