Skip to contentSkip to conversation

Create Fake PCI Cards

Qemu-devel Clemens Kolbitsch 3 participants 4 messages May 4, 2007

lore
Share & tools
lore
#0 lore raw

Hi everyone!
I've read some posts in the qemu-mailinglist archives about the idea of a pci-proxy (allowing the client-os to access the host-os-pci devices) and the problems related to that.

now, I want to make something similar and wonder if there is already some source code that does all that already (because a big part of it might exist in the proxy mentioned or even in the standard qemu-ethernet-device):

I want to create a "fake"/virtual pci device that only exists in the vm. so basically it boils down to adding a new (wireless) device that is not connected to anything and that i can write data to/read data from the device driver runnnig inside of qemu.

Any help would be greatly appreciated!
Clemens

#1 lore raw
Quoted 4 lines

I want to create a "fake"/virtual pci device that only exists in the vm. so basically it boils down to adding a new (wireless) device that is not connected to anything and that i can write data to/read data from the device driver runnnig inside of qemu.

Qemu already has many emulated PCI devices. Look at those.

Paul

#2 lore raw
Quoted 10 lines · Paul Brook
Quoted 5 lines

I want to create a "fake"/virtual pci device that only exists in the vm. so basically it boils down to adding a new (wireless) device that is not connected to anything and that i can write data to/read data from the device driver runnnig inside of qemu.

Qemu already has many emulated PCI devices. Look at those.

Paul

yeah... to be honest, i postet the message about 2 mins too early. right afterwards i found the pci-proxy and similar things and started to understand the code-flow

what i'm trying to do now is to make this fake wireless device. however, i originally wanted to write an virtual driver for an atheros chipset, but the hardware-access layer is not open-source.

so, does anyone know of a chip that is used regurarly and that has an open-source hal?

thanks!!

#3 lore raw
In reply to Clemens Kolbitsch

If you need a wireless PCI device, I can provide code for TNETW1130 (ACX111). Get it from
http://svn.berlios.de/svnroot/repos/ar7-firmware/qemu/trunk/hw/tnetw1130.c

It works partially with an emulated Linux 2.6.20:
the PCI card is recognized, and it loads firmware.

Stefan

Quoted 17 lines · Clemens Kolbitsch

Hi everyone!
I've read some posts in the qemu-mailinglist archives about the idea of a pci-proxy (allowing the client-os to access the host-os-pci devices) and the problems related to that.

now, I want to make something similar and wonder if there is already some source code that does all that already (because a big part of it might exist in the proxy mentioned or even in the standard qemu-ethernet-device):

I want to create a "fake"/virtual pci device that only exists in the vm. so basically it boils down to adding a new (wireless) device that is not connected to anything and that i can write data to/read data from the device driver runnnig inside of qemu.

Any help would be greatly appreciated!
Clemens