Hi,

According to "TCG Platform Reset Attack Mitigation Specification", if
MOR bit is set, "it must initiate a vendor-specific method that
overwrites all of system memory and the processor caches"

In QuarkPlatformPkg/Platform/Pei/PlatformInit/MemoryCallback.c and
QuarkPlatformPkg/Platform/Pei/PlatformInit/MrcWrapper.c, there is some
code to clear RAM, however I don't see code that would clear the
processor caches.

For edk2/qemu, Paolo suggested it may be simpler to clear the cache
unconditionally. How would you implement that? Using
EFI_CPU_ARCH_PROTOCOL.FlushDataCache? (or direct AsmWbinvd call)

thanks

-- 
Marc-André Lureau
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to