public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "sunceping" <cepingx.sun@intel.com>
To: "kraxel@redhat.com" <kraxel@redhat.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Aktas, Erdem" <erdemaktas@google.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	"Xu, Min M" <min.m.xu@intel.com>,
	"Reshetova, Elena" <elena.reshetova@intel.com>,
	"Sun, CepingX" <cepingx.sun@intel.com>
Subject: Re: [edk2-devel] [PATCH V1 1/1] OvmfPkg/QemuBootOrderLib: Measure the etc/boot-menu-wait
Date: Fri, 22 Mar 2024 08:29:28 +0000	[thread overview]
Message-ID: <IA0PR11MB8355BD60B5E48880B4FA8280E7312@IA0PR11MB8355.namprd11.prod.outlook.com> (raw)
In-Reply-To: <j7pc2toez4hbwxeqjqmjute3xjzwd5ejoezbk5quvaiydrxdyb@ylpppfhk6g23>

On Thursday, March 21, 2024 8:25 PM Gerd Hoffmann wrote:
> Well, just try to read them.  If present they can just be measured.
> If not present we can either skip them, or measure with an empty data 
> field to indicate it is not present.
My understanding :
If the fw_cfg is present,  it must be measured and consumed later.
Is this correct?

> > > > We propose below solution :
> > > >
> > > > Add a new API in QemuFwCfgLib,
> > > > RETURN_STATUS QemuFwCfgGetData(fw_cfg_name, *size, *value,
> > > FW_CFG_GET_DATA_FLAG flag).
> > >
> > > I'd suggest to *not* touch the existing interfaces for reading entries.
> > > Instead change the existing functions to first check the cache, in 
> > > case there is no cache entry go read from fw_cfg.
> > Actually we don't touch the existing interface for reading entries.
> > The API is newly added.
> 
> But then you have to find and update all callsites (or at least the 
> ones where we care about measurement).
In your solution,  if we cache all items that need to be measured,
we would have to add a new API (example: QemuFwCfgGetDataFromCache ())  to get the data from cache.

Then we also have to find and update all callsites.

Thanks
Ceping



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#117028): https://edk2.groups.io/g/devel/message/117028
Mute This Topic: https://groups.io/mt/104880546/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



  reply	other threads:[~2024-03-22  8:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-12 23:51 [edk2-devel] [PATCH V1 1/1] OvmfPkg/QemuBootOrderLib: Measure the etc/boot-menu-wait sunceping
2024-03-12  7:57 ` Yao, Jiewen
2024-03-13  8:39   ` sunceping
2024-03-12 11:04 ` Gerd Hoffmann
2024-03-13  8:50   ` sunceping
2024-03-14  9:30     ` Gerd Hoffmann
2024-03-20  8:41       ` sunceping
2024-03-20 10:04         ` Gerd Hoffmann
2024-03-21  8:39           ` sunceping
2024-03-21 12:25             ` Gerd Hoffmann
2024-03-22  8:29               ` sunceping [this message]
2024-03-22  9:05                 ` Gerd Hoffmann
2024-03-26  9:08                   ` sunceping
2024-03-26 15:44                     ` 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=IA0PR11MB8355BD60B5E48880B4FA8280E7312@IA0PR11MB8355.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