All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
* [Devel] [PATCH hci-8.2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/
@ 2026-11-19  7:48 Mirian Shilakadze
  2026-11-19  7:48 ` [Devel] [PATCH hci-8.2 1/3] selftests/ve: open the host cgroup2 mount instead of creating one Mirian Shilakadze
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Mirian Shilakadze @ 2026-11-19  7:48 UTC (permalink / raw)
  To: khorenko, vasileios.almpanis; +Cc: devel

ve_devcg_bpf and ve_printk live in their own selftest directories with
private copies of the helpers in ve_selftest.h. This series moves both
into tools/testing/selftests/ve/ and drops the copies. No test logic
change.
- 1/3 makes ve_selftest.h open the host cgroup2 mount instead of
  creating one. Creating it cleared nsdelegate and memory_recursiveprot
  on the host /sys/fs/cgroup every time a ve test ran.
- 2/3 moves ve_devcg_bpf
- 3/3 moves ve_printk

The kernel spec builds ve_devcg_bpf and ve_printk as targets of their
own, and with FORCE_TARGETS a missing directory fails the build. So the
spec has to drop both in the same release, a vzkernel.vzspecs change
that goes separately. The ve target is already built and runs in CI,
the moved tests run with it.

Tested on vz10 kernel 6.12.0-211.75.1.26.2, old layout against new: all
53 cases give the same verdicts. The two ve_ns_owner cases fail in both
without the VSTOR-156012 fix. The host cgroup2 mount keeps nsdelegate
and memory_recursiveprot with the series and loses both without it.

https://virtuozzo.atlassian.net/browse/VSTOR-139515

Mirian Shilakadze (3):
  selftests/ve: open the host cgroup2 mount instead of creating one
  selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h
  selftests/ve: move ve_printk into ve/ and reuse ve_selftest.h

 tools/testing/selftests/Makefile              |   2 -
 tools/testing/selftests/ve/.gitignore         |   4 +
 tools/testing/selftests/ve/Makefile           |   6 +
 .../selftests/{ve_printk => ve}/test_segf.c   |   0
 .../selftests/{ve_printk => ve}/test_trap.c   |   0
 tools/testing/selftests/ve/ve_aio_ring_test.c |   2 +-
 .../selftests/ve/ve_cpuid_override_test.c     |   6 +-
 .../{ve_devcg_bpf => ve}/ve_devcg_bpf_test.c  |  89 +--------
 .../selftests/ve/ve_mount_accounting_test.c   |   2 +-
 tools/testing/selftests/ve/ve_ns_owner_test.c |   2 +-
 .../selftests/ve/ve_numa_migrate_test.c       |   4 +-
 .../ve/ve_numa_syscalls_prohibited_test.c     |   2 +-
 tools/testing/selftests/ve/ve_perms_test.c    |   2 +-
 .../{ve_printk => ve}/ve_printk_test.c        | 176 ++++--------------
 tools/testing/selftests/ve/ve_selftest.h      |  36 ++--
 .../testing/selftests/ve/ve_tmpfs_mpol_test.c |   2 +-
 tools/testing/selftests/ve/ve_vtty_stress.c   |   4 +-
 .../testing/selftests/ve_devcg_bpf/.gitignore |   1 -
 tools/testing/selftests/ve_devcg_bpf/Makefile |  10 -
 tools/testing/selftests/ve_printk/.gitignore  |   3 -
 tools/testing/selftests/ve_printk/Makefile    |   8 -
 21 files changed, 88 insertions(+), 273 deletions(-)
 rename tools/testing/selftests/{ve_printk => ve}/test_segf.c (100%)
 rename tools/testing/selftests/{ve_printk => ve}/test_trap.c (100%)
 rename tools/testing/selftests/{ve_devcg_bpf => ve}/ve_devcg_bpf_test.c (90%)
 rename tools/testing/selftests/{ve_printk => ve}/ve_printk_test.c (77%)
 delete mode 100644 tools/testing/selftests/ve_devcg_bpf/.gitignore
 delete mode 100644 tools/testing/selftests/ve_devcg_bpf/Makefile
 delete mode 100644 tools/testing/selftests/ve_printk/.gitignore
 delete mode 100644 tools/testing/selftests/ve_printk/Makefile

-- 
2.47.3

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

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

end of thread, other threads:[~2026-11-19  7:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-19  7:48 [Devel] [PATCH hci-8.2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/ Mirian Shilakadze
2026-11-19  7:48 ` [Devel] [PATCH hci-8.2 1/3] selftests/ve: open the host cgroup2 mount instead of creating one Mirian Shilakadze
2026-11-19  7:53   ` no-reply
2026-11-19  7:48 ` [Devel] [PATCH hci-8.2 2/3] selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h Mirian Shilakadze
2026-11-19  7:54   ` no-reply
2026-11-19  7:48 ` [Devel] [PATCH hci-8.2 3/3] selftests/ve: move ve_printk " Mirian Shilakadze
2026-11-19  7:56   ` no-reply

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.