Sander Eikelenboom
2009-Jul-21 12:17 UTC
[Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
Hi, I''m trying to passthrough a pci USB card to a DomU (HVM). Although pciback seems to seize the device with all functions as seen in the dmesg output, they don''t appear using "xm pci-list-assignable-devices". When trying to passthrough to a HVM (with VT-D enabled) it stops creating the domain and complains about: VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found. From what I read, booting the xen hypervisor with "reassigndev=" should solve the non-page-aligned issues, but apparently it doesn''t in this case. Also added them to xend-pci-persmissive. Is there another boot-option/way to reassign the device ? Regards, Sander Attached is the output from: xm info xm dmesg dmesg lspci -vvvnnk ls /sys/bus/pci/drivers/pciback /var/log/xen/xend log with the start of a HVM domain winhvm.cfg (config file of the hvm domain) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2009-Jul-22 03:02 UTC
RE: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
The boot parameters changed. I think you should have a look at http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev=reassign_resources -- Dexuan -----Original Message----- From: xen-devel-bounces@lists.xensource.com [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Sander Eikelenboom Sent: 2009?7?21? 20:17 To: xen-devel@ Subject: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails Hi, I''m trying to passthrough a pci USB card to a DomU (HVM). Although pciback seems to seize the device with all functions as seen in the dmesg output, they don''t appear using "xm pci-list-assignable-devices". When trying to passthrough to a HVM (with VT-D enabled) it stops creating the domain and complains about: VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.>From what I read, booting the xen hypervisor with "reassigndev=" shouldsolve the non-page-aligned issues, but apparently it doesn''t in this case. Also added them to xend-pci-persmissive. Is there another boot-option/way to reassign the device ? Regards, Sander Attached is the output from: xm info xm dmesg dmesg lspci -vvvnnk ls /sys/bus/pci/drivers/pciback /var/log/xen/xend log with the start of a HVM domain winhvm.cfg (config file of the hvm domain) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2009-Jul-22 06:56 UTC
Re[2]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
Hello Dexuan, Ah I had seen that reassign_resources was removed, not reassigndev too. I will try the new guestdev somewhere today, thanks for the pointer ! -- Sander Wednesday, July 22, 2009, 5:02:13 AM, you wrote:> The boot parameters changed.> I think you should have a look at > http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev=reassign_resources> -- Dexuan> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Sander Eikelenboom > Sent: 2009?7?21? 20:17 > To: xen-devel@ > Subject: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails> Hi,> I''m trying to passthrough a pci USB card to a DomU (HVM). > Although pciback seems to seize the device with all functions as seen in > the dmesg output, they don''t appear using "xm pci-list-assignable-devices".> When trying to passthrough to a HVM (with VT-D enabled) it stops creating > the domain and complains about: > VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.> From what I read, booting the xen hypervisor with "reassigndev=" should > solve the non-page-aligned issues, but apparently it doesn''t in this case. > Also added them to xend-pci-persmissive.> Is there another boot-option/way to reassign the device ?> Regards,> Sander> Attached is the output from: > xm info > xm dmesg > dmesg > lspci -vvvnnk > ls /sys/bus/pci/drivers/pciback > /var/log/xen/xend log with the start of a HVM domain > winhvm.cfg (config file of the hvm domain)-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2009-Jul-24 07:43 UTC
[SPAM] Re[2]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
Hello Dexuan, From what i read, i should replace both pciback and reassigndev with the new guestdev parameter. And it should accept the same syntax as reassigndev. So i tried to boot my Dom0 with: module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro log_buf_len=65662 guestdev=01:00.0,01:00.1,01:00.2 It seizes the pci devices, but creating the HVM domU still fails with: Error: pci: 0000:01:00.2: non-page-aligned MMIO BAR found. Any more things I could try ? -- Sander Attachted: xm info xm dmesg dmesg xend.log lspci -vvvknn Wednesday, July 22, 2009, 5:02:13 AM, you wrote:> The boot parameters changed.> I think you should have a look at > http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev=reassign_resources> -- Dexuan> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Sander Eikelenboom > Sent: 2009?7?21? 20:17 > To: xen-devel@ > Subject: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails> Hi,> I''m trying to passthrough a pci USB card to a DomU (HVM). > Although pciback seems to seize the device with all functions as seen in > the dmesg output, they don''t appear using "xm pci-list-assignable-devices".> When trying to passthrough to a HVM (with VT-D enabled) it stops creating > the domain and complains about: > VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.> From what I read, booting the xen hypervisor with "reassigndev=" should > solve the non-page-aligned issues, but apparently it doesn''t in this case. > Also added them to xend-pci-persmissive.> Is there another boot-option/way to reassign the device ?> Regards,> Sander> Attached is the output from: > xm info > xm dmesg > dmesg > lspci -vvvnnk > ls /sys/bus/pci/drivers/pciback > /var/log/xen/xend log with the start of a HVM domain > winhvm.cfg (config file of the hvm domain)-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Cui, Dexuan
2009-Jul-24 08:01 UTC
RE: Re[2]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
> module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro log_buf_len=65662 guestdev=01:00.0,01:00.1,01:00.2I didn''t try the parameter myself, but I think you also need to add the parameter "reassign_resources". And please make sure your .config has CONFIG_PCI_REASSIGN=y and CONFIG_PCI_GUESTDEV=y. Thanks, -- Dexuan -----Original Message----- From: Sander Eikelenboom [mailto:linux@eikelenboom.it] Sent: 2009?7?24? 15:44 To: Cui, Dexuan Cc: xen-devel@lists.xensource.com Subject: Re[2]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails Hello Dexuan,>From what i read, i should replace both pciback and reassigndev with thenew guestdev parameter. And it should accept the same syntax as reassigndev. So i tried to boot my Dom0 with: module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro log_buf_len=65662 guestdev=01:00.0,01:00.1,01:00.2 It seizes the pci devices, but creating the HVM domU still fails with: Error: pci: 0000:01:00.2: non-page-aligned MMIO BAR found. Any more things I could try ? -- Sander Attachted: xm info xm dmesg dmesg xend.log lspci -vvvknn Wednesday, July 22, 2009, 5:02:13 AM, you wrote:> The boot parameters changed.> I think you should have a look at > http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev=reassign_resources> -- Dexuan> -----Original Message----- > From: xen-devel-bounces@lists.xensource.com > [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Sander Eikelenboom > Sent: 2009?7?21? 20:17 > To: xen-devel@ > Subject: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails> Hi,> I''m trying to passthrough a pci USB card to a DomU (HVM). > Although pciback seems to seize the device with all functions as seen in > the dmesg output, they don''t appear using "xm pci-list-assignable-devices".> When trying to passthrough to a HVM (with VT-D enabled) it stops creating > the domain and complains about: > VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.> From what I read, booting the xen hypervisor with "reassigndev=" should > solve the non-page-aligned issues, but apparently it doesn''t in this case. > Also added them to xend-pci-persmissive.> Is there another boot-option/way to reassign the device ?> Regards,> Sander> Attached is the output from: > xm info > xm dmesg > dmesg > lspci -vvvnnk > ls /sys/bus/pci/drivers/pciback > /var/log/xen/xend log with the start of a HVM domain > winhvm.cfg (config file of the hvm domain)-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Sander Eikelenboom
2009-Jul-24 08:16 UTC
Re[4]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails
Thanks, the "reassign_resources" made the domU boot without complaining. Seems I was misguided by http://article.gmane.org/gmane.comp.emulators.xen.devel/57212 in that reassing_resources was deprecated. Hope it works now ! :-) Thx many many times ! -- Sander>> module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro log_buf_len=65662 guestdev=01:00.0,01:00.1,01:00.2 > I didn''t try the parameter myself, but I think you also need to add the parameter "reassign_resources". > And please make sure your .config has CONFIG_PCI_REASSIGN=y and CONFIG_PCI_GUESTDEV=y.> Thanks, > -- Dexuan> -----Original Message----- > From: Sander Eikelenboom [mailto:linux@eikelenboom.it] > Sent: 2009?7?24? 15:44 > To: Cui, Dexuan > Cc: xen-devel@lists.xensource.com > Subject: Re[2]: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails> Hello Dexuan,> From what i read, i should replace both pciback and reassigndev with the > new guestdev parameter. And it should accept the same syntax as > reassigndev.> So i tried to boot my Dom0 with: > module /boot/vmlinuz-2.6.18.8-xen root=/dev/sda1 ro > log_buf_len=65662 guestdev=01:00.0,01:00.1,01:00.2> It seizes the pci devices, but creating the HVM domU still fails with: > Error: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.> Any more things I could try ?> -- Sander> Attachted: > xm info > xm dmesg > dmesg > xend.log > lspci -vvvknn> Wednesday, July 22, 2009, 5:02:13 AM, you wrote:>> The boot parameters changed.>> I think you should have a look at >> http://xenbits.xensource.com/linux-2.6.18-xen.hg?rev=reassign_resources>> -- Dexuan>> -----Original Message----- >> From: xen-devel-bounces@lists.xensource.com >> [mailto:xen-devel-bounces@lists.xensource.com] On Behalf Of Sander Eikelenboom >> Sent: 2009?7?21? 20:17 >> To: xen-devel@ >> Subject: [Xen-devel] [xen 3.5-unstable] passthrough of pci USB card fails>> Hi,>> I''m trying to passthrough a pci USB card to a DomU (HVM). >> Although pciback seems to seize the device with all functions as seen in >> the dmesg output, they don''t appear using "xm pci-list-assignable-devices".>> When trying to passthrough to a HVM (with VT-D enabled) it stops creating >> the domain and complains about: >> VmError: pci: 0000:01:00.2: non-page-aligned MMIO BAR found.>> From what I read, booting the xen hypervisor with "reassigndev=" should >> solve the non-page-aligned issues, but apparently it doesn''t in this case. >> Also added them to xend-pci-persmissive.>> Is there another boot-option/way to reassign the device ?>> Regards,>> Sander>> Attached is the output from: >> xm info >> xm dmesg >> dmesg >> lspci -vvvnnk >> ls /sys/bus/pci/drivers/pciback >> /var/log/xen/xend log with the start of a HVM domain >> winhvm.cfg (config file of the hvm domain)-- Best regards, Sander mailto:linux@eikelenboom.it _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel