Skip to content

xen/livepatch: fixes for the pre-apply / post-revert hooks

Roger Pau Monne xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 4 repliesIn review
  2. v15 patches 13 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5xen/livepatch: register livepatch regions when loadedxen/common/livepatch.c xen/common/virtual_region.c+18 -282 replies
2/5xen/livepatch: search for symbols in all loaded payloadsxen/common/livepatch.c+17 -320 replies
3/5xen/livepatch: fix norevert test attempt to open-code revertxen/common/livepatch.c xen/include/xen/livepatch.h xen/test/livepatch/xen_action_hooks_norevert.c+46 -491 reply
4/5xen/livepatch: properly build the noapply and norevert testsxen/test/livepatch/Makefile+2 -20 replies
5/5xen/livepatch: group and document payload hooksxen/include/xen/livepatch_payload.h+29 -81 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchRoss Lagerwall
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.44.0