Hi Alex,

dmesg | grep "no compatible bridge window"
pci 0000:00:01.0: can't claim BAR 1 [mem 0xd000000000-0xd00fffffff 64bit
pref]: no compatible bridge window
 ...>  From what I can read from all the info above,
somehow the requested memory space for BAR1 for that device is
0xd000000000-0xd00fffffff which is out of addressable space on the system.

Yep, that's the issue, and it's a bhyve bug - there is no check to see if the 64-bit window is within the addressable range of the processor.

 A quick fix is to change the constant for that range in pci_emul.c

#define PCI_EMUL_MEMBASE64      0xD000000000UL
#define PCI_EMUL_MEMLIMIT64     0xFD00000000UL

.. to a value that is within the address bits of the CPU, but also above guest DRAM.

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"

Reply via email to