From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.openvz.org (mail.openvz.org [69.168.225.77]) by lore.virtuozzo.com (Postfix) with ESMTPS id 1BB1A80031 for ; Thu, 19 Nov 2026 08:19:20 +0000 (UTC) Received: from mail.openvz.org (localhost [127.0.0.1]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJ8H2sO003917; Thu, 19 Nov 2026 11:17:03 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJ8H2sO003917 Authentication-Results: mail.openvz.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=virtuozzo.com header.i=@virtuozzo.com header.b="STBHgO6t" Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by mail.openvz.org (8.14.4/8.14.4) with ESMTP id 6AJ8H0Cb003901 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=FAIL) for ; Thu, 19 Nov 2026 11:17:00 +0300 DKIM-Filter: OpenDKIM Filter v2.11.0 mail.openvz.org 6AJ8H0Cb003901 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-49090fde23aso1293534f8f.2 for ; Thu, 19 Nov 2026 00:17:00 -0800 (PST) X-Gm-Message-State: APuU4Z/YO7H3zkuO1gVrtktTo10U5j1JeS7ajqFhOJsAarxauOoaLpwP iAeTPirHYv+d6n0vvjX/nRVWv8Z6OsKHNwaLnCyCgusia5DfB4U+sQC/fdxIIvIExQ+vb6xJThu iUe2E9M6Map2dwI/4App3w1P3kMGglliTGApX6XOTHMCVk4GD9/MXwQ== X-Gm-Gg: AZFdTZdb/aFYPY3oMfAZFVU6cFekIEgnKpyaO+25B6iIw9sEN8liTHwMK3KSbTTrelu bOe7uycv+6JgFeqHIAdFgMunf0zQBFA7MYfJMQ9Y/vMy+PgwqQVVT0VEzlvGN+KUd0pCDrh5cTa ogE9l517HX52kC2e+cedIIdEXQGHr/7O58y3D5YDu0yKRFkE4HTKjAXsAT4knkAnqRYGKlNBW0C NCJ114AxmpG0m1yK2owl97Q4Y2KFCbio+59tCEeQSxDPaSbNLhZPC8Z2JVbj9XD5yjzoWW+IIE2 2++3VhBPwV2wwI9nmBig+f/8MsRmmz0mBK79OM1rN6286v89C4XJsVKhxExHJ39dAVNxZI3dehS j9P6kpxAYFvpIi2NQ4XI6f1fDLPqv5Q== X-Received: by 2002:a5d:5d0d:0:b0:4a7:9630:7b5a with SMTP id ffacd0b85a97d-4a7963080e7mr7644183f8f.47.1795076220250; Thu, 19 Nov 2026 00:17:00 -0800 (PST) X-Received: by 2002:a5d:5d0d:0:b0:4a7:9630:7b5a with SMTP id ffacd0b85a97d-4a7963080e7mr7644121f8f.47.1795076219683; Thu, 19 Nov 2026 00:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1795076219; cv=none; d=google.com; s=arc-20260327; b=Z1bypBLB0HKBJchjMTaZWhg+yf+bamZQ3PCslTfg1/8IMNCZABUQBdHnBUE6mWHew/ eTm67QxGbyYN+MsywHQ9gsWenjY+y6GS95l2xBbOFK+fsUPKz18LxKWN4AOdCYqrnQ+G srCeMLByE426F5ebQifYkTPlJwaiBfJ4lNLcbF4GzjIXiObMkqCLIm6PMZDSHWkxL44G SpoTLG9q1yqPNrz/xC8q6rHgndiF9k0YguFG8SxuTIPVH8xwh8ueD1wYb9F6r05vfbNm j1zVZoEsb3MylV3X1YblrchVbMcGzk7tHGxl7vreBIlZCPINGklU35OQpWTjRXopdKvF 6MMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=UD8uddtckuibXg3MOLb2JBAG4LkEvam27NZPfA1y4xA=; fh=DyeaEZPHV4v28duuFe2DGUlI2E+s+GAoStNDx0CyIL0=; b=GqKQuZFIq2YBRsvxFvF0f19ZmrI8TnIiqk3F7SLvRB1mJxDglLIj64rTP3sAeqnO/G h7TC5x8sNk/Yy1J67h4oAiXZQ6I/bBT98losf1+lQQdxkV+0jtXCr4egBX6/CgcwrH1O UmOw3CFdKafJ+pEKPu8VyJrL+M7gj5Di4BBzXzYo4h7OAgDLXn0ixKkNflE481xLYu4f Pj+3XmPDRr/aldoyCPIhKeopiDDWO2AmLGfO9gDBJCDJqmJ+40bqK+PEGXHgU5kR6/2n k4+4LYopCP+TjeCEgwRupyf8kXaSDh0YhYkFffL+k2XHUiJzUL7MZwNd1OmirQW/oRve u0uw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=STBHgO6t; spf=pass (google.com: domain of mirian.shilakadze@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=mirian.shilakadze@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com Received: from relay.virtuozzo.com (relay.virtuozzo.com. [130.117.225.111]) by mx.google.com with ESMTPS id ffacd0b85a97d-4a657d54ad3si9798302f8f.167.2026.11.19.00.16.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Nov 2026 00:16:59 -0800 (PST) Received-SPF: pass (google.com: domain of mirian.shilakadze@virtuozzo.com designates 130.117.225.111 as permitted sender) client-ip=130.117.225.111; Authentication-Results: mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=relay header.b=STBHgO6t; spf=pass (google.com: domain of mirian.shilakadze@virtuozzo.com designates 130.117.225.111 as permitted sender) smtp.mailfrom=mirian.shilakadze@virtuozzo.com; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=virtuozzo.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=virtuozzo.com; s=relay; h=MIME-Version:Message-ID:Date:Subject:From: Content-Type; bh=UD8uddtckuibXg3MOLb2JBAG4LkEvam27NZPfA1y4xA=; b=STBHgO6tc8Vu UFPN+L9txjPLdl9gpfOWt+m46pYFJ1+dhgGDz+IDTC7P64xlqSlqxDwmWSTMhhd6fJxvTa0xpAyMF nGHtXaVlLMR7dpcemkXmKAoISqLbGE9jh+h5V9Sw98vvHCsQzTCNkInWA/MTUlWpLUVvuyEYdjAG2 A3zxgh66nP1/jzu+v170+N9acXbZXNENZuNsSdP5KrPkZm+hA/Ok4qQp5l2k2PXeGzotLAM3YnTb/ 8i1LAjR7MogGI2H8YpbsXDfbBq3DVhM/PvJqmKySBdnyB+TMSEpuM4wtP0LrMXIeHNYVaioeDL5RI +BnavOWZst9xp/Y06IQxaw==; Received: from ch-demo-asa.virtuozzo.com ([130.117.225.8] helo=localhost.localdomain) by relay.virtuozzo.com with esmtp (Exim 4.96) (envelope-from ) id 1xTxFv-008ys0-2R; Thu, 19 Nov 2026 09:16:57 +0100 From: Mirian Shilakadze To: khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com Date: Thu, 19 Nov 2026 12:16:25 +0400 Message-ID: <20261119081654.484107-1-mirian.shilakadze@virtuozzo.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 X-OZ-Fwd: true Cc: devel@openvz.org Subject: [Devel] [PATCH hci-8.2 v2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/ X-BeenThere: devel@openvz.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: OpenVZ development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: devel-bounces@openvz.org Errors-To: devel-bounces@openvz.org 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