public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Laszlo Ersek <lersek@redhat.com>
To: William Tambe <tambewilliam@gmail.com>,
	Jiewen Yao <jiewen.yao@intel.com>
Cc: edk2-devel@lists.01.org
Subject: Re: Page Table initialization and update in SMM mode
Date: Fri, 24 Mar 2017 16:58:20 +0100	[thread overview]
Message-ID: <4d40b816-c024-020d-0471-c6023c6b5d0b@redhat.com> (raw)
In-Reply-To: <CAF8i9mM2odnc5+YAKToJdhg-9se+RFqXnxYkosyqj5Lj0ZdQ1Q@mail.gmail.com>

Jiewen,

On 03/22/17 15:14, William Tambe wrote:
> Dear all,
> 
> When building OVMF with SMM_REQUIRE:
> 
> - Would you know where in the code base the Page Table set in the Cr3
> register is initialized during boot ?
> 
> - Where does it get updated when a new page needs to be allocated or freed ?
> 
> - Or is there a hook I can register myself to in order to get a chance to
> review an entry to be added or removed from the Page Tables ?

can you please help answer these questions? I seem to remember that we
discussed code around this when we were looking into the SMM stack
overflow experienced with OVMF:

509f8425b75d UefiCpuPkg: change PcdCpuSmmStackGuard default to TRUE
0d0c245dfb14 OvmfPkg: set SMM stack size to 16KB

William: I suggest to check out the following files:

UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c
UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c

and/or to grep the code for "PcdCpuSmmStackGuard", to get a feel for
what to investigate.

Thanks
Laszlo


  reply	other threads:[~2017-03-24 15:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-22 14:14 Page Table initialization and update in SMM mode William Tambe
2017-03-24 15:58 ` Laszlo Ersek [this message]
2017-03-24 23:48   ` Yao, Jiewen

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=4d40b816-c024-020d-0471-c6023c6b5d0b@redhat.com \
    --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