[edk2-devel] [PATCH] OvmfPkg: supply missing lib class declarations in the DEC file

Laszlo Ersek posted 1 patch 4 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20200407100545.25406-1-lersek@redhat.com
OvmfPkg/OvmfPkg.dec | 14 ++++++++++++++
1 file changed, 14 insertions(+)
[edk2-devel] [PATCH] OvmfPkg: supply missing lib class declarations in the DEC file
Posted by Laszlo Ersek 4 years ago
List the header files in the OvmfPkg DEC file for the following lib
classes:

- MemEncryptSevLib (one instance: BaseMemEncryptSevLib)

- PlatformFvbLib (two instances: EmuVariableFvbLib, PlatformFvbLibNull)

- VirtioLib (one instance: VirtioLib)

- VirtioMmioDeviceLib (one instance: VirtioMmioDeviceLib)

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Sean Brogan <sean.brogan@microsoft.com>
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2662
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---

Notes:
    Repo:   https://pagure.io/lersek/edk2.git
    Branch: lib_classes_bz_2662

 OvmfPkg/OvmfPkg.dec | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec
index eae4d5e7ab42..28030391cff2 100644
--- a/OvmfPkg/OvmfPkg.dec
+++ b/OvmfPkg/OvmfPkg.dec
@@ -22,6 +22,10 @@ [LibraryClasses]
   #
   LoadLinuxLib|Include/Library/LoadLinuxLib.h
 
+  ##  @libraryclass  Declares helper functions for Secure Encrypted
+  #                  Virtualization (SEV) guests.
+  MemEncryptSevLib|Include/Library/MemEncryptSevLib.h
+
   ##  @libraryclass  Save and restore variables using a file
   #
   NvVarsFileLib|Include/Library/NvVarsFileLib.h
@@ -45,6 +49,9 @@ [LibraryClasses]
   #                  return codes, to the UEFI console.
   PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h
 
+  ##  @libraryclass  Customize FVB2 protocol member functions for a platform.
+  PlatformFvbLib|Include/Library/PlatformFvbLib.h
+
   ##  @libraryclass  Access QEMU's firmware configuration interface
   #
   QemuFwCfgLib|Include/Library/QemuFwCfgLib.h
@@ -67,6 +74,13 @@ [LibraryClasses]
   #
   SerializeVariablesLib|Include/Library/SerializeVariablesLib.h
 
+  ##  @libraryclass  Declares utility functions for virtio device drivers.
+  VirtioLib|Include/Library/VirtioLib.h
+
+  ##  @libraryclass  Install Virtio Device Protocol instances on virtio-mmio
+  #                  transports.
+  VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
+
   ##  @libraryclass  Invoke Xen hypercalls
   #
   XenHypercallLib|Include/Library/XenHypercallLib.h
-- 
2.19.1.3.g30247aa5d201


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#57020): https://edk2.groups.io/g/devel/message/57020
Mute This Topic: https://groups.io/mt/72847121/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH] OvmfPkg: supply missing lib class declarations in the DEC file
Posted by Ard Biesheuvel 4 years ago
On 4/7/20 12:05 PM, Laszlo Ersek wrote:
> List the header files in the OvmfPkg DEC file for the following lib
> classes:
> 
> - MemEncryptSevLib (one instance: BaseMemEncryptSevLib)
> 
> - PlatformFvbLib (two instances: EmuVariableFvbLib, PlatformFvbLibNull)
> 
> - VirtioLib (one instance: VirtioLib)
> 
> - VirtioMmioDeviceLib (one instance: VirtioMmioDeviceLib)
> 
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2662
> Signed-off-by: Laszlo Ersek <lersek@redhat.com>

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>

> ---
> 
> Notes:
>      Repo:   https://pagure.io/lersek/edk2.git
>      Branch: lib_classes_bz_2662
> 
>   OvmfPkg/OvmfPkg.dec | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec
> index eae4d5e7ab42..28030391cff2 100644
> --- a/OvmfPkg/OvmfPkg.dec
> +++ b/OvmfPkg/OvmfPkg.dec
> @@ -22,6 +22,10 @@ [LibraryClasses]
>     #
>     LoadLinuxLib|Include/Library/LoadLinuxLib.h
>   
> +  ##  @libraryclass  Declares helper functions for Secure Encrypted
> +  #                  Virtualization (SEV) guests.
> +  MemEncryptSevLib|Include/Library/MemEncryptSevLib.h
> +
>     ##  @libraryclass  Save and restore variables using a file
>     #
>     NvVarsFileLib|Include/Library/NvVarsFileLib.h
> @@ -45,6 +49,9 @@ [LibraryClasses]
>     #                  return codes, to the UEFI console.
>     PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h
>   
> +  ##  @libraryclass  Customize FVB2 protocol member functions for a platform.
> +  PlatformFvbLib|Include/Library/PlatformFvbLib.h
> +
>     ##  @libraryclass  Access QEMU's firmware configuration interface
>     #
>     QemuFwCfgLib|Include/Library/QemuFwCfgLib.h
> @@ -67,6 +74,13 @@ [LibraryClasses]
>     #
>     SerializeVariablesLib|Include/Library/SerializeVariablesLib.h
>   
> +  ##  @libraryclass  Declares utility functions for virtio device drivers.
> +  VirtioLib|Include/Library/VirtioLib.h
> +
> +  ##  @libraryclass  Install Virtio Device Protocol instances on virtio-mmio
> +  #                  transports.
> +  VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
> +
>     ##  @libraryclass  Invoke Xen hypercalls
>     #
>     XenHypercallLib|Include/Library/XenHypercallLib.h
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#57021): https://edk2.groups.io/g/devel/message/57021
Mute This Topic: https://groups.io/mt/72847121/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH] OvmfPkg: supply missing lib class declarations in the DEC file
Posted by Laszlo Ersek 4 years ago
On 04/07/20 12:05, Laszlo Ersek wrote:
> List the header files in the OvmfPkg DEC file for the following lib
> classes:
> 
> - MemEncryptSevLib (one instance: BaseMemEncryptSevLib)
> 
> - PlatformFvbLib (two instances: EmuVariableFvbLib, PlatformFvbLibNull)
> 
> - VirtioLib (one instance: VirtioLib)
> 
> - VirtioMmioDeviceLib (one instance: VirtioMmioDeviceLib)
> 
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2662
> Signed-off-by: Laszlo Ersek <lersek@redhat.com>
> ---
> 
> Notes:
>     Repo:   https://pagure.io/lersek/edk2.git
>     Branch: lib_classes_bz_2662
> 
>  OvmfPkg/OvmfPkg.dec | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)
> 
> diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec
> index eae4d5e7ab42..28030391cff2 100644
> --- a/OvmfPkg/OvmfPkg.dec
> +++ b/OvmfPkg/OvmfPkg.dec
> @@ -22,6 +22,10 @@ [LibraryClasses]
>    #
>    LoadLinuxLib|Include/Library/LoadLinuxLib.h
>  
> +  ##  @libraryclass  Declares helper functions for Secure Encrypted
> +  #                  Virtualization (SEV) guests.
> +  MemEncryptSevLib|Include/Library/MemEncryptSevLib.h
> +
>    ##  @libraryclass  Save and restore variables using a file
>    #
>    NvVarsFileLib|Include/Library/NvVarsFileLib.h
> @@ -45,6 +49,9 @@ [LibraryClasses]
>    #                  return codes, to the UEFI console.
>    PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h
>  
> +  ##  @libraryclass  Customize FVB2 protocol member functions for a platform.
> +  PlatformFvbLib|Include/Library/PlatformFvbLib.h
> +
>    ##  @libraryclass  Access QEMU's firmware configuration interface
>    #
>    QemuFwCfgLib|Include/Library/QemuFwCfgLib.h
> @@ -67,6 +74,13 @@ [LibraryClasses]
>    #
>    SerializeVariablesLib|Include/Library/SerializeVariablesLib.h
>  
> +  ##  @libraryclass  Declares utility functions for virtio device drivers.
> +  VirtioLib|Include/Library/VirtioLib.h
> +
> +  ##  @libraryclass  Install Virtio Device Protocol instances on virtio-mmio
> +  #                  transports.
> +  VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
> +
>    ##  @libraryclass  Invoke Xen hypercalls
>    #
>    XenHypercallLib|Include/Library/XenHypercallLib.h
> 

Merged as commit 7cfc48fe4f97, via
<https://github.com/tianocore/edk2/pull/511>.

Thanks!
Laszlo


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#57059): https://edk2.groups.io/g/devel/message/57059
Mute This Topic: https://groups.io/mt/72847121/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH] OvmfPkg: supply missing lib class declarations in the DEC file
Posted by Philippe Mathieu-Daudé 4 years ago
On 4/7/20 12:05 PM, Laszlo Ersek wrote:
> List the header files in the OvmfPkg DEC file for the following lib
> classes:
> 
> - MemEncryptSevLib (one instance: BaseMemEncryptSevLib)
> 
> - PlatformFvbLib (two instances: EmuVariableFvbLib, PlatformFvbLibNull)
> 
> - VirtioLib (one instance: VirtioLib)
> 
> - VirtioMmioDeviceLib (one instance: VirtioMmioDeviceLib)
> 
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Sean Brogan <sean.brogan@microsoft.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2662
> Signed-off-by: Laszlo Ersek <lersek@redhat.com>

Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>

> ---
> 
> Notes:
>      Repo:   https://pagure.io/lersek/edk2.git
>      Branch: lib_classes_bz_2662
> 
>   OvmfPkg/OvmfPkg.dec | 14 ++++++++++++++
>   1 file changed, 14 insertions(+)
> 
> diff --git a/OvmfPkg/OvmfPkg.dec b/OvmfPkg/OvmfPkg.dec
> index eae4d5e7ab42..28030391cff2 100644
> --- a/OvmfPkg/OvmfPkg.dec
> +++ b/OvmfPkg/OvmfPkg.dec
> @@ -22,6 +22,10 @@ [LibraryClasses]
>     #
>     LoadLinuxLib|Include/Library/LoadLinuxLib.h
>   
> +  ##  @libraryclass  Declares helper functions for Secure Encrypted
> +  #                  Virtualization (SEV) guests.
> +  MemEncryptSevLib|Include/Library/MemEncryptSevLib.h
> +
>     ##  @libraryclass  Save and restore variables using a file
>     #
>     NvVarsFileLib|Include/Library/NvVarsFileLib.h
> @@ -45,6 +49,9 @@ [LibraryClasses]
>     #                  return codes, to the UEFI console.
>     PlatformBmPrintScLib|Include/Library/PlatformBmPrintScLib.h
>   
> +  ##  @libraryclass  Customize FVB2 protocol member functions for a platform.
> +  PlatformFvbLib|Include/Library/PlatformFvbLib.h
> +
>     ##  @libraryclass  Access QEMU's firmware configuration interface
>     #
>     QemuFwCfgLib|Include/Library/QemuFwCfgLib.h
> @@ -67,6 +74,13 @@ [LibraryClasses]
>     #
>     SerializeVariablesLib|Include/Library/SerializeVariablesLib.h
>   
> +  ##  @libraryclass  Declares utility functions for virtio device drivers.
> +  VirtioLib|Include/Library/VirtioLib.h
> +
> +  ##  @libraryclass  Install Virtio Device Protocol instances on virtio-mmio
> +  #                  transports.
> +  VirtioMmioDeviceLib|Include/Library/VirtioMmioDeviceLib.h
> +
>     ##  @libraryclass  Invoke Xen hypercalls
>     #
>     XenHypercallLib|Include/Library/XenHypercallLib.h
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#57022): https://edk2.groups.io/g/devel/message/57022
Mute This Topic: https://groups.io/mt/72847121/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-