Re: [edk2-devel] WSMT bits

2020-03-11 Thread Laszlo Ersek
On 03/11/20 13:00, Yao, Jiewen wrote: > Great question on ACPIReclaim! > Yes, it is the confusing part. > > 1) Per ACPI specification, ACPI reclaim is the memory to hold the ACPI table. > It *may* be reclaimed by OS as OS memory, after OS copied the ACPI table to > its own local space. > As such,

Re: [edk2-devel] WSMT bits

2020-03-11 Thread Yao, Jiewen
Great question on ACPIReclaim! Yes, it is the confusing part. 1) Per ACPI specification, ACPI reclaim is the memory to hold the ACPI table. It *may* be reclaimed by OS as OS memory, after OS copied the ACPI table to its own local space. As such, we need make sure it is treated as *OS usable* memo

Re: [edk2-devel] WSMT bits

2020-03-11 Thread Laszlo Ersek
On 03/11/20 03:01, Yao, Jiewen wrote: > Thanks Laszlo. I am glad that you like the whitepaper. > > Right. The platform should assert the WSMT bit, because the platform need > make sure that all SMI handlers do right thing for SMM communication buffer. > Using PcdCpuSmmRestrictedMemoryAccess is a

Re: [edk2-devel] WSMT bits

2020-03-10 Thread Yao, Jiewen
Thanks Laszlo. I am glad that you like the whitepaper. Right. The platform should assert the WSMT bit, because the platform need make sure that all SMI handlers do right thing for SMM communication buffer. Using PcdCpuSmmRestrictedMemoryAccess is a good way to ensure any violation can be caught.

Re: [edk2-devel] WSMT bits

2020-03-10 Thread Laszlo Ersek
Hi again Jiewen, On 03/10/20 10:36, Laszlo Ersek wrote: > Hi Jiewen, > > reading the following chapter: > > > https://edk2-docs.gitbooks.io/a-tour-beyond-bios-memory-protection-in-uefi-bios/content/memory-protection-in-SMM.html > > I'm having trouble associating the protection features imple