Date: Tue, 24 Oct 2023 07:52:40 +0000 From: bugzilla-noreply@freebsd.org To: virtualization@FreeBSD.org Subject: [Bug 274389] bhyve in 15-CURRENT unable to boot OpenBSD anymore Message-ID: <bug-274389-27103-n9x9IHKuVP@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-274389-27103@https.bugs.freebsd.org/bugzilla/> References: <bug-274389-27103@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274389 --- Comment #12 from Corvin K=C3=B6hne <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/70f3e62dc73d28962b833373246ef25c86= 5c575e. The remapping range of OVMF is defined by: https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e5933= 55d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157 (base =3D 0xC000, size =3D 0x4000). We may want to update those values to m= atch our bhyve io range or we may want to adjust our bhyve io range: https://github.com/freebsd/freebsd-src/blob/82ea0132c8b17a7a6067c8a36c6434e= 587ede6de/usr.sbin/bhyve/pci_emul.c#L133-L134 (base =3D 0x2000, size =3D 0x10000). Nevertheless, the OVMF range is part o= f 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/fb044b7fe893a4545995bfe2701fd38e5933= 55d9/OvmfPkg/Bhyve/AcpiTables/Dsdt.asl#L77-L83 (base =3D 0x0D00, size =3D 0xF300) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274389-27103-n9x9IHKuVP>