public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add support to disable VirtIo net at runtime
@ 2022-08-04  2:52 Yuan Yu
  2022-08-04  2:52 ` [PATCH v1 1/2] OvmfPkg: Introduce NetworkCfgLib Yuan Yu
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Yuan Yu @ 2022-08-04  2:52 UTC (permalink / raw)
  To: devel
  Cc: Ard Biesheuvel, Jordan Justen, Laszlo Ersek, Anthony Perard,
	Julien Grall

Currently networking can only be enabled/disabled at compile time. This
patch series will add support to disable VirtIo net at runtime even if
the functionality is built into binary at compile time.

This will enable VMM to reduce attack surface without recompilation.

The changes can be seen at:
https://github.com/yyu/edk2/tree/network_cfg_lib_v1

Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Julien Grall <julien@xen.org>

Yuan Yu (2):
  OvmfPkg: Introduce NetworkCfgLib
  OvmfPkg: Use PcdNetworkSupport to enable/disable VirtIo net

 OvmfPkg/OvmfPkg.dec                             |  3 ++
 OvmfPkg/OvmfPkgX64.dsc                          |  7 ++++-
 OvmfPkg/Library/NetworkCfgLib/NetworkCfgLib.inf | 29 ++++++++++++++++++
 OvmfPkg/VirtioNetDxe/VirtioNet.inf              |  3 ++
 OvmfPkg/Library/NetworkCfgLib/NetworkCfgLib.c   | 32 ++++++++++++++++++++
 OvmfPkg/VirtioNetDxe/EntryPoint.c               | 10 ++++++
 6 files changed, 83 insertions(+), 1 deletion(-)
 create mode 100644 OvmfPkg/Library/NetworkCfgLib/NetworkCfgLib.inf
 create mode 100644 OvmfPkg/Library/NetworkCfgLib/NetworkCfgLib.c

-- 
2.37.1.559.g78731f0fdb-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-08-04 10:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-04  2:52 [PATCH v1 0/2] Add support to disable VirtIo net at runtime Yuan Yu
2022-08-04  2:52 ` [PATCH v1 1/2] OvmfPkg: Introduce NetworkCfgLib Yuan Yu
2022-08-04  2:52 ` [PATCH v1 2/2] OvmfPkg: Use PcdNetworkSupport to enable/disable VirtIo net Yuan Yu
2022-08-04  5:55 ` [PATCH v1 0/2] Add support to disable VirtIo net at runtime Laszlo Ersek
2022-08-04  9:58   ` [edk2-devel] " Ard Biesheuvel
2022-08-04 10:54     ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox