[Bug 274389] bhyve in 15-CURRENT unable to boot OpenBSD anymore
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 274389] bhyve in 15-CURRENT unable to boot OpenBSD anymore"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Oct 2023 07:52:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274389 --- Comment #12 from Corvin Köhne <corvink@FreeBSD.org> --- I've enabled BAR remapping in edk2 because it's required for ROM execution (e.g. PXE or VGA ROM) and VGA ROM shadowing. See https://github.com/tianocore/edk2/commit/70f3e62dc73d28962b833373246ef25c865c575e. The remapping range of OVMF is defined by: https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e593355d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157 (base = 0xC000, size = 0x4000). We may want to update those values to match our bhyve io range or we may want to adjust our bhyve io range: https://github.com/freebsd/freebsd-src/blob/82ea0132c8b17a7a6067c8a36c6434e587ede6de/usr.sbin/bhyve/pci_emul.c#L133-L134 (base = 0x2000, size = 0x10000). Nevertheless, the OVMF range is part of the bhyve io range. So, that shouldn't be an issue. Another difference: Latest OVMF installs the ACPI tables provided by bhyve, while the old one uses static tables. However, bhyve's tables should report a correct io range (not checked yet) while it looks like the static ones do report a faulty one: https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e593355d9/OvmfPkg/Bhyve/AcpiTables/Dsdt.asl#L77-L83 (base = 0x0D00, size = 0xF300) -- You are receiving this mail because: You are the assignee for the bug.