kernel panic when booting with xen-pciback.hide=

5 posts / 0 new
Last post
#1 Wed, 2014-08-27 23:04
nowoe
  • nowoe's picture
  • Offline
  • Last seen: 7 months 6 days ago
  • Joined: 2014-08-10

Hello,
I'm running alpine-xen-3.0.4-x86_64 and want to pci-passthrough a SATA controller. My system supports VT-d.
The problem is to get the pci device assigned to xen-pciback at boot time.

It all works fine if I boot Dom0 with these lines in syslinux.cfg:

 
KERNEL /boot/syslinux/mboot.c32
APPEND /boot/xen.gz iommu=verbose --- /boot/grsec alpine_dev=UUID=53EB-33F3:vfat modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/grsec.modloop.squashfs nomodeset --- /boot/grsec.gz

and then do  xl pci-assignable-add 00:1f.2 from command line prior booting the domU that has  pci = ['00:1f.2'] in it's run configuration to get the device passed through. The domU gets the SATA controller and sees the attached drives.

But if I add  xen-pciback.hide=(00:1f.2) as parameter in syslinux.cfg, i.e. booting with

APPEND /boot/xen.gz iommu=verbose --- /boot/grsec alpine_dev=UUID=53EB-33F3:vfat modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/grsec.modloop.squashfs nomodeset xen-pciback.hide=(00:1f.2) --- /boot/grsec.gz

the kernel panics with message  /init: /eval: line 1: syntax error unexpected "("
I've tried to remove the parenthesis (xen-pciback.hide=00:1f.2) or use quotes (xen-pciback.hide='(00:1f.2)'). In these cases, the kernel boots up fine, but without any effect, the pci device uses the ahci driver rather than pciback.

Any ideas? How does assigning a pci device to pciback at boot time work with Alpine Linux?
Many thanks!

Tue, 2014-09-02 18:35
nenolod
  • nenolod's picture
  • Offline
  • Last seen: 2 years 2 weeks ago
  • Joined: 2011-05-12

This sounds like a bug in the initramfs init. Please open a bug on our bugtracker.

Tue, 2014-09-09 15:15
pierrep
  • pierrep's picture
  • Offline
  • Last seen: 2 years 2 months ago
  • Joined: 2014-04-10

I must say i never got this working properly... (I'm in 2.7 though)
I devised a script that unloads the driver (mpt2sas), loads the xen-pciback with passthough=1 and th executes xl pci-assignable-add ..

Tue, 2014-09-09 16:37 (Reply to #3)
nowoe
  • nowoe's picture
  • Offline
  • Last seen: 7 months 6 days ago
  • Joined: 2014-08-10

I actually tried to do the same workaround, but having troubles as described here: http://alpinelinux.org/comment/180#comment-180
Could you please post the content of your script and how it is invoked?
Many thanks for your response!

Sun, 2017-04-16 20:07
lloydsmart
  • lloydsmart's picture
  • Offline
  • Last seen: 2 months 22 hours ago
  • Joined: 2017-03-25

I'm having this same problem - can't get the OS to hide my two NICs so I can pass them through to a pfSense VM - did anyone find a way to make this work?

Log in or register to post comments