public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Min Xu" <min.m.xu@intel.com>
To: Tom Lendacky <thomas.lendacky@amd.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Gerd Hoffmann <kraxel@redhat.com>,
	"Aktas, Erdem" <erdemaktas@google.com>,
	James Bottomley <jejb@linux.ibm.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>
Subject: Re: [PATCH V4 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib
Date: Mon, 29 Aug 2022 23:57:31 +0000	[thread overview]
Message-ID: <PH0PR11MB50648DE6CEC051324B68EDDCC5769@PH0PR11MB5064.namprd11.prod.outlook.com> (raw)
In-Reply-To: <b02c839e-8ad3-98df-813f-8ed29ae22c55@amd.com>

On August 29, 2022 9:37 PM, Tom Lendacky wrote:
> On 8/26/22 18:07, Min Xu wrote:
> > From: Min M Xu <min.m.xu@intel.com>
> >
> > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3974
> >
> > To gurantee the GuestType is cached, we read the value in both
> 
> s/gurantee/guarantee/
Thanks for reminder. It will be fixed in the next version.
> 
> > constructor and CcProbe. Because in some corner case, the constructor
> > may be called after CcProbe. For example in
> > MdeModulePkg/Core/Dxe/DxeMain, BaseDebugLibSerialPortConstructor is
> > called before DxeCcProbeLibConstructor. While CcProbe () is called in
> > BaseDebugLibSerialPortConstructor.
> 
> Is there a way to put some kind of ordering in place so that CcProbe's
> constructor is called before BaseDebugLibSerialPortConstructor?
Even there is a way to make the CcProbe's constructor be called before BaseDebugLibSerialPortConstructor, we cannot guarantee it will not be broken in the future. So I think it's safer to read the ovmf work area in both constructor and CcProbe.
> 
> >
> > The reason why we probe CC guest type in 2 different ways is the
> > global varialbe. Global variable cannot be used in SEC/PEI and CcProbe
> > is called
> 
> s/varialbe/variable/
Thanks for reminder. It will be fixed in the next version.

Thanks
Min

  reply	other threads:[~2022-08-29 23:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 23:07 [PATCH V4 0/2] Re-design CcProbeLib Min Xu
2022-08-26 23:07 ` [PATCH V4 1/2] OvmfPkg: Add SecPeiCcProbeLib Min Xu
2022-08-26 23:07 ` [PATCH V4 2/2] OvmfPkg: Update CcProbeLib to DxeCcProbeLib Min Xu
2022-08-29 13:36   ` Lendacky, Thomas
2022-08-29 23:57     ` Min Xu [this message]
2022-08-29  9:34 ` [PATCH V4 0/2] Re-design CcProbeLib Gerd Hoffmann

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=PH0PR11MB50648DE6CEC051324B68EDDCC5769@PH0PR11MB5064.namprd11.prod.outlook.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