On Wed, Apr 24, 2024 at 02:57:38AM +0000, Tian, Kevin wrote: > Now those shared capabilities are enabled/disabled when the PF is > attached to/detached from a domain, w/o counting the shared usage > from VFs. Urh.. This looks broken in the kernel right now? If you attach a SVA PASID to a VF then the iommu driver will call pci_enable_pri(vf) which will always fail: /* * VFs must not implement the PRI Capability. If their PF * implements PRI, it is shared by the VFs, so if the PF PRI is * enabled, it is also enabled for the VF. */ if (pdev->is_virtfn) { if (pci_physfn(pdev)->pri_enabled) return 0; return -EINVAL; } More to fix :( Jason