public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: devel@edk2.groups.io
Subject: [PATCH 0/3] Allow SMM access-out when static paging is OFF
Date: Sat, 27 Jul 2019 11:28:47 +0800	[thread overview]
Message-ID: <20190727032850.337840-1-ray.ni@intel.com> (raw)

The patch set refines the original CR2 save/restore logic by adding
a new internal function IsStaticPageTableEnabled() because now
there are two use cases that need to conditionally do something
based on whether static page table is enabled.
Based on the refine, the patch changes the policy to allow SMM access
out when static paging is OFF.

Ray Ni (3):
  UefiCpuPkg/PiSmmCpu: Add Internal function IsStaticPageTableEnabled
  UefiCpuPkg/PiSmmCpu: Refine CR2 save/restore logic
  UefiCpuPkg/PiSmmCpu: Allow SMM access-out when static paging is OFF

 UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c   | 41 ++++++++------------
 UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c      |  8 +++-
 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 21 +++++++---
 UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 27 +++++--------
 UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c    | 45 ++++++++--------------
 5 files changed, 63 insertions(+), 79 deletions(-)

-- 
2.21.0.windows.1


             reply	other threads:[~2019-07-27  3:29 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-27  3:28 Ni, Ray [this message]
2019-07-27  3:28 ` [PATCH 1/3] UefiCpuPkg/PiSmmCpu: Add Internal function IsStaticPageTableEnabled Ni, Ray
2019-07-29 11:33   ` [edk2-devel] " Dong, Eric
2019-07-29 11:33   ` Laszlo Ersek
2019-07-30 15:20     ` Ni, Ray
2019-07-31  9:57       ` Laszlo Ersek
2019-07-31 16:40         ` Ni, Ray
2019-07-27  3:28 ` [PATCH 2/3] UefiCpuPkg/PiSmmCpu: Refine CR2 save/restore logic Ni, Ray
2019-07-29 11:33   ` Dong, Eric
2019-07-29 11:42   ` [edk2-devel] " Laszlo Ersek
2019-07-27  3:28 ` [PATCH 3/3] UefiCpuPkg/PiSmmCpu: Allow SMM access-out when static paging is OFF Ni, Ray
2019-07-29 11:33   ` Dong, Eric
2019-07-29 11:49   ` [edk2-devel] " Laszlo Ersek

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=20190727032850.337840-1-ray.ni@intel.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