Date: Tue, 06 Jun 2023 11:56:24 +0200 From: Corvin =?ISO-8859-1?Q?K=F6hne?= <corvink@FreeBSD.org> To: virtualization@FreeBSD.org Subject: Re: [PATCH 0/3] bhyve: enabling bus enumeration Message-ID: <a6f50f6194507337e5459ae51262368511c19cf1.camel@FreeBSD.org> In-Reply-To: <20230511130545.748706-1-corvink@FreeBSD.org> References: <20230511130545.748706-1-corvink@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Thu, 2023-05-11 at 15:05 +0200, Corvin Köhne wrote: > Hi, > > this is the next patch series, it'd like to send to the EDKII > project. > It enables bus enumeration. The use case for this is PCI ROM support. > > Enabling bus enumeration means that the firmware reassigns the > address > of the BAR of all PCI devices and executes PCI ROMs if it find some. > Our > previous approach was that bhyve assigns the address of all BARs. > This > is required in cases were no firmware is available like booting with > bhyveload or grub2-bhyve. While reassigning BARs in guest firmware > seems > unnecessary, it's required to fully support PCI ROMs. > > Some use cases where bus enumeration is required: > 1. GPU passthrough > Here bus enumeration solves two issues: > 1. The ROM can contain a GOP driver. This is required for > graphical > output before the OS driver is loaded. > 2. The linux drm driver has a dependency on the ROM. As GPU ROMs > are > shadowed in system memory, it searches for this shadowed > version. > So, drm won't be able to find the ROM if bus enumeration is > disabled and refuses to load. > 2. NIC passthrough > The ROM can contain a PXE driver which is required to PXE boot > from > this device. > > Any feedback is appreciated. > > > Thanks, > Corvin > > Corvin Köhne (3): > Revert "OvmfPkg/Bhyve: consume PciHostBridgeLibScan" > Revert "OvmfPkg/Bhyve: remove IncompatiblePciDeviceSupport DXE > driver" > OvmfPkg/BhyveBhfPkg: enable bus enumeration > > OvmfPkg/Bhyve/BhyveX64.dsc | 4 ++-- > OvmfPkg/Bhyve/BhyveX64.fdf | 1 + > 2 files changed, 3 insertions(+), 2 deletions(-) > If I don't get any feedback within a week, I'm going to send this patch series to the EDKII project. -- Kind regards, Corvin [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEgvRSla3m2t/H2U9G2FTaVjFeAmoFAmR/AsgACgkQ2FTaVjFe Amojpg//V8nemvC2kSI9WHTd5pphxpvfVh+IPTqtSnBPFyd9f5Ag5OYD+5PG4xgW tAUGmcE1BiYPapCExH+Hfx7GFPU+w5I2iPSLXIQYujJJs9vfox9KH+oLIv79SK23 aAa3dQyEOCC0ojj8Pq20aF+TBmwc04yt9HMSFOvepVQijHKpoqPoZiijutSm9Ozw RJOxFT2oisVYN50eDbyzUR59XOpjZCTJd3YJEKCSeOf4EfhG64dqgrZjVLCWctD+ PKpthODCSFmH3tuclnmbQuLxWP+39ju1txe+7k4//rACsffAjnmq+TcbNkPWaRYM jICUbxm21f7r1+Ti/eqpgb5DdJKRr5skeGxsqiJSASZsbxEFh20pxFrJW6odMlgV vS+Kxuq5m9KKdvfRZfmAS/1xrIzt2IWOg3HLfOGJZuafCGlbksoZC444YOub624f sGUDsENAOhkdojA2ISamPNHouzbOGcVJo8Bsp5HuS0c6iD7MGfQjMsG8flPN+urJ UdddoT6R6hUH4mm3zajMytPtL9LsJXmy9+P3z5zpiyW0ZNQkDJ1KgS80a/sq4bJr yi9+PBrwDoSefuX/zLWl8DqnaUoGoOzQ6IcoaHf7oLym3+xPWpJpwgAVybSNwIGt GxTpspWAMJGUk3WJXLjsY8OOpFATVjiz0FCgLAEqEbCg/dLsOLg= =lZfU -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a6f50f6194507337e5459ae51262368511c19cf1.camel>
