[edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix

Laszlo Ersek posted 6 patches 4 years ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/edk2 tags/patchew/20200417153751.7110-1-lersek@redhat.com
OvmfPkg/OvmfPkgIa32.dsc                                                       |  8 +-
OvmfPkg/OvmfPkgIa32X64.dsc                                                    |  8 +-
OvmfPkg/OvmfPkgX64.dsc                                                        |  8 +-
OvmfPkg/OvmfXen.dsc                                                           |  6 +-
OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} | 12 ++-
OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf                          | 43 ++++++++++
OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c                            | 51 ++++++++++++
OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c                             | 62 +++++++++++++++
OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c                               | 84 +++++---------------
9 files changed, 209 insertions(+), 73 deletions(-)
rename OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} (65%)
create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c
[edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Laszlo Ersek 4 years ago
Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
Repo:   https://pagure.io/lersek/edk2.git
Branch: rsl_cleanup

Rebecca's

  [PATCH 02/13] OvmfPkg: support powering off bhyve guests

at

  https://edk2.groups.io/g/devel/message/57450
  http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com

made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
let us add a simple bhyve-specific instance (later), and also allows us
to fix a long time dormant bug (now).

Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Julien Grall <julien@xen.org>
Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Rebecca Cran <rebecca@bsdio.com>

Thanks,
Laszlo

Laszlo Ersek (6):
  OvmfPkg/ResetSystemLib: wrap long lines
  OvmfPkg/ResetSystemLib: clean up library dependencies
  OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
  OvmfPkg/ResetSystemLib: factor out ResetShutdown()
  OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
  OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance

 OvmfPkg/OvmfPkgIa32.dsc                                                       |  8 +-
 OvmfPkg/OvmfPkgIa32X64.dsc                                                    |  8 +-
 OvmfPkg/OvmfPkgX64.dsc                                                        |  8 +-
 OvmfPkg/OvmfXen.dsc                                                           |  6 +-
 OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} | 12 ++-
 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf                          | 43 ++++++++++
 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c                            | 51 ++++++++++++
 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c                             | 62 +++++++++++++++
 OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c                               | 84 +++++---------------
 9 files changed, 209 insertions(+), 73 deletions(-)
 rename OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} (65%)
 create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
 create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
 create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c

-- 
2.19.1.3.g30247aa5d201


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Ard Biesheuvel 4 years ago
On 4/17/20 5:37 PM, Laszlo Ersek wrote:
> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
> Repo:   https://pagure.io/lersek/edk2.git
> Branch: rsl_cleanup
> 
> Rebecca's
> 
>    [PATCH 02/13] OvmfPkg: support powering off bhyve guests
> 
> at
> 
>    https://edk2.groups.io/g/devel/message/57450
>    http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
> 
> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
> let us add a simple bhyve-specific instance (later), and also allows us
> to fix a long time dormant bug (now).
> 
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Julien Grall <julien@xen.org>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Rebecca Cran <rebecca@bsdio.com>
> 
> Thanks,
> Laszlo
> 
> Laszlo Ersek (6):
>    OvmfPkg/ResetSystemLib: wrap long lines
>    OvmfPkg/ResetSystemLib: clean up library dependencies
>    OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>    OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>    OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>    OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
> 

For the series,

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

One nit: putting a diff block inside the commit log [6/6] doesn't help 
legibility a lot, and the issue of not being able to access memory that 
is not mapped for runtime is so basic that it doesn't require that level 
of detail to describe a reproducer and the Linux kernel log output when 
the issue is triggered.


>   OvmfPkg/OvmfPkgIa32.dsc                                                       |  8 +-
>   OvmfPkg/OvmfPkgIa32X64.dsc                                                    |  8 +-
>   OvmfPkg/OvmfPkgX64.dsc                                                        |  8 +-
>   OvmfPkg/OvmfXen.dsc                                                           |  6 +-
>   OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} | 12 ++-
>   OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf                          | 43 ++++++++++
>   OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c                            | 51 ++++++++++++
>   OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c                             | 62 +++++++++++++++
>   OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c                               | 84 +++++---------------
>   9 files changed, 209 insertions(+), 73 deletions(-)
>   rename OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} (65%)
>   create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
>   create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
>   create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c
> 


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Philippe Mathieu-Daudé 4 years ago
On 4/17/20 5:59 PM, Ard Biesheuvel wrote:
> On 4/17/20 5:37 PM, Laszlo Ersek wrote:
>> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
>> Repo:   https://pagure.io/lersek/edk2.git
>> Branch: rsl_cleanup
>>
>> Rebecca's
>>
>>    [PATCH 02/13] OvmfPkg: support powering off bhyve guests
>>
>> at
>>
>>    https://edk2.groups.io/g/devel/message/57450
>>    
>> http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com 
>>
>>
>> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
>> let us add a simple bhyve-specific instance (later), and also allows us
>> to fix a long time dormant bug (now).
>>
>> Cc: Anthony Perard <anthony.perard@citrix.com>
>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>> Cc: Julien Grall <julien@xen.org>
>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>> Cc: Rebecca Cran <rebecca@bsdio.com>
>>
>> Thanks,
>> Laszlo
>>
>> Laszlo Ersek (6):
>>    OvmfPkg/ResetSystemLib: wrap long lines
>>    OvmfPkg/ResetSystemLib: clean up library dependencies
>>    OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>>    OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>>    OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>>    OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
>>
> 
> For the series,
> 
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
> 
> One nit: putting a diff block inside the commit log [6/6] doesn't help 
> legibility a lot, and the issue of not being able to access memory that 
> is not mapped for runtime is so basic that it doesn't require that level 
> of detail to describe a reproducer and the Linux kernel log output when 
> the issue is triggered.

Personally I find the kernel log relevant, it will help to understand th 
e patch when looking at it in >5years from now.
> 
>>   
>> OvmfPkg/OvmfPkgIa32.dsc                                                       
>> |  8 +-
>>   
>> OvmfPkg/OvmfPkgIa32X64.dsc                                                    
>> |  8 +-
>>   
>> OvmfPkg/OvmfPkgX64.dsc                                                        
>> |  8 +-
>>   
>> OvmfPkg/OvmfXen.dsc                                                           
>> |  6 +-
>>   OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => 
>> BaseResetSystemLib.inf} | 12 ++-
>>   
>> OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf                          
>> | 43 ++++++++++
>>   
>> OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c                            
>> | 51 ++++++++++++
>>   
>> OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c                             
>> | 62 +++++++++++++++
>>   
>> OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c                               
>> | 84 +++++---------------
>>   9 files changed, 209 insertions(+), 73 deletions(-)
>>   rename OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => 
>> BaseResetSystemLib.inf} (65%)
>>   create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
>>   create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
>>   create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c
>>
> 


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Laszlo Ersek 4 years ago
On 04/17/20 18:19, Philippe Mathieu-Daudé wrote:
> On 4/17/20 5:59 PM, Ard Biesheuvel wrote:
>> On 4/17/20 5:37 PM, Laszlo Ersek wrote:
>>> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
>>> Repo:   https://pagure.io/lersek/edk2.git
>>> Branch: rsl_cleanup
>>>
>>> Rebecca's
>>>
>>>    [PATCH 02/13] OvmfPkg: support powering off bhyve guests
>>>
>>> at
>>>
>>>    https://edk2.groups.io/g/devel/message/57450
>>>   
>>> http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
>>>
>>>
>>> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
>>> let us add a simple bhyve-specific instance (later), and also allows us
>>> to fix a long time dormant bug (now).
>>>
>>> Cc: Anthony Perard <anthony.perard@citrix.com>
>>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>>> Cc: Julien Grall <julien@xen.org>
>>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>>> Cc: Rebecca Cran <rebecca@bsdio.com>
>>>
>>> Thanks,
>>> Laszlo
>>>
>>> Laszlo Ersek (6):
>>>    OvmfPkg/ResetSystemLib: wrap long lines
>>>    OvmfPkg/ResetSystemLib: clean up library dependencies
>>>    OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>>>    OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>>>    OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>>>    OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
>>>
>>
>> For the series,
>>
>> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
>>
>> One nit: putting a diff block inside the commit log [6/6] doesn't help
>> legibility a lot, and the issue of not being able to access memory
>> that is not mapped for runtime is so basic that it doesn't require
>> that level of detail to describe a reproducer and the Linux kernel log
>> output when the issue is triggered.
> 
> Personally I find the kernel log relevant, it will help to understand th
> e patch when looking at it in >5years from now.

Is it acceptable to both of you (Phil and Ard) if I remove the third
note from the 6/6 commit message, but paste it into a new comment on
<https://bugzilla.tianocore.org/show_bug.cgi?id=2675>?

Thanks!
Laszlo


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Philippe Mathieu-Daudé 4 years ago
On 4/20/20 11:48 AM, Laszlo Ersek wrote:
> On 04/17/20 18:19, Philippe Mathieu-Daudé wrote:
>> On 4/17/20 5:59 PM, Ard Biesheuvel wrote:
>>> On 4/17/20 5:37 PM, Laszlo Ersek wrote:
>>>> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
>>>> Repo:   https://pagure.io/lersek/edk2.git
>>>> Branch: rsl_cleanup
>>>>
>>>> Rebecca's
>>>>
>>>>     [PATCH 02/13] OvmfPkg: support powering off bhyve guests
>>>>
>>>> at
>>>>
>>>>     https://edk2.groups.io/g/devel/message/57450
>>>>    
>>>> http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
>>>>
>>>>
>>>> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
>>>> let us add a simple bhyve-specific instance (later), and also allows us
>>>> to fix a long time dormant bug (now).
>>>>
>>>> Cc: Anthony Perard <anthony.perard@citrix.com>
>>>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>>>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>>>> Cc: Julien Grall <julien@xen.org>
>>>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>>>> Cc: Rebecca Cran <rebecca@bsdio.com>
>>>>
>>>> Thanks,
>>>> Laszlo
>>>>
>>>> Laszlo Ersek (6):
>>>>     OvmfPkg/ResetSystemLib: wrap long lines
>>>>     OvmfPkg/ResetSystemLib: clean up library dependencies
>>>>     OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>>>>     OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>>>>     OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>>>>     OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
>>>>
>>>
>>> For the series,
>>>
>>> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
>>>
>>> One nit: putting a diff block inside the commit log [6/6] doesn't help
>>> legibility a lot, and the issue of not being able to access memory
>>> that is not mapped for runtime is so basic that it doesn't require
>>> that level of detail to describe a reproducer and the Linux kernel log
>>> output when the issue is triggered.
>>
>> Personally I find the kernel log relevant, it will help to understand th
>> e patch when looking at it in >5years from now.
> 
> Is it acceptable to both of you (Phil and Ard) if I remove the third
> note from the 6/6 commit message, but paste it into a new comment on
> <https://bugzilla.tianocore.org/show_bug.cgi?id=2675>?

Certainly.

Personal note: I usually try to find answers to my questions on the 
mailing list archives, usually they are already answered (even often 
with many details!). I noticed with other (smaller) projects that moved 
to GitLab that 'googling' similarly is not very practical, eventually 
after learning something that looks like a mix of SQL and JSON I could 
find some information in failed merge request comments... Nothing as 
easy as grepping my local MAILBOX (which, by the way, works offline 
too). Having that in mind (that mailing list archives are a thing from 
the previous century and are going to disappear) I prefer to keep all 
the information in the commit message. There is always a trade off.

I'm not sure the Tianocore Bugzilla will make sense once EDK2 move to a 
git forge, it seems duplicating efforts.

My 2 cents.

> Thanks!
> Laszlo
> 


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Laszlo Ersek 4 years ago
On 04/17/20 17:59, Ard Biesheuvel wrote:
> On 4/17/20 5:37 PM, Laszlo Ersek wrote:
>> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
>> Repo:   https://pagure.io/lersek/edk2.git
>> Branch: rsl_cleanup
>>
>> Rebecca's
>>
>>    [PATCH 02/13] OvmfPkg: support powering off bhyve guests
>>
>> at
>>
>>    https://edk2.groups.io/g/devel/message/57450
>>   
>> http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
>>
>>
>> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
>> let us add a simple bhyve-specific instance (later), and also allows us
>> to fix a long time dormant bug (now).
>>
>> Cc: Anthony Perard <anthony.perard@citrix.com>
>> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
>> Cc: Jordan Justen <jordan.l.justen@intel.com>
>> Cc: Julien Grall <julien@xen.org>
>> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
>> Cc: Rebecca Cran <rebecca@bsdio.com>
>>
>> Thanks,
>> Laszlo
>>
>> Laszlo Ersek (6):
>>    OvmfPkg/ResetSystemLib: wrap long lines
>>    OvmfPkg/ResetSystemLib: clean up library dependencies
>>    OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>>    OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>>    OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>>    OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
>>
> 
> For the series,
> 
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
> 
> One nit: putting a diff block inside the commit log [6/6] doesn't help
> legibility a lot, and the issue of not being able to access memory that
> is not mapped for runtime is so basic that it doesn't require that level
> of detail to describe a reproducer and the Linux kernel log output when
> the issue is triggered.

Thanks! I will remove the third note altogether (the one that starts
with "The bug is not easy to trigger in common setups...").

Thanks!
Laszlo


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Laszlo Ersek 4 years ago
On 04/17/20 17:37, Laszlo Ersek wrote:
> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
> Repo:   https://pagure.io/lersek/edk2.git
> Branch: rsl_cleanup
> 
> Rebecca's
> 
>   [PATCH 02/13] OvmfPkg: support powering off bhyve guests
> 
> at
> 
>   https://edk2.groups.io/g/devel/message/57450
>   http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
> 
> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
> let us add a simple bhyve-specific instance (later), and also allows us
> to fix a long time dormant bug (now).
> 
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Julien Grall <julien@xen.org>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Rebecca Cran <rebecca@bsdio.com>
> 
> Thanks,
> Laszlo
> 
> Laszlo Ersek (6):
>   OvmfPkg/ResetSystemLib: wrap long lines
>   OvmfPkg/ResetSystemLib: clean up library dependencies
>   OvmfPkg/ResetSystemLib: improve coding style in ResetSystem()
>   OvmfPkg/ResetSystemLib: factor out ResetShutdown()
>   OvmfPkg/ResetSystemLib: rename to BaseResetSystemLib
>   OvmfPkg/ResetSystemLib: introduce the DxeResetSystemLib instance
> 
>  OvmfPkg/OvmfPkgIa32.dsc                                                       |  8 +-
>  OvmfPkg/OvmfPkgIa32X64.dsc                                                    |  8 +-
>  OvmfPkg/OvmfPkgX64.dsc                                                        |  8 +-
>  OvmfPkg/OvmfXen.dsc                                                           |  6 +-
>  OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} | 12 ++-
>  OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf                          | 43 ++++++++++
>  OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c                            | 51 ++++++++++++
>  OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c                             | 62 +++++++++++++++
>  OvmfPkg/Library/ResetSystemLib/ResetSystemLib.c                               | 84 +++++---------------
>  9 files changed, 209 insertions(+), 73 deletions(-)
>  rename OvmfPkg/Library/ResetSystemLib/{ResetSystemLib.inf => BaseResetSystemLib.inf} (65%)
>  create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetSystemLib.inf
>  create mode 100644 OvmfPkg/Library/ResetSystemLib/BaseResetShutdown.c
>  create mode 100644 OvmfPkg/Library/ResetSystemLib/DxeResetShutdown.c
> 

Merged as commit range c6a60cf4b990..93f6df5f3b25, via
<https://github.com/tianocore/edk2/pull/538>.

Thanks
Laszlo


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

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

Re: [edk2-devel] [PATCH 0/6] OvmfPkg/ResetSystemLib: clean up, refactor, fix
Posted by Rebecca Cran 4 years ago
On 4/17/20 9:37 AM, Laszlo Ersek wrote:

> Ref:    https://bugzilla.tianocore.org/show_bug.cgi?id=2675
> Repo:   https://pagure.io/lersek/edk2.git
> Branch: rsl_cleanup
>
> Rebecca's
>
>    [PATCH 02/13] OvmfPkg: support powering off bhyve guests
>
> at
>
>    https://edk2.groups.io/g/devel/message/57450
>    http://mid.mail-archive.com/e4e9b29189b83076e1d1a0b9c989938f5226cab6.1586991816.git.rebecca@bsdio.com
>
> made me realize OvmfPkg/ResetSystemLib should be refreshed. This will
> let us add a simple bhyve-specific instance (later), and also allows us
> to fix a long time dormant bug (now).
>
> Cc: Anthony Perard <anthony.perard@citrix.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Julien Grall <julien@xen.org>
> Cc: Philippe Mathieu-Daudé <philmd@redhat.com>
> Cc: Rebecca Cran <rebecca@bsdio.com>
For the series,

Reviewed-by: Rebecca Cran <rebecca@bsdio.com>


-- 

Rebecca Cran



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

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