tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: basic support for (software concept) "pci domains" in the MI pci code
On Monday 24 August 2009 11:05:42 Manuel Bouyer wrote:
> On Mon, Aug 24, 2009 at 07:10:38AM +0200, Christoph Egger wrote:
> > > something like:
> > > for i in /dev/pci*; do
> > > pcictl $i list
> > > done
> > >
> > > This is basically what the patch in xentools3 does for PCI access.
> >
> > What does 'xm pci-list' and 'xm pci-list-assignable-devices' print
> > on your machines ?
>
> These commands don't exist in xen 3.1.x
In newer Xen versions, PCI passthrough works this way:
xm help enlists these commands:
pci-attach Insert a new pass-through pci device.
pci-detach Remove a domain's pass-through pci device.
pci-list List pass-through pci devices for a domain.
pci-list-assignable-devices List all the assignable pci devices
1. Enlist all PCI devices you may assign a domU
# xm pci-list-assignable-devices
0000:02:00.0
0000:02:00.1
2. Assign these two devices to the first domU
# xm pci-attach 1 0000:02:00.0
# xm pci-attach 1 0000:02:00.1
3. List devices assigned to first domU
# xm pci-list 1
VSlt domain bus slot func
0x06 0x0000 0x02 0x00 0x0
0x07 0x0000 0x02 0x00 0x1
"VSlt" is the "virtual slot"
Christoph
Home |
Main Index |
Thread Index |
Old Index