All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/4] xen/x86: add testing for self modifying code and livepatch
@ 2023-12-15 11:18 Roger Pau Monne
  2023-12-15 11:18 ` [PATCH v4 1/4] x86/livepatch: align functions to ensure minimal distance between entry points Roger Pau Monne
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Roger Pau Monne @ 2023-12-15 11:18 UTC (permalink / raw)
  To: xen-devel
  Cc: Roger Pau Monne, Andrew Cooper, George Dunlap, Jan Beulich,
	Julien Grall, Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
	Ross Lagerwall, Bertrand Marquis, Michal Orzel, Volodymyr Babchuk,
	Anthony PERARD, Juergen Gross, Doug Goldstein

Hello,

The following series contains a misc set of fixes and improvements.

There's one improvement for the hypervisor to set function alignment for
livepatch builds in order to make sure there's always enough space in a
function to be live-patched.

Following patches attempt to introduce a set of tests for self modifying
code, currently one test using the alternatives framework, and one test
for livepatch.

Last patch hooks the newly introduced livepatch test into the gitlab CI
using QEMU and an Alpine Linux dom0:

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

Roger Pau Monne (4):
  x86/livepatch: align functions to ensure minimal distance between
    entry points
  xen/x86: introduce self modifying code test
  x86/livepatch: introduce a basic live patch test to gitlab CI
  automation: add x86-64 livepatching test

 automation/gitlab-ci/build.yaml               |  9 +++
 automation/gitlab-ci/test.yaml                |  8 +++
 automation/scripts/build-livepatch            | 27 +++++++
 .../scripts/qemu-alpine-x86_64-livepatch.sh   | 68 ++++++++++++++++++
 tools/include/xenctrl.h                       |  2 +
 tools/libs/ctrl/xc_misc.c                     | 14 ++++
 tools/misc/xen-livepatch.c                    | 29 ++++++++
 xen/Kconfig                                   | 19 +++++
 xen/Makefile                                  |  3 +
 xen/arch/arm/livepatch.c                      |  2 +
 xen/arch/arm/xen.lds.S                        |  4 ++
 xen/arch/x86/Kconfig                          |  1 +
 xen/arch/x86/Makefile                         |  1 +
 xen/arch/x86/include/asm/test.h               | 37 ++++++++++
 xen/arch/x86/livepatch.c                      |  4 ++
 xen/arch/x86/setup.c                          |  3 +
 xen/arch/x86/sysctl.c                         |  9 +++
 xen/arch/x86/test/Makefile                    |  3 +
 xen/arch/x86/test/smoc-lp-alt.c               | 24 +++++++
 xen/arch/x86/test/smoc-lp.c                   | 24 +++++++
 xen/arch/x86/test/smoc.c                      | 70 +++++++++++++++++++
 xen/arch/x86/xen.lds.S                        |  4 ++
 xen/common/Kconfig                            |  5 +-
 xen/common/kernel.c                           |  5 +-
 xen/include/public/sysctl.h                   | 13 ++++
 xen/include/xen/lib.h                         |  1 +
 26 files changed, 386 insertions(+), 3 deletions(-)
 create mode 100755 automation/scripts/build-livepatch
 create mode 100755 automation/scripts/qemu-alpine-x86_64-livepatch.sh
 create mode 100644 xen/arch/x86/include/asm/test.h
 create mode 100644 xen/arch/x86/test/Makefile
 create mode 100644 xen/arch/x86/test/smoc-lp-alt.c
 create mode 100644 xen/arch/x86/test/smoc-lp.c
 create mode 100644 xen/arch/x86/test/smoc.c

-- 
2.43.0



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-12-20  9:28 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-15 11:18 [PATCH v4 0/4] xen/x86: add testing for self modifying code and livepatch Roger Pau Monne
2023-12-15 11:18 ` [PATCH v4 1/4] x86/livepatch: align functions to ensure minimal distance between entry points Roger Pau Monne
2023-12-19 16:31   ` Jan Beulich
2023-12-19 19:46   ` Andrew Cooper
2023-12-20  8:32     ` Roger Pau Monné
2023-12-20  9:03       ` Jan Beulich
2023-12-20  9:19         ` Roger Pau Monné
2023-12-15 11:18 ` [PATCH v4 2/4] xen/x86: introduce self modifying code test Roger Pau Monne
2023-12-19 16:35   ` Jan Beulich
2023-12-19 20:31   ` Andrew Cooper
2023-12-20  9:08     ` Roger Pau Monné
2023-12-20  9:12       ` Jan Beulich
2023-12-20  9:25         ` Roger Pau Monné
2023-12-20  9:27           ` Jan Beulich
2023-12-20  9:09     ` Jan Beulich
2023-12-20  9:28       ` Roger Pau Monné
2023-12-15 11:18 ` [PATCH v4 3/4] x86/livepatch: introduce a basic live patch test to gitlab CI Roger Pau Monne
2023-12-15 11:18 ` [PATCH v4 4/4] automation: add x86-64 livepatching test Roger Pau Monne

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.