My USB card is a bhyve killer
Hi, I have a PCIe USB card which is exported to the bhyve vm using passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos 7. Each time the OS has given a segmentation fault on bootup and killed the bhyve session. This is what i get in the bhyve-log: Aug 17 01:49:39: initialising Aug 17 01:49:39: [loader: grub] Aug 17 01:49:39: [uefi: no] Aug 17 01:49:39: [cpu: 1] Aug 17 01:49:39: [memory: 512M] Aug 17 01:49:39: [hostbridge: standard] Aug 17 01:49:39: [com ports: com1] Aug 17 01:49:39: [uuid: 09a84879-8156-11e7-b407-0cc47adeccc0] Aug 17 01:49:39: [utctime: no] Aug 17 01:49:39: [debug mode: no] Aug 17 01:49:39: [primary disk: /dev/zvol/vmpool/os9] Aug 17 01:49:39: [primary disk dev: custom] Aug 17 01:49:39: initialising network device tap2 Aug 17 01:49:39: adding tap2 -> bridge1 (lannetwork) Aug 17 01:49:39: booting Aug 17 01:49:39: create file /tank/vm/openhab1/device.map Aug 17 01:49:39: -> (hd0) /dev/zvol/vmpool/os9 Aug 17 01:49:39: /usr/local/sbin/grub-bhyve -S -m /tank/vm/openhab1/device.map -M 512M -r hd0,msdos1 openhab1 Aug 17 01:49:42: [bhyve options: -c 1 -m 512M -AHP -U 09a84879-8156-11e7-b407-0cc47adeccc0 -S] Aug 17 01:49:42: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/dev/zvol/vmpool/os9 -s 5:0,virtio-net,tap2,mac=58:9c:fc:07:cc:2d -s 6:0,passthru,129/0/0] Aug 17 01:49:42: [bhyve console: -l com1,stdio] Aug 17 01:49:42: starting bhyve (run 1) Aug 17 01:49:44: bhyve exited with status 139 Aug 17 01:49:44: destroying network device tap2 Aug 17 01:49:44: stopped The USB card works fine on the host and is detected by the xhci driver. The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card - Interface USB 3.0 4-Port" (https://www.amazon.com/gp/product/B00B6ZCNGM) ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00 vendor = 'Fresco Logic' device = 'FL1100 USB 3.0 Host Controller' class = serial bus subclass = USB Any idea how can i use this card in a linux vm? Thanks ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: My USB card is a bhyve killer
Hi, I have a PCIe USB card which is exported to the bhyve vm using passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos 7. Each time the OS has given a segmentation fault on bootup and killed the bhyve session. This is what i get in the bhyve-log: Is stderr logged anywhere ? That may have additional error output from the bhyve passthru code. The USB card works fine on the host and is detected by the xhci driver. The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card - Interface USB 3.0 4-Port" (https://www.amazon.com/gp/product/B00B6ZCNGM) ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00 vendor = 'Fresco Logic' device = 'FL1100 USB 3.0 Host Controller' class = serial bus subclass = USB Would you be able to post the output of pciconf -l -BbcV pci0:129:0:0 later, Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: My USB card is a bhyve killer
Unfortunately, i dont see a stderr log. I am using vm-bhyve for managing the vm's. # pciconf -l -BbcV pci0:129:0:0 ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 rev=0x10 hdr=0x00 bar [10] = type Memory, range 64, base 0xfb20, size 65536, enabled bar [18] = type Memory, range 64, base 0xfb211000, size 4096, enabled bar [20] = type Memory, range 64, base 0xfb21, size 4096, enabled cap 01[40] = powerspec 3 supports D0 D1 D3 current D0 cap 05[50] = MSI supports 8 messages, 64 bit cap 10[70] = PCI-Express 2 endpoint max data 256(512) NS link x1(x1) speed 5.0(5.0) ASPM disabled(L0s/L1) cap 11[b0] = MSI-X supports 8 messages Table in map 0x18[0x0], PBA in map 0x20[0x0] ecap 0001[100] = AER 1 0 fatal 0 non-fatal 0 corrected I havent yet managed to get a USB card to work stably with FreeBSD 11.1 [1]. This is my third card. They work fine if i boot into Ubuntu linux. [1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=221491 On 08/16/2017 09:38 PM, Peter Grehan wrote: > Hi, > >> I have a PCIe USB card which is exported to the bhyve vm using >> passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos >> 7. Each time the OS has given a segmentation fault on bootup and killed >> the bhyve session. This is what i get in the bhyve-log: > > Is stderr logged anywhere ? That may have additional error output > from the bhyve passthru code. > >> The USB card works fine on the host and is detected by the xhci driver. >> The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card >> - Interface USB 3.0 4-Port" >> (https://www.amazon.com/gp/product/B00B6ZCNGM) >> >> ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 >> rev=0x10 hdr=0x00 >> vendor = 'Fresco Logic' >> device = 'FL1100 USB 3.0 Host Controller' >> class = serial bus >> subclass = USB > > Would you be able to post the output of > > pciconf -l -BbcV pci0:129:0:0 > > later, > > Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: My USB card is a bhyve killer
After setting debug="YES" in the vm's conf file, i get the following: # cat bhyve.log rdmsr to register 0x34 on vcpu 0 On 08/16/2017 09:38 PM, Peter Grehan wrote: > Hi, > >> I have a PCIe USB card which is exported to the bhyve vm using >> passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos >> 7. Each time the OS has given a segmentation fault on bootup and killed >> the bhyve session. This is what i get in the bhyve-log: > > Is stderr logged anywhere ? That may have additional error output > from the bhyve passthru code. > >> The USB card works fine on the host and is detected by the xhci driver. >> The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card >> - Interface USB 3.0 4-Port" >> (https://www.amazon.com/gp/product/B00B6ZCNGM) >> >> ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 >> rev=0x10 hdr=0x00 >> vendor = 'Fresco Logic' >> device = 'FL1100 USB 3.0 Host Controller' >> class = serial bus >> subclass = USB > > Would you be able to post the output of > > pciconf -l -BbcV pci0:129:0:0 > > later, > > Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: My USB card is a bhyve killer
Setting -w flag (https://forums.freebsd.org/threads/47951/) using "ignore_bad_msr=1" also doesnt help, Aug 17 03:25:39: /usr/local/sbin/grub-bhyve -S -m /tank/vm/openhab1/device.map -M 512M -r hd0,msdos1 openhab1 Aug 17 03:25:42: [bhyve options: -c 1 -m 512M -AHPw -U 09a84879-8156-11e7-b407-0cc47adeccc0 -S] Aug 17 03:25:42: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,virtio-blk,/dev/zvol/vmpool/os9 -s 5:0,virtio-net,tap2,mac=58:9c:fc:07:cc:2d -s 6:0,passthru,129/0/0] Aug 17 03:25:42: [bhyve console: -l com1,stdio] Aug 17 03:25:42: starting bhyve (run 1) Aug 17 03:25:45: bhyve exited with status 139 Aug 17 03:25:45: destroying network device tap2 Aug 17 03:25:45: stopped On 08/16/2017 09:38 PM, Peter Grehan wrote: > Hi, > >> I have a PCIe USB card which is exported to the bhyve vm using >> passthrough. I have tried to use the card in Ubuntu, Debian 8 and Centos >> 7. Each time the OS has given a segmentation fault on bootup and killed >> the bhyve session. This is what i get in the bhyve-log: > > Is stderr logged anywhere ? That may have additional error output > from the bhyve passthru code. > >> The USB card works fine on the host and is detected by the xhci driver. >> The card is "Inateck Superspeed 4 Ports PCI-E to USB 3.0 Expansion Card >> - Interface USB 3.0 4-Port" >> (https://www.amazon.com/gp/product/B00B6ZCNGM) >> >> ppt3@pci0:129:0:0: class=0x0c0330 card=0x11001b73 chip=0x11001b73 >> rev=0x10 hdr=0x00 >> vendor = 'Fresco Logic' >> device = 'FL1100 USB 3.0 Host Controller' >> class = serial bus >> subclass = USB > > Would you be able to post the output of > > pciconf -l -BbcV pci0:129:0:0 > > later, > > Peter. ___ freebsd-virtualization@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"