HomeFreeBSD

sysutils/edk2: set IO port range properly for bhyve

Description

sysutils/edk2: set IO port range properly for bhyve

Bhyve uses an io port range of [ 0x2000, 0x10000 ] [1]. At the moment,
EDKII is using a subset of this range [ 0xC000, 0x10000 ] [2]. Even
though the EDKII range doesn't exceed the bhyve range, it's causing
issues on some guests like OpenBSD. We don't know why it's causing
issues yet. However, using the same IO port range in EDKII fixes the
issue.

[1] https://github.com/freebsd/freebsd-src/blob/82ea0132c8b17a7a6067c8a36c6434e587ede6de/usr.sbin/bhyve/pci_emul.c#L133-L134
[2] https://github.com/tianocore/edk2/blob/fb044b7fe893a4545995bfe2701fd38e593355d9/OvmfPkg/Bhyve/PlatformPei/Platform.c#L156-L157

PR: 274389
Reviewed by: manu, markj
Approved by: manu
Sponsored by: Beckhoff Automation GmbH & Co. KG
Differential Revision: https://reviews.freebsd.org/D42627

Details

Provenance
corvinkAuthored on Nov 16 2023, 5:58 AM
Reviewer
manu
Differential Revision
D42627: sysutils/edk2: set IO port range properly for bhyve
Parents
R11:fa7309cb976e: lang/clover: Restrict llvm to max version 16
Branches
Unknown
Tags
Unknown