[edk2-devel] [PATCH 42/43] OvmfPkg/SmbiosPlatformDxe: split Xen entry point from QEMU entry point

Philippe Mathieu-Daudé philmd at redhat.com
Mon May 31 15:03:49 UTC 2021


On 5/26/21 10:14 PM, Laszlo Ersek wrote:
> Remove the SmbiosTablePublishEntry() function from "SmbiosPlatformDxe.c".
> "SmbiosPlatformDxe.c" becomes hypervisor-agnostic.
> 
> Add SmbiosTablePublishEntry() back, simplified for QEMU, to the existent
> file "Qemu.c". The GetQemuSmbiosTables() function no longer needs to be
> declared in "SmbiosPlatformDxe.h"; "SmbiosPlatformDxe.h" becomes
> hypervisor-agnostic.
> 
> Add SmbiosTablePublishEntry() back, renamed and simplified for Xen, to the
> new, arch-independent file "Xen.c". (The existent Xen-specific C files are
> arch-dependent.)

:)

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

> Update both INF files; remove the dependencies that are now superfluous in
> each.
> 
> Cc: Anthony Perard <anthony.perard at citrix.com>
> Cc: Ard Biesheuvel <ardb+tianocore at kernel.org>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Cc: Julien Grall <julien at xen.org>
> Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
> Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2122
> Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> ---
>  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.inf    | 14 ------
>  OvmfPkg/SmbiosPlatformDxe/XenSmbiosPlatformDxe.inf | 12 ++---
>  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.h      | 11 -----
>  OvmfPkg/SmbiosPlatformDxe/Qemu.c                   | 33 +++++++++++++
>  OvmfPkg/SmbiosPlatformDxe/SmbiosPlatformDxe.c      | 49 --------------------
>  OvmfPkg/SmbiosPlatformDxe/Xen.c                    | 49 ++++++++++++++++++++
>  6 files changed, 86 insertions(+), 82 deletions(-)



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#75876): https://edk2.groups.io/g/devel/message/75876
Mute This Topic: https://groups.io/mt/83111228/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list