Hi Peter, This won't be easy unfortunately, at least not clean :). The vendor_id device_id are part of the PCIDeviceClass. So I _think_ you can't use a qom parameter for that. But... it seems that these fields are used firstly in pci_qdev_realize (to be checked) so maybe it's okay to change them later before the device is realized with a parameter..
This is really hackish.. sorry.. but that's a though :). Fred On 02/21/2017 01:41 PM, Peter Lieven wrote: > Am 03.02.2017 um 13:07 schrieb Peter Lieven: >> Hi, >> >> >> I have a special use case of creating a dummy PCI device with a >> certain vendor/device ID. The device does not have to actually >> function, it just >> >> has to be visible under lspci. >> >> >> Any idea how to achieve this? I was thinking of modifying the edu pci >> device to make the device/vendor ID passable via cmdline. >> >> >> Don't know if thats a good idea. >> >> >> Any thoughts? > > anyone? > > Thanks, > Peter > >