Hi Eric, >-----Original Message----- >From: Eric Auger <eric.au...@redhat.com> >Subject: Re: [PATCH v2 04/19] vfio/iommufd: Force creating nested parent >domain > > > >On 6/20/25 9:17 AM, Zhenzhong Duan wrote: >> Call pci_device_get_viommu_cap() to get if vIOMMU supports >VIOMMU_CAP_STAGE1, >> if yes, create nested parent domain which could be reused by vIOMMU to >create >could? Is there a choice?
I think no other choice. If vIOMMU returns VIOMMU_CAP_STAGE1, both smmuv3 and vtd want nested translation. >> nested domain. > >I would add in the commit msg that it is safe because > >hw_caps & VIOMMU_CAP_STAGE1 cannot be set yet because s->flts is forbidden >until last patch of the series. Will do. Thanks Zhenzhong