From: "Lendacky, Thomas" <thomas.lendacky@amd.com>
To: <devel@edk2.groups.io>
Cc: Eric Dong <eric.dong@intel.com>, Ray Ni <ray.ni@intel.com>,
Rahul Kumar <rahul1.kumar@intel.com>,
Gerd Hoffmann <kraxel@redhat.com>,
Michael Roth <michael.roth@amd.com>,
Ashish Kalra <Ashish.Kalra@amd.com>
Subject: [PATCH v2 0/2] SEV-SNP guest support fixes
Date: Tue, 28 Mar 2023 13:09:22 -0500 [thread overview]
Message-ID: <cover.1680026964.git.thomas.lendacky@amd.com> (raw)
This patch series provides some fixes around AP creation:
- An erratum on AMD hardware requires that a VMSA not be aligned on a
2MB boundary. To work around this issue, allocate 2 pages of memory
and using the page that is not 2MB aligned and freeing the other.
- When parking APs after exiting boot services, the current SNP support
will perform an allocation that will not be reflected in memory map
being supplied to the OS. Instead of allocating new VMSAs each time,
re-use the current VMSA.
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4353
---
Changes since v1:
- Change the order of the patches to make the patch diffs easier
to review
- Add erratum number to the patch description and code comment
- Use existing ALIGN_POINTER macro
These patches are based on commit:
5eb3d1bcc16f ("ArmVirtPkg: can't find gUefiOvmfPkgTokenSpaceGuid")
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Michael Roth <michael.roth@amd.com>
Cc: Ashish Kalra <Ashish.Kalra@amd.com>
Tom Lendacky (2):
UefiCpuPkg/MpInitLib: Reuse VMSA allocation to avoid unreserved
allocation
UefiCpuPkg/MpInitLib: Ensure SEV-SNP VMSA allocations are not 2MB
aligned
UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c | 224 ++++++++++++++--------
1 file changed, 144 insertions(+), 80 deletions(-)
--
2.40.0
next reply other threads:[~2023-03-28 18:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-28 18:09 Lendacky, Thomas [this message]
2023-03-28 18:09 ` [PATCH v2 1/2] UefiCpuPkg/MpInitLib: Reuse VMSA allocation to avoid unreserved allocation Lendacky, Thomas
2023-03-28 18:09 ` [PATCH v2 2/2] UefiCpuPkg/MpInitLib: Ensure SEV-SNP VMSA allocations are not 2MB aligned Lendacky, Thomas
[not found] ` <1750A7A753390E6E.29160@groups.io>
2023-03-28 18:20 ` [edk2-devel] " Lendacky, Thomas
2023-03-30 7:36 ` [edk2-devel] [PATCH v2 0/2] SEV-SNP guest support fixes Gerd Hoffmann
2023-03-31 7:32 ` Ni, Ray
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=cover.1680026964.git.thomas.lendacky@amd.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