On entry, GcdNotifyDxe scans the GCD MemmorySpace map and produces this protocol to get notifications from GCD on MemorySpace Add/Remove operations.
This patch illustrates how OvmfPkg could take actions on GCD notifications. For example: updating the SEV mask on page-table entries for MMIO ranges. This patch follows [PATCH] MdeModulePkg: Add EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL. Leo Duran (1): OvmfPkg/GcdNotifyDxe: Install EFI_GCD_MEMORY_SPACE_NOTIFY_PROTOCOL OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.c | 148 ++++++++++++++++++++++++++++++++++ OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.inf | 44 ++++++++++ OvmfPkg/OvmfPkgIa32X64.dsc | 2 + OvmfPkg/OvmfPkgIa32X64.fdf | 3 + 4 files changed, 197 insertions(+) create mode 100644 OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.c create mode 100644 OvmfPkg/GcdNotifyDxe/GcdNotifyDxe.inf -- 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel