From nobody Sat Feb 7 10:14:53 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+93217+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+93217+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=kernel.org ARC-Seal: i=1; a=rsa-sha256; t=1662465585; cv=none; d=zohomail.com; s=zohoarc; b=dYTSrsuPLOj2bhjLM0ZhChNpdcVGTxD+X6hn4LySy7DR8T96L+4zipDWHWXSZdjFjQPZf8p2aXvUpGz+s0q4ddFORivoW6enusKLmJ6T1geg4JPtxKYQgXeyjtXMetB8LgNsH+TCwj6sd7b1xGbBXZbMjSvTB8W1wJKyVdv2tpk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1662465585; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=FZaMgxu0JxaGYNzbWaishjK7S5NJF9+EUgBrv/QAi0Q=; b=R5E+VWDB7lEE/ZgugfOuybJvQm5QyHwupI1Ujr3ZOhfwlWr7Pc0gJE4FOCrtewOsmXwpTxDtYlgO08ynGxs+yzEElrxsxh1iMgcoRmzsjayHwOdvdMpT5onQ6EyxntugiXLIgVmiU58/BLqgzNkdCbKRMPKHbGVGGxEUmw1jwzM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+93217+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1662465585033721.9995569069224; Tue, 6 Sep 2022 04:59:45 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id gZEaYY1788612xGZS6g9CkQf; Tue, 06 Sep 2022 04:59:44 -0700 X-Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web10.2989.1662465583859862007 for ; Tue, 06 Sep 2022 04:59:44 -0700 X-Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 92575B81889; Tue, 6 Sep 2022 11:59:41 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77290C4347C; Tue, 6 Sep 2022 11:59:38 +0000 (UTC) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Yuan Yu , Laszlo Ersek , Gerd Hoffmann , Pawel Polawski , Oliver Steffen , Jiewen Yao , "Brian J . Johnson" Subject: [edk2-devel] [PATCH v3 3/3] OvmfPkg: Allow runtime control of IPv4 and IPv6 support on QEMU Date: Tue, 6 Sep 2022 13:59:26 +0200 Message-Id: <20220906115926.115493-4-ardb@kernel.org> In-Reply-To: <20220906115926.115493-1-ardb@kernel.org> References: <20220906115926.115493-1-ardb@kernel.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ardb@kernel.org X-Gm-Message-State: 8BhgDwdrYOrgxzVRXQzSYO0rx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1662465584; bh=o1o5UuZP6U+NR0jmvqK1peOgs4FipUCPNAlEaK55nD8=; h=Cc:Date:From:Reply-To:Subject:To; b=kWUYqAckGFyTXWK3lhpKoLimQSvduNb21EI1Hf72EjWTCVZqxKvOxROiFhqnK53pvYU g07PdT4g7Mkbo0BwB3PBrK4geek7xRVMwLQy16RGeXyFdfpIWopSqPDZVJxAUj59y+oQ0 hGdMLmyqrDdc1X/2Q0q7pRC4dAxc6EZQY54= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1662465585627100001 Content-Type: text/plain; charset="utf-8" Wire up the newly added UefiDriverEntrypoint in a way that ties dispatch of the Ip4Dxe and Ip6Dxe drivers to QEMU fw_cfg variables 'opt/org.tianocore/IPv4Support' and 'opt/org.tianocore/IPv6Support' respectively. Setting both variables to 'n' disables IP based networking entirely, without the need for additional code changes at the NIC driver or network boot protocol level. Signed-off-by: Ard Biesheuvel --- OvmfPkg/NetworkComponents.dsc.inc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/OvmfPkg/NetworkComponents.dsc.inc b/OvmfPkg/NetworkComponents.= dsc.inc index 85a165391655..713eec7dd1ce 100644 --- a/OvmfPkg/NetworkComponents.dsc.inc +++ b/OvmfPkg/NetworkComponents.dsc.inc @@ -14,4 +14,22 @@ NULL|OvmfPkg/Library/TlsAuthConfigLib/TlsAuthConfigLib.inf } !endif + + !if $(NETWORK_IP4_ENABLE) =3D=3D TRUE + NetworkPkg/Ip4Dxe/Ip4Dxe.inf { + + UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOver= rideLib/UefiDriverEntryPointFwCfgOverrideLib.inf + + gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/= org.tianocore/IPv4Support" + } + !endif + + !if $(NETWORK_IP6_ENABLE) =3D=3D TRUE + NetworkPkg/Ip6Dxe/Ip6Dxe.inf { + + UefiDriverEntryPoint|OvmfPkg/Library/UefiDriverEntryPointFwCfgOver= rideLib/UefiDriverEntryPointFwCfgOverrideLib.inf + + gUefiOvmfPkgTokenSpaceGuid.PcdEntryPointOverrideFwCfgVarName|"opt/= org.tianocore/IPv6Support" + } + !endif !endif --=20 2.35.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#93217): https://edk2.groups.io/g/devel/message/93217 Mute This Topic: https://groups.io/mt/93498691/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-