Hi, On Mon, 14 Dec 2015 23:10:20 +0200 "Michael S. Tsirkin" <m...@redhat.com> wrote: > > In order to set QEMU_PCI_CAP_EXPRESS conditionally per instance > > (for example, according to the given x-pcie-disable property), the > > 'parent_dc_realize' trick was suggested. > > > > Reasoning is documented in: > > 0560b0e9 virtio-pci: Set the QEMU_PCI_CAP_EXPRESS capability early in its > > DeviceClass realize method > > > > Alas, the same trick needs to be repeated for all classes whose > > instances may be either pci or pcie. > > Actually, I think you can just move the code to pci core. > There won't be a need for a callback then.
Michael, can you please elaborate? Regards, Shmulik