Skip to contentSkip to conversation

Where is the code for passthrough a PCI device to a PV?

DISCUSSION Jiang Wang 1 participant 1 message Mar 22, 2009

lore
Share & tools
lore

Jiang Wang

author
#0 lore raw

Hi:

I am trying to understand the code for passthrough a PCI device to a PV on i386 CPU. What code should I read? I know that linux-xen\drivers\xen\pciback and pcifront is the backend and the frontend for the PCI bus. But I think there should be some other code to allow a domU to access the real device, right?
I found some code in xen/common/domctrl.c which do the access control for the io memory. Is that all?
What happened when I use a PCI option for "xm create" command to pass-through the device? Where is the code for starting a domU? Thanks.

Regards,

Jiang