From: "Laszlo Ersek" <lersek@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: devel@edk2.groups.io, ray.ni@intel.com,
"ardb@kernel.org" <ardb@kernel.org>,
"Xie, Yuanhao" <yuanhao.xie@intel.com>,
"thomas.lendacky@amd.com" <thomas.lendacky@amd.com>
Subject: Re: [edk2-devel] [PATCH] UefiCpuPkg:Fixed AsmRelocateApLoopStart and ensure allocated memory <4GB
Date: Fri, 6 Jan 2023 13:20:37 +0100 [thread overview]
Message-ID: <bee459a5-fd85-0392-4f96-cca0784ea218@redhat.com> (raw)
In-Reply-To: <20230106111449.hirlrxwof2v5dc7i@sirius.home.kraxel.org>
On 1/6/23 12:14, Gerd Hoffmann wrote:
> Hi,
>
>> Now, there *is* one benefit I can imagine. For Intel maintainers, it may
>> be difficult to maintain and to "route around" the SEV-related stuff in
>> "X64/MpFuncs.nasm", in the long term. I can wholly accept that. So
>> splitting and duplicating the assembly code for that purpose is
>> justified. But then the commit message should state this, and not
>> present "staying in 64-bit" as a benefit per se.
>>
>> Then the purpose is to ease the assembly code maintenance for Intel
>> developers. Entirely justified goal in my view; nobody likes to work
>> with complicated code they can't regression-test (and I presume Intel
>> developers can't easily test the various SEV enablement levels in-house,
>> on a range of AMD processors).
>
> Which is exactly why I suggested to catch the SEV case by checking the
> PCD we have for that in C code. That'll also remove the confusion we
> have right now wrt intel + amd processors. The special case we have to
> worry about is SEV being active, not running on a AMD processor. In
> case SEV is not active we'll just have the IA32 and X64 cases.
Thanks for repeating your suggestion. It seems very plausible, on second
reading. I guess I just couldn't grasp it enough the first time you
proposed it, sorry. I'd be very interested to see this in actual code!
Thanks!
Laszlo
next prev parent reply other threads:[~2023-01-06 12:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-05 6:21 [PATCH] UefiCpuPkg:Fixed AsmRelocateApLoopStart and ensure allocated memory <4GB Yuanhao Xie
2023-01-05 6:28 ` [edk2-devel] " Ni, Ray
2023-01-05 7:19 ` Yuanhao Xie
2023-01-05 9:38 ` Ard Biesheuvel
2023-01-06 4:12 ` Ni, Ray
2023-01-06 6:42 ` Laszlo Ersek
2023-01-06 8:03 ` Gerd Hoffmann
2023-01-06 8:30 ` Laszlo Ersek
2023-01-06 8:39 ` Ni, Ray
2023-01-06 9:19 ` Laszlo Ersek
2023-01-06 9:45 ` Ni, Ray
2023-01-06 10:35 ` Laszlo Ersek
2023-01-06 11:14 ` Gerd Hoffmann
2023-01-06 12:20 ` Laszlo Ersek [this message]
2023-01-06 8:43 ` Yuanhao Xie
2023-01-06 9:04 ` Laszlo Ersek
2023-01-06 15:42 ` Lendacky, Thomas
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=bee459a5-fd85-0392-4f96-cca0784ea218@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