[edk2-devel] [PATCH v3 0/3] Ovmf: Allow IPv4 and IPv6 to be disabled at runtime

Ard Biesheuvel posted 3 patches 1 year, 7 months ago
Failed in applying to current master (apply log)
OvmfPkg/CloudHv/CloudHvX64.dsc                                                                |  12 +-
OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.c   | 147 ++++++++++++++++++++
OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf |  57 ++++++++
OvmfPkg/Microvm/MicrovmX64.dsc                                                                |  12 +-
OvmfPkg/NetworkComponents.dsc.inc                                                             |  35 +++++
OvmfPkg/OvmfPkg.dec                                                                           |   4 +
OvmfPkg/OvmfPkgIa32.dsc                                                                       |  12 +-
OvmfPkg/OvmfPkgIa32X64.dsc                                                                    |  12 +-
OvmfPkg/OvmfPkgX64.dsc                                                                        |  12 +-
9 files changed, 248 insertions(+), 55 deletions(-)
create mode 100644 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.c
create mode 100644 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
create mode 100644 OvmfPkg/NetworkComponents.dsc.inc
[edk2-devel] [PATCH v3 0/3] Ovmf: Allow IPv4 and IPv6 to be disabled at runtime
Posted by Ard Biesheuvel 1 year, 7 months ago
Add some generic plumbing and wire it up for the QEMU based Ovmf
platform 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.i

Changes since v2:
- implement Gerd's suggestion to use a DSC include file for network
  component overrides
- add Laszlo's ack to patch #1

Changes since v1:
- instead of a NULL class library that calls the Exit() boot service
  from its constructor, use a replacement for the UefiDriverEntryPoint
  library

Cc: Yuan Yu <yuanyu@google.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Pawel Polawski <ppolawsk@redhat.com>
Cc: Oliver Steffen <osteffen@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Brian J. Johnson <brian.johnson@hpe.com>

Ard Biesheuvel (3):
  OvmfPkg: Introduce alternate UefiDriverEntrypoint to inhibit driver
    load
  OvmfPkg: gather common NetworkComponents overrides in .dsc.inc file
  OvmfPkg: Allow runtime control of IPv4 and IPv6 support on QEMU

 OvmfPkg/CloudHv/CloudHvX64.dsc                                                                |  12 +-
 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.c   | 147 ++++++++++++++++++++
 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf |  57 ++++++++
 OvmfPkg/Microvm/MicrovmX64.dsc                                                                |  12 +-
 OvmfPkg/NetworkComponents.dsc.inc                                                             |  35 +++++
 OvmfPkg/OvmfPkg.dec                                                                           |   4 +
 OvmfPkg/OvmfPkgIa32.dsc                                                                       |  12 +-
 OvmfPkg/OvmfPkgIa32X64.dsc                                                                    |  12 +-
 OvmfPkg/OvmfPkgX64.dsc                                                                        |  12 +-
 9 files changed, 248 insertions(+), 55 deletions(-)
 create mode 100644 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.c
 create mode 100644 OvmfPkg/Library/UefiDriverEntryPointFwCfgOverrideLib/UefiDriverEntryPointFwCfgOverrideLib.inf
 create mode 100644 OvmfPkg/NetworkComponents.dsc.inc

-- 
2.35.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93214): https://edk2.groups.io/g/devel/message/93214
Mute This Topic: https://groups.io/mt/93498687/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v3 0/3] Ovmf: Allow IPv4 and IPv6 to be disabled at runtime
Posted by Gerd Hoffmann 1 year, 7 months ago
On Tue, Sep 06, 2022 at 01:59:23PM +0200, Ard Biesheuvel wrote:
> Add some generic plumbing and wire it up for the QEMU based Ovmf
> platform 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.i
> 
> Changes since v2:
> - implement Gerd's suggestion to use a DSC include file for network
>   component overrides
> - add Laszlo's ack to patch #1
> 
> Changes since v1:
> - instead of a NULL class library that calls the Exit() boot service
>   from its constructor, use a replacement for the UefiDriverEntryPoint
>   library
> 
> Cc: Yuan Yu <yuanyu@google.com>
> Cc: Laszlo Ersek <lersek@redhat.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Pawel Polawski <ppolawsk@redhat.com>
> Cc: Oliver Steffen <osteffen@redhat.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Brian J. Johnson <brian.johnson@hpe.com>

Acked-by: Gerd Hoffmann <kraxel@redhat.com>

take care,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93348): https://edk2.groups.io/g/devel/message/93348
Mute This Topic: https://groups.io/mt/93498687/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v3 0/3] Ovmf: Allow IPv4 and IPv6 to be disabled at runtime
Posted by Laszlo Ersek 1 year, 7 months ago
On 09/07/22 07:46, Gerd Hoffmann wrote:
> On Tue, Sep 06, 2022 at 01:59:23PM +0200, Ard Biesheuvel wrote:
>> Add some generic plumbing and wire it up for the QEMU based Ovmf
>> platform 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.i
>>
>> Changes since v2:
>> - implement Gerd's suggestion to use a DSC include file for network
>>   component overrides
>> - add Laszlo's ack to patch #1
>>
>> Changes since v1:
>> - instead of a NULL class library that calls the Exit() boot service
>>   from its constructor, use a replacement for the UefiDriverEntryPoint
>>   library
>>
>> Cc: Yuan Yu <yuanyu@google.com>
>> Cc: Laszlo Ersek <lersek@redhat.com>
>> Cc: Gerd Hoffmann <kraxel@redhat.com>
>> Cc: Pawel Polawski <ppolawsk@redhat.com>
>> Cc: Oliver Steffen <osteffen@redhat.com>
>> Cc: Jiewen Yao <jiewen.yao@intel.com>
>> Cc: Brian J. Johnson <brian.johnson@hpe.com>
> 
> Acked-by: Gerd Hoffmann <kraxel@redhat.com>

I'm happy to defer to Gerd on the DSC management :)
Laszo



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#93523): https://edk2.groups.io/g/devel/message/93523
Mute This Topic: https://groups.io/mt/93498687/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-