public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Access non-SMRAM memory regions from SMM
@ 2022-12-05 16:41 asallan3
  0 siblings, 0 replies; only message in thread
From: asallan3 @ 2022-12-05 16:41 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 1002 bytes --]

Hi, I'm aware theres been implemented a PCD `gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmRestrictedMemoryAccess` that blocks access to "any" type of non-SMRAM memory after SmmReadyToLock.

But I ran some tests and found out I can access some memory regions outside SMRAM, like address 0xFFFD0 for instance, and dereference a pointer to that address inside my Mm Handler without any problems, even though this is a non-SMRAM address and I have that PCD set to TRUE (Access to non-SMRAM memory is restricted).

However when I try to dereference a pointer to a memory region used by the OS I get an error saying `Access SMM communication forbidden address (0xC600000)!`

So I'm wondering:

1) Is it blocked or not?
2) In what context I *can* access non-SMRAM memory regions from inside my mm Handler?
3) Is there any way to read these memory regions used by the OS from inside the mm Handler other than setting PcdCpuSmmRestrictedMemoryAccess to FALSE?

Any kind of help would be appreciated. Thanks!

[-- Attachment #2: Type: text/html, Size: 1065 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-05 16:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-05 16:41 Access non-SMRAM memory regions from SMM asallan3

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox