From: asallan3@gmail.com
To: devel@edk2.groups.io
Subject: Access non-SMRAM memory regions from SMM
Date: Mon, 05 Dec 2022 08:41:23 -0800 [thread overview]
Message-ID: <QES0.1670258483108300752.ANyN@groups.io> (raw)
[-- 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 --]
reply other threads:[~2022-12-05 16:41 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=QES0.1670258483108300752.ANyN@groups.io \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox