From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by mx.groups.io with SMTP id smtpd.web11.24.1660556448680458436 for ; Mon, 15 Aug 2022 02:40:49 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@kernel.org header.s=k20201202 header.b=Ft5SP6Os; spf=pass (domain: kernel.org, ip: 145.40.68.75, mailfrom: ardb@kernel.org) 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 97524B80DBF; Mon, 15 Aug 2022 09:40:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7DB44C433C1; Mon, 15 Aug 2022 09:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660556445; bh=EpxqFblzshjNcKG9MprXYv6EXq+Rv704QZBwWZh9HdE=; h=From:To:Cc:Subject:Date:From; b=Ft5SP6OsQdSa585XFYFwKJ/Uwz//HR9TTDSIIhmVzIkt5TSoryC0qm0D6IU7cyebt nD8GKdPWHCSC/aoPoDKfS+dmolxfgq3R3USb6Ox8QT5ONsy2yn+oAymtoWFJKvoKAk T2kA1vnsV7E2Atg13qnINCYfWGh4k4iQ/3ifsgmQMjJS9H6sVTZvGR9wGRj11uVnRv SNe8zGi97ddOI0vIEoxAk5CL/2QNmNSUs9i11nejb1duWNCMInLnwtLP7GilSXhn7G He93DG78wIqYsbLweDQUs5+gHXPQ+VXlfq3URl0dcTXKHMn4pKRrEZhex7bI6AK/IX qglzZe0xpT91A== From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , Yuan Yu , Laszlo Ersek , Gerd Hoffmann , Pawel Polawski , Oliver Steffen , Jiewen Yao Subject: [PATCH 0/2] Ovmf: Allow IPv4 and IPv6 to be disabled at runtime Date: Mon, 15 Aug 2022 11:40:28 +0200 Message-Id: <20220815094030.465587-1-ardb@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Add some generic plumbing and wire it up for OvmfPkgX64 so that IPv4 and/or IPv6 networking can be turned off from the QEMU command line. This is a follow-up to Yuan's patch '[PATCH v1 0/2] Add support to disable VirtIo net at runtime' which only targeted the virtio network driver specifically. Cc: Yuan Yu Cc: Laszlo Ersek Cc: Gerd Hoffmann Cc: Pawel Polawski Cc: Oliver Steffen Cc: Jiewen Yao Ard Biesheuvel (2): OvmfPkg: Introduce NULL class library to inhibit driver load OvmfPkg/OvmfPkgX64: Allow runtime control of IPv4 and IPv6 support OvmfPkg/Library/DriverLoadInhibitorLib/DriverLoadInhibitorLib.c | 30 += +++++++++++++++++++ OvmfPkg/Library/DriverLoadInhibitorLib/DriverLoadInhibitorLib.inf | 28 += +++++++++++++++++ OvmfPkg/OvmfPkg.dec | 4 += ++ OvmfPkg/OvmfPkgX64.dsc | 14 += ++++++++ 4 files changed, 76 insertions(+) create mode 100644 OvmfPkg/Library/DriverLoadInhibitorLib/DriverLoadInhi= bitorLib.c create mode 100644 OvmfPkg/Library/DriverLoadInhibitorLib/DriverLoadInhi= bitorLib.inf --=20 2.35.1