All Virtuozzo development lists (kernel + QEMU)
 help / color / mirror / Atom feed
From: no-reply@sashiko.virtuozzo.com
To: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>,
	khorenko@virtuozzo.com, vladimir.riabchun@virtuozzo.com
Cc: devel@openvz.org
Subject: Re: [Devel] [PATCH hci-8.2 v2 3/3] selftests/ve: move ve_printk into ve/ and reuse ve_selftest.h
Date: Thu, 19 Nov 2026 08:22:26 +0000	[thread overview]
Message-ID: <010701a1f2e65e5f-1647537d-1b66-4f9e-8f41-c5d0bcf5455e-000000@eu-central-1.amazonses.com> (raw)
In-Reply-To: <20261119081654.484107-4-mirian.shilakadze@virtuozzo.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] selftests/ve: x86-only test_trap/test_segf built unconditionally
  in ve Makefile
--

commit 52f33c00132204518cd88777f4c0fb239dd0a002
Author: Mirian Shilakadze <mirian.shilakadze@virtuozzo.com>

selftests/ve: move ve_printk into ve/ and reuse ve_selftest.h

The patch moves the ve_printk test and its two helper programs, test_segf and test_trap, into tools/testing/selftests/ve/. It also switches the test to the openat-based helpers from ve_selftest.h and removes the old ve_printk directory and its Makefile.

> diff --git a/tools/testing/selftests/ve/Makefile b/tools/testing/selftests/ve/Makefile
> --- a/tools/testing/selftests/ve/Makefile
> +++ b/tools/testing/selftests/ve/Makefile
> @@ -11,6 +11,8 @@ TEST_GEN_PROGS += ve_aio_ring_test
>  TEST_GEN_PROGS += ve_numa_syscalls_prohibited_test
>  TEST_GEN_PROGS += ve_tmpfs_mpol_test
>  TEST_GEN_PROGS += ve_devcg_bpf_test
> +TEST_GEN_PROGS += ve_printk_test
> +TEST_GEN_FILES += test_segf test_trap
>  
>  # CPUID faulting is x86-64 only. ARCH says "x86" for 32-bit too and lib.mk
>  # picks the clang target by its emptiness, so decide by the compiler.

[Severity: Low]
Should test_segf and test_trap be built unconditionally here?

test_trap.c uses __asm__("int3"), which does not assemble on non-x86 targets. test_segf.c also casts the 64-bit address 0xffffffffffffff00 to an int pointer. The Makefile already guards ve_cpuid_override_test for x86-64 just below this hunk, but these helpers have no such guard.

Before this patch, such a build failure only affected the separate ve_printk target. Now it breaks the whole ve selftest directory on non-x86 and 32-bit builds. Could the helpers and ve_printk_test go behind the same x86-64 check?

Carry the trailer below into the next revision and Sashiko will not review this patch again.

Reviewed-by: Sashiko <no-reply@sashiko.virtuozzo.com>

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261119081654.484107-2-mirian.shilakadze@virtuozzo.com?part=3

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

  reply	other threads:[~2026-11-19  8:23 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19  8:16 [Devel] [PATCH hci-8.2 v2 0/3] selftests/ve: move ve_devcg_bpf and ve_printk into ve/ Mirian Shilakadze
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 [this message]
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=010701a1f2e65e5f-1647537d-1b66-4f9e-8f41-c5d0bcf5455e-000000@eu-central-1.amazonses.com \
    --to=no-reply@sashiko.virtuozzo.com \
    --cc=devel@openvz.org \
    --cc=khorenko@virtuozzo.com \
    --cc=mirian.shilakadze@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 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.