Skip to contentSkip to conversation

How to change the PCI bus number for a devcie?

Qemu-devel Jiang Wang 2 participants 2 messages Apr 30, 2009

lore
Share & tools
lore

Jiang Wang

author
#0 lore raw

Hi:

I find that all the pci device in QEMU is under the PCI bus 00. I want to change one device (like rtl8139 nic) to appear in a different bus number, such as 02. Is that possible? How? The target will be i386 and/or x86_64.

I noticed that there is one email about changing the function number as follows:
http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01480.html

But I want to change the bus number. For example, using some config file or command line options. If there is no such patch, is it difficult to modify the source code ?

Thanks.

Jiang

#1 lore raw
Quoted 11 lines · Jiang Wang

Hi:

I find that all the pci device in QEMU is under the PCI bus 00. I want to change one device (like rtl8139 nic) to appear in a different bus number, such as 02. Is that possible? How? The target will be i386 and/or x86_64.

I noticed that there is one email about changing the function number as follows:
http://lists.gnu.org/archive/html/qemu-devel/2009-01/msg01480.html

Quoted 7 lines

But I want to change the bus number. For example, using some config file or command line options. If there is no such patch, is it difficult to modify the source code ?

Thanks.

Jiang

I am working on a patch that should eventually give you the feature you want. If you're curious, watch out for subject "[RFC] Machine description as data".