From nobody Tue Jun 06 09:56:24 2023 X-Original-To: virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Qb5Tk4Z08z4ZqKr for ; Tue, 6 Jun 2023 09:56:26 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qb5Tk42vZz4Gvg for ; Tue, 6 Jun 2023 09:56:26 +0000 (UTC) (envelope-from corvink@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686045386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UbEFNbdiSA2zehckv4oWkoUrBv3JfeHIZQxqphBunos=; b=u8UeEguzTOEsA2YkD229TCdtG4HK8Fd5m80Ia2f17G5eVRYwRbRobLRbH3+qrSKobzxfxD uILpJoiqyU/KkJ+2OrmOv5w7Cfhg7Tymue2rl32IJtAYoyQ6FyIy3ovuhQkgT2kLdBbrlL Xmq86FOBsMh9f81YcGgOD8bgy1YdCk3ouuAT3D5JX8hgo/bpgZLDWv2r2OprbFXPngGu7K /jVvmwWocpC9IYzg1QSfRhon84wRCuZpMksbdnRyrtIedfThjChaYPngG7Uj7HusdTCmQy TrZNBjm7dpq3vzAa8LvGxsY8BUWYJP70VQLBqfOJhMhxZbaAtzPYxhNWJlZq5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1686045386; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=UbEFNbdiSA2zehckv4oWkoUrBv3JfeHIZQxqphBunos=; b=DQcdlrZDFJZuUjOJwqIasILM+8rnAcPU0nq7Q1cDrAqTE+TcXHWIqDL4IG4jAesIEkqEac bE9f8d6orstHH444KjBU2OAnBRS+3V/i7VPqUYznw0K3aj7/KkdiHsRzLfXmIwu3xKTf1Q 05pmcNlpQCQbYRHFlbihd8+avCNkU1AR0cnHCwC5/vVsRWBRXnBp7Ze9g67zSadjrRdlv9 eIDvl6by1O75CO0aKbiGXGOc+xyqG6H1JeJorSJ2zm+yayLpvtlTIKbVK/RzdIN34gNxRm nSxxChoIPnzH2BfY7VMTITQqOUY5oHimioM15WBosOM/OdPrvxDpTteJr0B2XQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1686045386; a=rsa-sha256; cv=none; b=aqNv8GAH/f3nV/+1bdwASRPsvndob9VY67izUfHZBERdSaUi9+vnioWx9DcZK25aDA0+95 h8JziBPzAiW+6Uwl3l1mQq7RKZsKa9Kzctr02bgdpjgcJrkNNDXVPPqA1gg+H+Hdh5TDdr 5E17poC5jicYox+ijV6dh0FPBXYkc5ZjAS7rrJ0ibmkUtxXSrbexDnVQOzlfpHgS1a6TwH /vuPDn/9IqKH3wFUV0ow9YbV1neay7+6wCqy66XEkarp3vFHZYiKdotHnfX3exWfcjGwiL /9uPjfK98jN3Y7W5pLJ4XEhZKp10D0h7GqI8a9D6nbIWpdHeXuPCKVDCnru9uw== Received: from [IPv6:2001:9e8:da59:8e00:1c7e:7163:67b2:a7d8] (unknown [IPv6:2001:9e8:da59:8e00:1c7e:7163:67b2:a7d8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: corvink) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Qb5Tk111rzgjN for ; Tue, 6 Jun 2023 09:56:26 +0000 (UTC) (envelope-from corvink@FreeBSD.org) Message-ID: Subject: Re: [PATCH 0/3] bhyve: enabling bus enumeration From: Corvin =?ISO-8859-1?Q?K=F6hne?= To: virtualization@FreeBSD.org Date: Tue, 06 Jun 2023 11:56:24 +0200 In-Reply-To: <20230511130545.748706-1-corvink@FreeBSD.org> References: <20230511130545.748706-1-corvink@FreeBSD.org> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-5OA25i2laQRyTYNTrq86" User-Agent: Evolution 3.46.4 List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N --=-5OA25i2laQRyTYNTrq86 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, 2023-05-11 at 15:05 +0200, Corvin K=C3=B6hne wrote: > Hi, >=20 > 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. >=20 > 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. >=20 > Some use cases where bus enumeration is required: > 1. GPU passthrough > =C2=A0=C2=A0 Here bus enumeration solves two issues: > =C2=A0=C2=A0 1. The ROM can contain a GOP driver. This is required for > graphical > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 output before the OS driver is loaded. > =C2=A0=C2=A0 2. The linux drm driver has a dependency on the ROM. As GPU = ROMs > are > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 shadowed in system memory, it searches for= this shadowed > version. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 So, drm won't be able to find the ROM if b= us enumeration is > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 disabled and refuses to load. > 2. NIC passthrough > =C2=A0=C2=A0 The ROM can contain a PXE driver which is required to PXE bo= ot > from > =C2=A0=C2=A0 this device. >=20 > Any feedback is appreciated. >=20 >=20 > Thanks, > Corvin >=20 > Corvin K=C3=B6hne (3): > =C2=A0 Revert "OvmfPkg/Bhyve: consume PciHostBridgeLibScan" > =C2=A0 Revert "OvmfPkg/Bhyve: remove IncompatiblePciDeviceSupport DXE > driver" > =C2=A0 OvmfPkg/BhyveBhfPkg: enable bus enumeration >=20 > =C2=A0OvmfPkg/Bhyve/BhyveX64.dsc | 4 ++-- > =C2=A0OvmfPkg/Bhyve/BhyveX64.fdf | 1 + > =C2=A02 files changed, 3 insertions(+), 2 deletions(-) >=20 If I don't get any feedback within a week, I'm going to send this patch series to the EDKII project. --=20 Kind regards, Corvin --=-5OA25i2laQRyTYNTrq86 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----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----- --=-5OA25i2laQRyTYNTrq86--