Hi, I''m working on an HP Z420 workstation. I have an Ubuntu hypervisor with a home-compiled copy of Xen 4.2.0. I''m trying to pass through a pile of hardware into a Windows Server 2008 R2 guest. * (00:1a.0) - Motherboard USB 1/2 controller * (00:1b.0) - Motherboard audio * (00:1d.0) - Motherboard USB 1/2 controller * (05:00.0) - Second AMD Firepro V3900 graphics card * (05:00.1) - The HDMI audio output on the above card * (06:00.0) - Video playback card * (08:00.0) - Motherboard USB 3 controller The 00:1b.0, 05:00.0, 05:00.1 and 06:00.0 go through to the guest fine. The USB controllers are more problematic and don''t get passed through when the Windows guest starts in /etc/xen/auto. I''ve tried everything I can think of: * I put pciback into initrd. * The hide is listed both in the kernel boot line and in /etc/modprobe.d/pciback * I listed the unique IDs (obtained from /sys/bus/pci/devices/..../modalias) in /etc/modprobe.d/blacklist * I created a new script in /etc/rc5.d between xencommons and xendomains that both echoes the PCI BDF into /sys/bus/pci/devices/....../driver/unbind and does an xl pci-assignable-add on the BDF. If I stop the Windows guest, do an xl pci-assignable-add on each of the devices then restart the guest, they go through fine. I''ve been forbidden from patching Xen or recompiling the kernel by someone I must listen to. I would be really grateful if you could give me an idea on how to make this thing work as I''m starting to feel really stupid. Thanks, Paul.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 In order to successfully pass through a USB controller to a linux PVM, I also had to add ''xen-pciback.permissive pci=resource_alignment=00:13.2'' to the dom0 linux command line, though you can do this through /sys as well. YMMV On 05/01/2013 09:56 AM, Paul Stimpson wrote:> Hi, > > I''m working on an HP Z420 workstation. I have an Ubuntu hypervisor > with a home-compiled copy of Xen 4.2.0. I''m trying to pass through > a pile of hardware into a Windows Server 2008 R2 guest. > > > * (00:1a.0) - Motherboard USB 1/2 controller * (00:1b.0) - > Motherboard audio * (00:1d.0) - Motherboard USB 1/2 controller * > (05:00.0) - Second AMD Firepro V3900 graphics card * (05:00.1) - > The HDMI audio output on the above card * (06:00.0) - Video > playback card * (08:00.0) - Motherboard USB 3 controller > > The 00:1b.0, 05:00.0, 05:00.1 and 06:00.0 go through to the guest > fine. The USB controllers are more problematic and don''t get passed > through when the Windows guest starts in /etc/xen/auto. > > I''ve tried everything I can think of: * I put pciback into initrd. > * The hide is listed both in the kernel boot line and in > /etc/modprobe.d/pciback * I listed the unique IDs (obtained from > /sys/bus/pci/devices/..../modalias) in /etc/modprobe.d/blacklist * > I created a new script in /etc/rc5.d between xencommons and > xendomains that both echoes the PCI BDF into > /sys/bus/pci/devices/....../driver/unbind and does an xl > pci-assignable-add on the BDF. > > If I stop the Windows guest, do an xl pci-assignable-add on each of > the devices then restart the guest, they go through fine. > > I''ve been forbidden from patching Xen or recompiling the kernel by > someone I must listen to. > > I would be really grateful if you could give me an idea on how to > make this thing work as I''m starting to feel really stupid. > > Thanks, Paul. > > > _______________________________________________ Xen-users mailing > list Xen-users@lists.xen.org http://lists.xen.org/xen-users- -- Tony Lill, OCT, Tony.Lill@AJLC.Waterloo.ON.CA President, A. J. Lill Consultants (519) 650 0660 539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461 - --------------- http://www.ajlc.waterloo.on.ca/ ---------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlGBJ5cACgkQGS8yZq1uvxCg7QCcDFs3ggS4DP6dMtwbEW1Wvq5I OPEAnifEipEYRX+D8ypZ3y8lY43LDIOR =YOcM -----END PGP SIGNATURE-----
On Wed, 01 May 2013 10:32:55 -0400, Tony Lill <ajlill@ajlc.waterloo.on.ca> wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > In order to successfully pass through a USB controller to a linux > PVM, > I also had to add ''xen-pciback.permissive > pci=resource_alignment=00:13.2'' > to the dom0 linux command line, though you can do this through /sys > as > well.Any particular reason why specifically 00:13.2 in pci=resource_alignment=00:13.2? And what exactly does it do? Gordan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/01/2013 11:34 AM, Gordan Bobic wrote:> On Wed, 01 May 2013 10:32:55 -0400, Tony Lill > <ajlill@ajlc.waterloo.on.ca> wrote: >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> In order to successfully pass through a USB controller to a linux >> PVM, I also had to add ''xen-pciback.permissive >> pci=resource_alignment=00:13.2'' to the dom0 linux command line, >> though you can do this through /sys as well. > > Any particular reason why specifically 00:13.2 in > pci=resource_alignment=00:13.2? And what exactly does it do?Sorry, replace 00:13.2 with the pci id of your usb controller - -- Tony Lill, OCT, Tony.Lill@AJLC.Waterloo.ON.CA President, A. J. Lill Consultants (519) 650 0660 539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461 - --------------- http://www.ajlc.waterloo.on.ca/ ---------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlGBbmsACgkQGS8yZq1uvxB6kwCfT/pnf8VgyTOCsW/6IcvPUPLR HO4An0kWgEGNtEIONAdKs5Vt/hSD3Q7A =mTV2 -----END PGP SIGNATURE-----
Tony Lill <ajlill@ajlc.waterloo.on.ca> wrote:>-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > > >On 05/01/2013 11:34 AM, Gordan Bobic wrote: >> On Wed, 01 May 2013 10:32:55 -0400, Tony Lill >> <ajlill@ajlc.waterloo.on.ca> wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> In order to successfully pass through a USB controller to a linux >>> PVM, I also had to add ''xen-pciback.permissive >>> pci=resource_alignment=00:13.2'' to the dom0 linux command line, >>> though you can do this through /sys as well. >> >> Any particular reason why specifically 00:13.2 in >> pci=resource_alignment=00:13.2? And what exactly does it do? > >Sorry, replace 00:13.2 with the pci id of your usb controller > >Thanks. What do I do if I have more than one device I''m passing please? -- Sent from Kaiten Mail on Android. Please excuse my brevity.
> On 05/01/2013 11:34 AM, Gordan Bobic wrote: >> On Wed, 01 May 2013 10:32:55 -0400, Tony Lill >> <ajlill@ajlc.waterloo.on.ca> wrote: >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> In order to successfully pass through a USB controller to a linux >>> PVM, I also had to add ''xen-pciback.permissive >>> pci=resource_alignment=00:13.2'' to the dom0 linux command line, >>> though you can do this through /sys as well. >> >> Any particular reason why specifically 00:13.2 in >> pci=resource_alignment=00:13.2? And what exactly does it do? > > Sorry, replace 00:13.2 with the pci id of your usb controllerBut why is pci=resource_alignment important specifically for the host USB controller passthrough? Gordan
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 05/01/2013 04:15 PM, Paul Stimpson wrote:> > > Tony Lill <ajlill@ajlc.waterloo.on.ca> wrote: > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >> >> >> On 05/01/2013 11:34 AM, Gordan Bobic wrote: >>> On Wed, 01 May 2013 10:32:55 -0400, Tony Lill >>> <ajlill@ajlc.waterloo.on.ca> wrote: >>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>>> >>>> In order to successfully pass through a USB controller to a >>>> linux PVM, I also had to add ''xen-pciback.permissive >>>> pci=resource_alignment=00:13.2'' to the dom0 linux command >>>> line, though you can do this through /sys as well. >>> >>> Any particular reason why specifically 00:13.2 in >>> pci=resource_alignment=00:13.2? And what exactly does it do? >> >> Sorry, replace 00:13.2 with the pci id of your usb controller >> >> > > Thanks. What do I do if I have more than one device I''m passing > please?semi-colon separated list - -- Tony Lill, OCT, Tony.Lill@AJLC.Waterloo.ON.CA President, A. J. Lill Consultants (519) 650 0660 539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461 - --------------- http://www.ajlc.waterloo.on.ca/ ---------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlGBsNwACgkQGS8yZq1uvxCkfQCeLjKlOsDN1aaR6n9kOo6zipVJ wI8AnR52n/x1mbNoKMH0cjY8uYzJEv9r =QGKe -----END PGP SIGNATURE-----
On 05/01/2013 05:41 PM, Gordan Bobic wrote:>> On 05/01/2013 11:34 AM, Gordan Bobic wrote: >>> On Wed, 01 May 2013 10:32:55 -0400, Tony Lill >>> <ajlill@ajlc.waterloo.on.ca> wrote: >>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>>> >>>> In order to successfully pass through a USB controller to a >>>> linux PVM, I also had to add ''xen-pciback.permissive >>>> pci=resource_alignment=00:13.2'' to the dom0 linux command >>>> line, though you can do this through /sys as well. >>> >>> Any particular reason why specifically 00:13.2 in >>> pci=resource_alignment=00:13.2? And what exactly does it do? >> >> Sorry, replace 00:13.2 with the pci id of your usb controller > > But why is pci=resource_alignment important specifically for the > host USB controller passthrough?I''ve given up asking ''why'' when it comes to xen. Just keep poking around different hypervisors, kernels, options, etc. until you find some combination that works, and don''t expect to work on a different machine or survive an upgrade. In this case I got an error message, googled it, it said use that option, and it fixed it. If it doesn''t, rinse and repeat. -- Tony Lill, OCT, Tony.Lill@AJLC.Waterloo.ON.CA President, A. J. Lill Consultants (519) 650 0660 539 Grand Valley Dr., Cambridge, Ont. N3H 2S2 (519) 241 2461 --------------- http://www.ajlc.waterloo.on.ca/ ----------------
On 05/02/2013 01:31 AM, Tony Lill wrote:>>>>> In order to successfully pass through a USB controller to a >>>>> linux PVM, I also had to add ''xen-pciback.permissive >>>>> pci=resource_alignment=00:13.2'' to the dom0 linux command >>>>> line, though you can do this through /sys as well. >>>> >>>> Any particular reason why specifically 00:13.2 in >>>> pci=resource_alignment=00:13.2? And what exactly does it do? >>> >>> Sorry, replace 00:13.2 with the pci id of your usb controller >> >> But why is pci=resource_alignment important specifically for the >> host USB controller passthrough? > > I''ve given up asking ''why'' when it comes to xen. Just keep poking > around different hypervisors, kernels, options, etc. until you find > some combination that works, and don''t expect to work on a different > machine or survive an upgrade.That''s not exactly a glowing endorsement of what is supposed to be an enterprise grade product... Gordan