mbox series

[v2,0/4] make build of vm_event/mem_access/monitor optional

Message ID cover.1737452864.git.Sergiy_Kibrik@epam.com (mailing list archive)
Headers show
Series make build of vm_event/mem_access/monitor optional | expand

Message

Sergiy Kibrik Jan. 21, 2025, 10:17 a.m. UTC
This series aims to provide a possibility to build Xen without mem_access and
related features. It is already largely covered by corresponding
CONFIG_MEM_ACCESS option, yet there're still some parts remaining.
Hopefully this would help to reduce dead code a bit.

As coverage of MEM_ACCESS config option begins to extend beyond actual
mem_access code it has been suggested to rename it into VM_EVENT, as a more
general option controlling mem_access, vm_event and monitor code.

v1 patch here:
https://lore.kernel.org/xen-devel/20241230063051.3332332-1-Sergiy_Kibrik@epam.com/

  -Sergiy

Sergiy Kibrik (3):
  xen: kconfig: rename MEM_ACCESS -> VM_EVENT
  x86:monitor: control monitor.c build with CONFIG_VM_EVENT option
  automation: rename CONFIG_MEM_ACCESS -> CONFIG_VM_EVENT

Stefano Stabellini (1):
  xen: mem_access: conditionally compile vm_event.c & monitor.c

 automation/eclair_analysis/xen_arm_config |  2 +-
 automation/eclair_analysis/xen_x86_config |  2 +-
 automation/gitlab-ci/build.yaml           |  2 +-
 xen/arch/arm/Makefile                     |  6 +++---
 xen/arch/arm/configs/tiny64_defconfig     |  2 +-
 xen/arch/arm/include/asm/mem_access.h     |  4 ++--
 xen/arch/arm/vsmc.c                       |  3 ++-
 xen/arch/ppc/configs/ppc64_defconfig      |  2 +-
 xen/arch/riscv/configs/tiny64_defconfig   |  2 +-
 xen/arch/x86/Makefile                     |  2 +-
 xen/arch/x86/mm/Makefile                  |  2 +-
 xen/common/Kconfig                        |  2 +-
 xen/common/Makefile                       |  6 +++---
 xen/common/domctl.c                       |  2 +-
 xen/include/xen/mem_access.h              |  6 +++---
 xen/include/xen/monitor.h                 |  9 +++++++++
 xen/include/xen/vm_event.h                | 14 +++++++++++---
 xen/include/xsm/dummy.h                   |  2 +-
 xen/include/xsm/xsm.h                     |  4 ++--
 xen/xsm/dummy.c                           |  2 +-
 xen/xsm/flask/hooks.c                     |  4 ++--
 21 files changed, 49 insertions(+), 31 deletions(-)