public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Laszlo Ersek" <lersek@redhat.com>
To: jejb@linux.ibm.com, devel@edk2.groups.io
Cc: dovmurik@linux.vnet.ibm.com, Dov.Murik1@il.ibm.com,
	ashish.kalra@amd.com, brijesh.singh@amd.com, tobin@ibm.com,
	david.kaplan@amd.com, jon.grimm@amd.com, thomas.lendacky@amd.com,
	frankeh@us.ibm.com,
	"Dr . David Alan Gilbert" <dgilbert@redhat.com>
Subject: Re: [edk2-devel] [PATCH v2 2/6] OvmfPkg/AmdSev: add Grub Firmware Volume Package
Date: Wed, 25 Nov 2020 00:22:27 +0100	[thread overview]
Message-ID: <1c871b56-f459-5ac4-3b8d-a55d978eac06@redhat.com> (raw)
In-Reply-To: <f1b8aedbcdf450056e7bbf4b5cdef19391c483ad.camel@linux.ibm.com>

On 11/24/20 17:22, James Bottomley wrote:
> On Tue, 2020-11-24 at 16:58 +0100, Laszlo Ersek wrote:
>> On 11/24/20 15:54, Laszlo Ersek wrote:
> [...]
>> Perhaps I can make that recommendation / request more detailed too:
>>
>>
>> * drop:
>>
>> - UefiRuntimeServicesTableLib: no use of "gRT"
>>
>> - ReportStatusCodeLib: commit 0a0566d5edad is not relevant, because
>> we justifiedly removed TryRunningQemuKernel()
>>
>> - XenPlatformLib: as discussed before; substitute FALSE for each
>> XenDetected() call, and compress the resultant code
> 
> All dropped.
> 
>> * keep:
>>
>> - BaseLib: for CpuDeadLoop()
>>
>> - MemoryAllocationLib: for FreePool()
>>
>> - UefiBootServicesTableLib: for gBS->xxx()
>>
>> - BaseMemoryLib: for CompareMem()
>>
>> - DebugLib: for DEBUG() and ASSERT()
>>
>> - PcdLib: for PcdGet16 (PcdOvmfHostBridgePciDevId)
>>
>> - UefiBootManagerLib: for APIs central to the functionality of
>> PlatformBootManagerLibGrub
>>
>> - BootLogoLib: for BootLogoEnableLogo()
>>
>> - DevicePathLib: for a bunch of device path manipulation
>>
>> - PciLib: mainly for the functions called in PciAcpiInitialization()
>>
>> - UefiLib: for EfiEventGroupSignal() etc
>>
>> - PlatformBmPrintScLib: for PlatformBmPrintScRegisterHandler() --
>> this is responsible for printing the boot option processing steps to
>> the UEFI console
>>
>> - Tcg2PhysicalPresenceLib: for
>> Tcg2PhysicalItPresenceLibProcessRequest() -- we preserve TPM support
>>
>>
>> Then leaving the trimming of [Packages] to the end makes sense --
>> after trimming everything else, try to remove each package DEC in
>> isolation, and see if the lib instance continues to build.
> 
> I can't seem to remove any packages.  Even the source debug agent one
> is used by the uart devices.

OK! Thanks for checking.

> 
> It seems I can get rid of PcdFSBClock
> 
> and in the protocols section (with some header file removal)
> 
> gEfiDecompressProtocolGuid
> gEfiS3SaveStateProtocolGuid

Yes, I agree removing these is correct; they were also included in my
other email at <https://edk2.groups.io/g/devel/message/67892>.

There are some others that should be possible to remove (pls. refer to
the rest of that email).

Thanks!
Laszlo


  reply	other threads:[~2020-11-24 23:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-20 18:45 [PATCH v2 0/6] SEV Encrypted Boot for Ovmf James Bottomley
2020-11-20 18:45 ` [PATCH v2 1/6] OvmfPkg/Amdsev: Base commit to build encrypted boot specific OVMF James Bottomley
2020-11-23 18:01   ` Laszlo Ersek
2020-11-23 23:25     ` James Bottomley
2020-11-23 23:43       ` Laszlo Ersek
2020-11-20 18:45 ` [PATCH v2 2/6] OvmfPkg/AmdSev: add Grub Firmware Volume Package James Bottomley
2020-11-23 21:08   ` Laszlo Ersek
2020-11-24  6:38     ` James Bottomley
2020-11-24  8:23       ` Laszlo Ersek
2020-11-24 14:54         ` Laszlo Ersek
2020-11-24 15:58           ` Laszlo Ersek
2020-11-24 16:22             ` [edk2-devel] " James Bottomley
2020-11-24 23:22               ` Laszlo Ersek [this message]
2020-11-24 23:42                 ` James Bottomley
2020-11-25  1:27                   ` James Bottomley
2020-11-25 14:01                     ` Laszlo Ersek
2020-11-25 16:02                       ` James Bottomley
2020-11-25 17:09                         ` James Bottomley
2020-11-25 18:17                           ` James Bottomley
2020-11-25 19:20                             ` Laszlo Ersek
2020-11-25 20:11                               ` James Bottomley
2020-11-25 18:35                           ` Laszlo Ersek
2020-11-25 19:08                             ` Laszlo Ersek
2020-11-25 19:14                               ` Laszlo Ersek
2020-11-20 18:45 ` [PATCH v2 3/6] OvmfPkg: convert ES Reset Block structure to be guided James Bottomley
2020-11-23 22:16   ` Laszlo Ersek
2020-11-24 14:57     ` Lendacky, Thomas
2020-11-24 19:07       ` James Bottomley
2020-11-24 23:19         ` Laszlo Ersek
2020-11-24 19:05     ` James Bottomley
2020-11-24 23:15       ` Laszlo Ersek
2020-11-20 18:45 ` [PATCH v2 4/6] OvmfPkg: create a SEV secret area in the AmdSev memfd James Bottomley
2020-11-23 22:28   ` Laszlo Ersek
2020-11-20 18:45 ` [PATCH v2 5/6] OvmfPkg/AmdSev: assign and protect the Sev Secret area James Bottomley
2020-11-23 22:38   ` Laszlo Ersek
2020-11-20 18:45 ` [PATCH v2 6/6] OvmfPkg/AmdSev: Expose the Sev Secret area using a configuration table James Bottomley
2020-11-23 22:56   ` 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=1c871b56-f459-5ac4-3b8d-a55d978eac06@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