On Wed, Jun 11, 2025 at 10:42:28AM +0800, Zhenzhong Duan wrote: > Currently the final instance_size of VFIO_PCI_BASE is sizeof(PCIDevice). > It should be sizeof(VFIOPCIDevice), VFIO_PCI uses same structure as > base class VFIO_PCI_BASE, so no need to set its instance_size explicitly. > > This isn't catastrophic only because VFIO_PCI_BASE is an abstract class. > > Fixes: d4e392d0a99b ("vfio: add vfio-pci-base class") > Signed-off-by: Zhenzhong Duan <zhenzhong.d...@intel.com>
Thanks! I had a similar patch after IRC discussion. Reviewed-by: John Levon <john.le...@nutanix.com> regards john