qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Creating a dummy PCI device


From: Frederic Konrad
Subject: Re: [Qemu-devel] Creating a dummy PCI device
Date: Tue, 21 Feb 2017 14:29:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2

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
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]