[PATCH v2 0/5] xen/livepatch: fixes for the pre-apply / post-revert hooks

Roger Pau Monne posted 5 patches 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20240227112528.4540-1-roger.pau@citrix.com
xen/common/livepatch.c                        | 94 +++++++++++--------
xen/common/virtual_region.c                   | 42 ++++-----
xen/include/xen/livepatch.h                   | 32 +------
xen/include/xen/livepatch_payload.h           | 37 ++++++--
xen/test/livepatch/Makefile                   |  4 +-
.../livepatch/xen_action_hooks_norevert.c     | 22 +----
6 files changed, 112 insertions(+), 119 deletions(-)
[PATCH v2 0/5] xen/livepatch: fixes for the pre-apply / post-revert hooks
Posted by Roger Pau Monne 2 months ago
Hello,

The follow series contain a misc of fixes mostly related to the usage of
the pre-apply / post-revert hooks.  The norevert test is also fixed to
work as I think was expected.  Finally both the no{apply,revert}
tests are fixed to build properly, as the files where previously
unhooked from the build system completely.

I'm unsure how useful the apply and revert hooks really are, as without
calling the internal apply/revert functions the state of the payload
structure is quite likely inconsistent with the code expectations.

Thanks, Roger.

Roger Pau Monne (5):
  xen/livepatch: register livepatch regions when loaded
  xen/livepatch: search for symbols in all loaded payloads
  xen/livepatch: fix norevert test attempt to open-code revert
  xen/livepatch: properly build the noapply and norevert tests
  xen/livepatch: group and document payload hooks

 xen/common/livepatch.c                        | 94 +++++++++++--------
 xen/common/virtual_region.c                   | 42 ++++-----
 xen/include/xen/livepatch.h                   | 32 +------
 xen/include/xen/livepatch_payload.h           | 37 ++++++--
 xen/test/livepatch/Makefile                   |  4 +-
 .../livepatch/xen_action_hooks_norevert.c     | 22 +----
 6 files changed, 112 insertions(+), 119 deletions(-)

-- 
2.44.0