[edk2-devel] [PATCH V3 0/6] Refactor installation of gQemuAcpiTableNotifyProtocol

Min Xu posted 6 patches 1 year, 3 months ago
Failed in applying to current master (apply log)
OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c         | 23 +++++-----
OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c       | 43 ++++++++++++-------
.../Include/Protocol/QemuAcpiTableNotify.h    | 27 ------------
3 files changed, 40 insertions(+), 53 deletions(-)
delete mode 100644 OvmfPkg/Include/Protocol/QemuAcpiTableNotify.h
[edk2-devel] [PATCH V3 0/6] Refactor installation of gQemuAcpiTableNotifyProtocol
Posted by Min Xu 1 year, 3 months ago
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4237

Commit 9fdc70af6ba8 breaks log analysis and code cohesion in 
AcpiPlatformDxe. See the detailed information in BZ#4237.

This patch-set contains below patches to fix above issues.
#1: Remove QEMU_ACPI_TABLE_NOTIFY_PROTOCOL and delete
    QemuAcpiTableNotify.h.
#2: Use local variable of ChAcpiHandle to store the handle.
#3: Use local variable of QemuAcpiHandle to store the handle.
#4: Add log to show how many ACPI tables installed.
#5: Refactor the installation of QemuAcpiTableNotifyProtocol and
    its error handling.
#6: Return error code if QemuAcpiTableNotifyProtocol is failed to be
    installed so that the caller can handle the error.

Code: https://github.com/mxu9/edk2/tree/AcpiPlatformDxe.v3

v3 changes:
 - Set QemuAcpiHandle to NULL right before installing the
   gQemuAcpiTableNotifyProtocol.

v2 changes:
 - Split v1 patch into 6 separate patches.

Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Sebastien Boeuf <sebastien.boeuf@intel.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>

Min M Xu (6):
  OvmfPkg/AcpiPlatformDxe: Remove QEMU_ACPI_TABLE_NOTIFY_PROTOCOL
  OvmfPkg/AcpiPlatformDxe: Use local variable in CloudHvAcpi.c
  OvmfPkg/AcpiPlatformDxe: Use local variable in QemuFwCfgAcpi.c
  OvmfPkg/AcpiPlatformDxe: Add log to show the installed tables
  OvmfPkg/AcpiPlatformDxe: Refactor QemuAcpiTableNotifyProtocol
  OvmfPkg/AcpiPlatformDxe: Return error if installing NotifyProtocol
    failed

 OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c         | 23 +++++-----
 OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c       | 43 ++++++++++++-------
 .../Include/Protocol/QemuAcpiTableNotify.h    | 27 ------------
 3 files changed, 40 insertions(+), 53 deletions(-)
 delete mode 100644 OvmfPkg/Include/Protocol/QemuAcpiTableNotify.h

-- 
2.29.2.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98258): https://edk2.groups.io/g/devel/message/98258
Mute This Topic: https://groups.io/mt/96191586/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH V3 0/6] Refactor installation of gQemuAcpiTableNotifyProtocol
Posted by Laszlo Ersek 1 year, 3 months ago
On 1/11/23 02:22, Min Xu wrote:
> BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4237
> 
> Commit 9fdc70af6ba8 breaks log analysis and code cohesion in 
> AcpiPlatformDxe. See the detailed information in BZ#4237.
> 
> This patch-set contains below patches to fix above issues.
> #1: Remove QEMU_ACPI_TABLE_NOTIFY_PROTOCOL and delete
>     QemuAcpiTableNotify.h.
> #2: Use local variable of ChAcpiHandle to store the handle.
> #3: Use local variable of QemuAcpiHandle to store the handle.
> #4: Add log to show how many ACPI tables installed.
> #5: Refactor the installation of QemuAcpiTableNotifyProtocol and
>     its error handling.
> #6: Return error code if QemuAcpiTableNotifyProtocol is failed to be
>     installed so that the caller can handle the error.
> 
> Code: https://github.com/mxu9/edk2/tree/AcpiPlatformDxe.v3
> 
> v3 changes:
>  - Set QemuAcpiHandle to NULL right before installing the
>    gQemuAcpiTableNotifyProtocol.
> 
> v2 changes:
>  - Split v1 patch into 6 separate patches.
> 
> Cc: Laszlo Ersek <lersek@redhat.com>
> Cc: Erdem Aktas <erdemaktas@google.com>
> Cc: James Bottomley <jejb@linux.ibm.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: Sebastien Boeuf <sebastien.boeuf@intel.com>
> Reported-by: Laszlo Ersek <lersek@redhat.com>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> 
> Min M Xu (6):
>   OvmfPkg/AcpiPlatformDxe: Remove QEMU_ACPI_TABLE_NOTIFY_PROTOCOL
>   OvmfPkg/AcpiPlatformDxe: Use local variable in CloudHvAcpi.c
>   OvmfPkg/AcpiPlatformDxe: Use local variable in QemuFwCfgAcpi.c
>   OvmfPkg/AcpiPlatformDxe: Add log to show the installed tables
>   OvmfPkg/AcpiPlatformDxe: Refactor QemuAcpiTableNotifyProtocol
>   OvmfPkg/AcpiPlatformDxe: Return error if installing NotifyProtocol
>     failed
> 
>  OvmfPkg/AcpiPlatformDxe/CloudHvAcpi.c         | 23 +++++-----
>  OvmfPkg/AcpiPlatformDxe/QemuFwCfgAcpi.c       | 43 ++++++++++++-------
>  .../Include/Protocol/QemuAcpiTableNotify.h    | 27 ------------
>  3 files changed, 40 insertions(+), 53 deletions(-)
>  delete mode 100644 OvmfPkg/Include/Protocol/QemuAcpiTableNotify.h
> 

https://github.com/tianocore/edk2/pull/3897

Commit range ba08910df107..7cd55f300915.

Thanks.



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#98523): https://edk2.groups.io/g/devel/message/98523
Mute This Topic: https://groups.io/mt/96191586/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-