[Bug 250802] bhyve exited with status 134 when GPU PCI passthrough
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Nov 6 14:09:48 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=250802
--- Comment #15 from mr.xanto at gmail.com ---
(In reply to Konstantin Belousov from comment #14)
I've applied patch https://pastebin.com/JJ80p7jf
FreeBSD guest:
root@:~ # pciconf -lvcb
hostb0 at pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x12751275 rev=0x00
hdr=0x00
vendor = 'Network Appliance Corporation'
class = bridge
subclass = HOST-PCI
cap 10[40] = PCI-Express 2 root port max data 128(128)
link x1(x1) speed 2.5(2.5) ASPM disabled(L0s)
ahci0 at pci0:0:3:0: class=0x010601 card=0x00000000 chip=0x28218086 rev=0x00
hdr=0x00
vendor = 'Intel Corporation'
device = '82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI
mode]'
class = mass storage
subclass = SATA
bar [24] = type Memory, range 32, base 0xc0000000, size 1024, enabled
cap 05[40] = MSI supports 8 messages, 64 bit enabled with 8 messages
ahci1 at pci0:0:4:0: class=0x010601 card=0x00000000 chip=0x28218086 rev=0x00
hdr=0x00
vendor = 'Intel Corporation'
device = '82801HR/HO/HH (ICH8R/DO/DH) 6 port SATA Controller [AHCI
mode]'
class = mass storage
subclass = SATA
bar [24] = type Memory, range 32, base 0xc0000400, size 1024, enabled
cap 05[40] = MSI supports 8 messages, 64 bit enabled with 8 messages
virtio_pci0 at pci0:0:5:0: class=0x020000 card=0x00011af4 chip=0x10001af4 rev=0x00
hdr=0x00
vendor = 'Red Hat, Inc.'
device = 'Virtio network device'
class = network
subclass = ethernet
bar [10] = type I/O Port, range 32, base 0x2000, size 32, enabled
bar [14] = type Memory, range 32, base 0xc0002000, size 8192, enabled
cap 11[40] = MSI-X supports 3 messages, enabled
Table in map 0x14[0x0], PBA in map 0x14[0x1000]
cap 05[4c] = MSI supports 1 message, 64 bit
vgapci0 at pci0:0:6:0: class=0x030000 card=0x38991642 chip=0x0a6310de rev=0xa2
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'GT218 [GeForce 310]'
class = display
subclass = VGA
bar [10] = type Memory, range 32, base 0xc1000000, size 16777216, enabled
bar [14] = type Prefetchable Memory, range 64, base 0x800000000, size
268435456, enabled
bar [1c] = type Prefetchable Memory, range 64, base 0xc2000000, size
33554432, enabled
bar [24] = type I/O Port, range 32, base 0x2080, size 128, enabled
cap 01[60] = powerspec 3 supports D0 D3 current D0
cap 05[68] = MSI supports 1 message, 64 bit
cap 10[78] = PCI-Express 2 endpoint max data 128(128) RO NS
link x16(x16) speed 2.5(2.5) ASPM disabled(L0s/L1) ClockPM
enabled
cap 09[b4] = vendor (length 20)
hdac0 at pci0:0:6:1: class=0x040300 card=0x38991642 chip=0x0be310de rev=0xa1
hdr=0x00
vendor = 'NVIDIA Corporation'
device = 'High Definition Audio Controller'
class = multimedia
subclass = HDA
bar [10] = type Memory, range 32, base 0xc4000000, size 16384, enabled
cap 01[60] = powerspec 3 supports D0 D3 current D0
cap 05[68] = MSI supports 1 message, 64 bit
cap 10[78] = PCI-Express 2 endpoint max data 128(128) NS
link x16(x16) speed 2.5(2.5) ASPM L0s/L1(L0s/L1) ClockPM
enabled
xhci0 at pci0:0:7:0: class=0x0c0330 card=0x00000000 chip=0x1e318086 rev=0x00
hdr=0x00
vendor = 'Intel Corporation'
device = '7 Series/C210 Series Chipset Family USB xHCI Host Controller'
class = serial bus
subclass = USB
bar [10] = type Memory, range 32, base 0xc4004000, size 4096, enabled
cap 05[40] = MSI supports 1 message, 64 bit enabled with 1 message
isab0 at pci0:0:31:0: class=0x060100 card=0x00000000 chip=0x70008086 rev=0x00
hdr=0x00
vendor = 'Intel Corporation'
device = '82371SB PIIX3 ISA [Natoma/Triton II]'
class = bridge
subclass = PCI-ISA
root@:~ #
But Windows 10 guest still won't work:
booting
[bhyve options: -c 1 -m 3G -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -U
00dad61d-0d2e-11eb-936d-70f3951447ea -S]
[bhyve devices: -s 0,hostbridge -s 31,lpc -s
4:0,ahci,hd:/mnt/Data/vm/win10/disk0.img,cd:/mnt/Data/vm/.iso/virtio-win-0.1.189.iso
-s 5:0,virtio-net,tap0,mac=58:9c:fc:01:00:a8 -
s 6:0,passthru,1/0/0 -s 6:1,passthru,1/0/1 -s 7:0,xhci,tablet]
[bhyve console: -l com1,stdio]
[bhyve iso device: -s 3:0,ahci-cd,/mnt/Data/vm/.config/null.iso]
starting bhyve (run 1)
bhyve exited with status 134
Unhandled ps2 keyboard command 0x02
Unhandled ps2 keyboard command 0x02
Assertion failed: (pi->pi_bar[baridx].type == PCIBAR_IO), function
passthru_write, file /usr/src/usr.sbin/bhyve/pci_passthru.c, line 916.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-virtualization
mailing list