Hi Dave,
Here is the output when I attempt PCI passthrough...
[20100224T21:39:31.973Z|debug|lts-xen1|5228 unix-RPC|VM.start R:6a8f8407bbc4|xenops] pci: unbounding device 0000:00:12.0 from driver ohci_hcd
[20100224T21:39:31.975Z|debug|lts-xen1|5228 unix-RPC|VM.start R:6a8f8407bbc4|helpers] Ignoring exception: INTERNAL_ERROR: [ Unix.Unix_error(20, "open", "/sys/bus/pci/drivers/pciback/new_slot") ] while attach_pcis
Noted that "/sys/bus/pci/drivers/pciback" directory did not exist. Is it supposed to be created by this action?
...after poking around a bit I realized you would need the pciback module loaded.
So the xensource.log now reveals...
[20100224T22:21:20.182Z|debug|lts-xen1|5857 unix-RPC|VM.start R:49d16bf207f8|xenops] Doing FLR on pci device: 0000:00:12.0
[20100224T22:21:20.193Z|debug|lts-xen1|5857 unix-RPC|VM.start R:49d16bf207f8|xenops] pci add mem bar fe02e000-fe02efff
[20100224T22:21:20.193Z|debug|lts-xen1|5857 unix-RPC|VM.start R:49d16bf207f8|xenops] adding device B0[/local/domain/0/backend/pci/23/0] F23[/local/domain/23/device/pci/0] H[/xapi/23/hotplug/pci/0]
There is nothing attached to the PCI device.
Inside the domU dmesg reveals...
[ 0.004928] Booting paravirtualized kernel on Xen
[ 0.004930] Xen version: 3.4.2 (preserve-AD)
[ 0.005132] Grant table initialized
[ 0.005135] regulator: core version 0.5
[ 0.005214] NET: Registered protocol family 16
[ 0.005425] PCI: Fatal: No config space access function found
[ 0.005425] bio: create slab <bio-0> at 0
[ 0.005425] ACPI: Interpreter disabled.
[ 0.005425] xen_balloon: Initialising balloon driver.
[ 0.008183] PCI: System does not support PCI
[ 0.008185] PCI: System does not support PCI
[ 0.008374] pnp: PnP ACPI: disabled
[ 0.008376] PnPBIOS: Disabled
[ 0.008799] NET: Registered protocol family 2
[ 0.008869] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.009068] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.009094] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.009119] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.009122] TCP reno registered
[ 0.009180] NET: Registered protocol family 1
[ 0.039675] XENBUS: Device with no driver: device/vbd/51776
[ 0.039678] XENBUS: Device with no driver: device/vbd/51712
[ 0.039680] XENBUS: Device with no driver: device/vif/0
[ 0.039682] XENBUS: Device with no driver: device/pci/0
Is there USB passthrough in the pipeline?
I am actually trying to pass the USB controller.
Thanks for the help,
James
----- Original Message -----
From: "Dave Scott" <Dave.Scott@xxxxxxxxxxxxx>
To: "James Troup" <james@xxxxxxxxxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Sent: Thursday, 25 February, 2010 5:00:10 AM
Subject: RE: [Xen-users] XCP: PCI pass through Howto
Hi James,
That should be it… but it is a bit experimental J
The device should be hidden from dom0 when the VM is started. I
imagine this might fail if the device is in use.
I last tested it with HVM (SLES10 IIRC) on a VT-d system, after
adding ioemmu=1 onto the xen commandline (it’s not the default). It ought to
work with PV as-is.
Could you give more details about what you tried? You might find
useful information in /var/log/xensource.log, especially if you grep for “PCI”.
Cheers,
Dave
From: James Troup
[mailto:james@xxxxxxxxxxxxxxxxx]
Sent: 24 February 2010 12:58
To: Dave Scott
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] XCP: PCI pass through Howto
Hi
Dave,
is there any more to it than that?
Do I have to hide the device from, dom0.
I tried as you suggested but I cannot see the device in domU
Am I missing something?
Does this rely on VT-d ?
Does it only apply to HVM?
Thanks,
James
----- Original Message -----
From: "Dave Scott" <Dave.Scott@xxxxxxxxxxxxx>
To: "James Troup" <james@xxxxxxxxxxxxxxxxx>
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx"
<xen-users@xxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, 24 February, 2010 8:33:22 PM
Subject: RE: [Xen-users] XCP: PCI pass through Howto
Hi,
The only documentation is currently in the code L
Try a command like:
xe vm-param-set uuid=<uuid>
other-config:pci=0/0000:00:00:0
and then start the VM. (Change that PCI bus path to be the one
you actually want to use)
http://xenbits.xen.org/xapi/xen-api.hg?file/a8decf9d3bee/ocaml/xapi/vmops.ml
(line 483, pcidevs_of_vm)
Cheers,
Dave
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of James Troup
Sent: 24 February 2010 07:18
To: xen-users
Subject: [Xen-users] XCP: PCI pass through Howto
Hi,
where can I find out about the experimental PCI pass-through in XCP?
I do not seem to be able to find any documentation.
Thanks.