On Sun, Apr 09, 2023 at 07:29:51AM -0600, Alex Williamson wrote: > > struct vfio_device_info_cap_pci_bdf { > > struct vfio_info_cap_header header; > > __u32 group_id; > > __u16 segment; > > __u8 bus; > > __u8 devfn; /* Use PCI_SLOT/PCI_FUNC */ > > }; > > > > Group-id and bdf should be separate capabilities, all device should > report a group-id capability and only PCI devices a bdf capability. Group should be reported by iommufd using a generic ioctl, and not be part of VFIO. This should report BDF only and only work for PCI. Jason