Skip to content

automation: add livepatch testing

Roger Pau Monne xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3automation/alpine: add elfutils-dev and coreutils for livepatch-build-toolsautomation/build/alpine/3.18.dockerfile+4 -02 replies
2/3livepatch: add a dummy hypercall for testing purposestools/include/xenctrl.h tools/libs/ctrl/xc_misc.c tools/misc/xen-livepatch.c +6 more+91 -11 reply
3/3automation: add x86-64 livepatching testautomation/gitlab-ci/build.yaml automation/gitlab-ci/test.yaml automation/scripts/build +1 more+108 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] automation: add livepatch testing

Hello,

The following series attempts to introduce some basic livepatch testing in the gitlab CI loop. Such testing will be more similar to what downstreams use, as the patch payload will be built using livepatch-build-tools.

A sample gitlab run can be found at:

https://gitlab.com/xen-project/people/royger/xen/-/pipelines/1082636267

The series introduces a new build and test steps.

Thanks, Roger.

Roger Pau Monne (3):
automation/alpine: add elfutils-dev and coreutils for
livepatch-build-tools
livepatch: add a dummy hypercall for testing purposes
automation: add x86-64 livepatching test

 automation/build/alpine/3.18.dockerfile       |  4 +
 automation/gitlab-ci/build.yaml               |  8 ++
 automation/gitlab-ci/test.yaml                |  8 ++
 automation/scripts/build                      | 13 +++
 .../scripts/qemu-alpine-x86_64-livepatch.sh   | 79 +++++++++++++++++++
 tools/include/xenctrl.h                       |  3 +
 tools/libs/ctrl/xc_misc.c                     | 14 ++++
 tools/misc/xen-livepatch.c                    | 25 ++++++
 xen/common/Makefile                           |  2 +-
 xen/common/livepatch-test.c                   | 20 +++++
 xen/common/livepatch.c                        |  4 +
 xen/include/public/sysctl.h                   |  7 ++
 xen/include/xen/livepatch.h                   |  4 +
 xen/test/livepatch/patches/test1.patch        | 13 +++
 14 files changed, 203 insertions(+), 1 deletion(-)
 create mode 100755 automation/scripts/qemu-alpine-x86_64-livepatch.sh
 create mode 100644 xen/common/livepatch-test.c
 create mode 100644 xen/test/livepatch/patches/test1.patch
Signature · 1 line
2.43.0