GCD consumes the protocol to issue a Notify() on Add/Remove operations. The intended use-case is to allow OvmfPkg take actions on behalf of an SEV-enabled guest. The new protocol is simply added to the list of optional protocols handled by DxeMain, and as such leverages the existing DxeProtocolNotify framework.
I will follow this patch with "proof-of-concept" OvmfPkg driver that installs the protocol to take pertinent actions based on GCD notifications. Leo Duran (1): MdeModulePkg: Add EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL MdeModulePkg/Core/Dxe/DxeMain.h | 10 +++- MdeModulePkg/Core/Dxe/DxeMain.inf | 4 ++ MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 7 +++ MdeModulePkg/Core/Dxe/DxeMain/DxeProtocolNotify.c | 9 ++- MdeModulePkg/Core/Dxe/Gcd/Gcd.c | 8 +++ .../Include/Protocol/GcdMemorySpaceNotify.h | 65 ++++++++++++++++++++++ MdeModulePkg/MdeModulePkg.dec | 3 + 7 files changed, 100 insertions(+), 6 deletions(-) create mode 100644 MdeModulePkg/Include/Protocol/GcdMemorySpaceNotify.h -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel