Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Dec 2019 19:17:43 +0100 (CET)
From:      Wojciech Puchar <wojtek@puchar.net>
To:        freebsd-hackers@freebsd.org
Subject:   bhyve+PCIe passthrough = UEFI fail to boot
Message-ID:  <alpine.BSF.2.20.1912111909430.1013@puchar.net>

index | next in thread | raw e-mail

[-- Attachment #1 --]
i added PCIe USB controller card to server to be used in windows virtual 
machine, so i can have USB key (copy protection software for one app) 
visible directly in windows. USB key is pendrive compatible (actually you 
can use it as pendrive) + some propertiary functions. shouldn't matter 
IMHO as windows would handle it.

i installed it. and as with instruction here

https://wiki.freebsd.org/bhyve/pci_passthru

i first booted freebsd, checked if it's detected (it was, as xhci1), then 
used pciconf -lv and got

ppt0@pci0:2:0:0:	class=0x0c0330 card=0xffffffff chip=0x01941033 rev=0x03 hdr=0x00
     vendor     = 'NEC Corporation'
     device     = 'uPD720200 USB 3.0 Host Controller'
     class      = serial bus
     subclass   = USB


so i put
pptdevs="2/0/0"

in loader.conf and rebooted. xhci1 doesn't show up again so everything 
seemed fine.

then i modified my bhyve startup

/usr/sbin/bhyve -s 0,hostbridge -m 22528M -H -S -c cpus=12,sockets=1,cores=12,threads=1 \
-s 7,fbuf,rfb=10.10.10.1:5900,password=passwordhere \
-s 3,ahci,hd:/dev/ada2p5.eli,hd:/dev/ada2p6.eli,hd:/dev/ada2p127.eli \
-s 5,virtio-net,tap0,mac=08:00:27:b7:ca:16 \
-s 30,virtio-rnd -s 31,lpc -U 0072c755-0e33-11ea-a92a-3c52820d28a6 \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -w windows


by adding -s 8,passthru,2/0/0 \

this resulted in UEFI boot failed. in uefi shell i was unable to display 
directory of disk drive (attached screen shot).

i've tried to change -s 8 to other numbers like 2,10,20 - no difference.

What i'm doing wrong?

11.3-STABLE
[-- Attachment #2 --]
PNG


IHDRPLTE
_IDATxAn8q5m;Y0GP>9>D[jHIv\"c3ؒ*}(&i<)ݢs-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