From: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>
To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: [Devel] [PATCH hci-8.2 v2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/
Date: Thu, 19 Nov 2026 12:16:25 +0400 [thread overview]
Message-ID: <20261119081654.484107-1-mirian.shilakadze@virtuozzo.com> (raw)
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. The test cases
are unchanged.
- 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
Changes since v1, after Sashiko's review:
- the commit messages no longer mention the spec or kselftest-list.txt,
and say the test cases are unchanged instead of "no test logic change"
- 1/3 says the tests now need the host cgroup2 mount at /sys/fs/cgroup,
and the two ve_cpuid_override log messages say "cannot open cgroup2"
- 2/3 drops TOOLS_INCLUDES, the installed kernel headers have
orig_prog_len as well, and says how the shared helpers change the
creation and removal of the VE cgroup
- open_cg2_fd() still fails rather than skips without cgroup2 at
/sys/fs/cgroup, every vz10 host has it there
v1: http://lore.virtuozzo.com/20261119074808.478064-1-mirian.shilakadze@virtuozzo.com
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:
https://bitbucket.org/virtuozzocore/vzkernel.vzspecs/pull-requests/82
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 | 3 +
.../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 | 10 +-
.../{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, 87 insertions(+), 275 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
next reply other threads:[~2026-11-19 8:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 8:16 Mirian Shilakadze [this message]
2026-11-19 8:16 ` [Devel] [PATCH hci-8.2 v2 1/3] selftests/ve: open the host cgroup2 mount instead of creating one Mirian Shilakadze
2026-11-19 8:21 ` no-reply
2026-11-19 17:00 ` Konstantin Khorenko
2026-11-19 8:16 ` [Devel] [PATCH hci-8.2 v2 2/3] selftests/ve: move ve_devcg_bpf into ve/ and reuse ve_selftest.h Mirian Shilakadze
2026-11-19 8:20 ` no-reply
2026-11-19 17:00 ` Konstantin Khorenko
2026-11-19 8:16 ` [Devel] [PATCH hci-8.2 v2 3/3] selftests/ve: move ve_printk " Mirian Shilakadze
2026-11-19 8:22 ` no-reply
2026-11-19 17:00 ` Konstantin Khorenko
2026-11-19 17:00 ` [Devel] [PATCH hci-8.2 v2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/ Konstantin Khorenko
2026-11-19 17:01 ` Konstantin Khorenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261119081654.484107-1-mirian.shilakadze@virtuozzo.com \
--to=mirian.shilakadze@virtuozzo.com \
--cc=devel@openvz.org \
--cc=khorenko@virtuozzo.com \
--cc=vladimir.riabchun@virtuozzo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox