mbox series

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

Message ID 20240227112528.4540-1-roger.pau@citrix.com (mailing list archive)
Headers show
Series xen/livepatch: fixes for the pre-apply / post-revert hooks | expand

Message

Roger Pau Monné Feb. 27, 2024, 11:25 a.m. UTC
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(-)