Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: Chinmay Rath <rathc@linux.ibm.com>
Cc: npiggin@gmail.com, harshpb@linux.ibm.com, lvivier@redhat.com,
	linuxppc-dev@lists.ozlabs.org, kvm@vger.kernel.org,
	andrew.jones@linux.dev, sbhat@linux.ibm.com
Subject: Re: [kvm-unit-tests PATCH 4/6] powerpc: gitlab CI update
Date: Thu, 9 Jul 2026 08:46:12 +0200	[thread overview]
Message-ID: <bd10e435-de06-4b67-962c-b520a43a8280@redhat.com> (raw)
In-Reply-To: <20260708105122.1177210-5-rathc@linux.ibm.com>

On 08/07/2026 12.51, Chinmay Rath wrote:
> From: Nicholas Piggin <npiggin@gmail.com>
> 
> Adds a few additional tests that are known to work in CI.
> 
> To control overhead, ppc64be is used to test 64k page size, ppc64le is
> used to test 4k page size.
> 
> Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
> Signed-off-by: Chinmay Rath <rathc@linux.ibm.com>
> ---
>   .gitlab-ci.yml        | 19 ++++++++++++++-----
>   powerpc/unittests.cfg |  9 ++++++++-
>   2 files changed, 22 insertions(+), 6 deletions(-)
> 
> diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
> index ab1be5f4..b28d1eb5 100644
> --- a/.gitlab-ci.yml
> +++ b/.gitlab-ci.yml
> @@ -190,18 +190,21 @@ build-ppc64be:
>    - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu nmap-ncat
>    - mkdir build
>    - cd build
> - - ../configure --arch=ppc64 --endian=big --cross-prefix=powerpc64-linux-gnu-
> + - ../configure --arch=ppc64 --endian=big --page-size=64k --cross-prefix=powerpc64-linux-gnu-
>    - make -j2
> - - ACCEL=tcg ./run_tests.sh
> + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh
>         atomics
> +      atomics-migration
>         emulator
>         interrupts
>         mmu
> +      pmu
>         rtas-get-time-of-day
>         rtas-get-time-of-day-base
>         rtas-set-time-of-day
>         selftest-migration
>         selftest-migration-skip
> +      selftest-migration-ci
>         selftest-setup
>         sieve
>         smp
> @@ -209,10 +212,12 @@ build-ppc64be:
>         spapr_hcall
>         spapr_vpa
>         sprs
> +      sprs-migration
>         timebase
>         timebase-icount
>         | tee results.txt
> - - if grep -q FAIL results.txt ; then exit 1 ; fi
> + - grep -q PASS results.txt && ! grep -q FAIL results.txt
> +

Remove the superfluous empty line, please. We don't do this in other spots 
between the jobs in this file, so let's stay consistent here, too.

>   
>   build-ppc64le:
>    extends: .intree_template
> @@ -220,16 +225,19 @@ build-ppc64le:
>    - dnf install -y qemu-system-ppc gcc-powerpc64-linux-gnu nmap-ncat
>    - ./configure --arch=ppc64 --endian=little --cross-prefix=powerpc64-linux-gnu-
>    - make -j2
> - - ACCEL=tcg ./run_tests.sh
> + - ACCEL=tcg MAX_SMP=8 ./run_tests.sh
>         atomics
> +      atomics-migration
>         emulator
>         interrupts
>         mmu
> +      pmu
>         rtas-get-time-of-day
>         rtas-get-time-of-day-base
>         rtas-set-time-of-day
>         selftest-migration
>         selftest-migration-skip
> +      selftest-migration-ci
>         selftest-setup
>         sieve
>         smp
> @@ -237,10 +245,11 @@ build-ppc64le:
>         spapr_hcall
>         spapr_vpa
>         sprs
> +      sprs-migration
>         timebase
>         timebase-icount
>         | tee results.txt
> - - if grep -q FAIL results.txt ; then exit 1 ; fi
> + - grep -q PASS results.txt && ! grep -q FAIL results.txt
>   
>   build-riscv32:
>    extends: .outoftree_template
> diff --git a/powerpc/unittests.cfg b/powerpc/unittests.cfg
> index 60c73086..62630ead 100644
> --- a/powerpc/unittests.cfg
> +++ b/powerpc/unittests.cfg
> @@ -24,6 +24,14 @@ file = selftest-migration.elf
>   machine = pseries
>   groups = selftest migration
>   
> +# make a kvm-only version for CI for now
> +# TCG accel support with Qemu and distro release used in gitlab CI needs to checked.
> +[selftest-migration-ci]
> +file = selftest-migration.elf
> +machine = pseries
> +groups = nodefault selftest migration
> +accel = kvm

This does not make sense (or I don't understand it) - gitlab-CI currently 
only runs with TCG for the ppc64 jobs, so adding a separate test for this 
with "accel = kvm" just adds a job there that will always be skipped. What 
should this be good for?

>   [selftest-migration-skip]
>   file = selftest-migration.elf
>   machine = pseries
> @@ -94,7 +102,6 @@ accel = tcg,thread=single
>   
>   [atomics]
>   file = atomics.elf
> -smp = 2
Why are you removing the smp = 2 here? As far as I can see, the atomics test 
uses multiple CPUs, so this looks wrong?

  Thomas


  reply	other threads:[~2026-07-09  6:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-08 10:51 [kvm-unit-tests PATCH 0/6] powerpc improvements Chinmay Rath
2026-07-08 10:51 ` [kvm-unit-tests PATCH 1/6] powerpc: add pmu tests Chinmay Rath
2026-07-08 10:51 ` [kvm-unit-tests PATCH 2/6] configure: Make arch_libdir a first-class entity Chinmay Rath
2026-07-08 10:51 ` [kvm-unit-tests PATCH 3/6] powerpc: Remove remnants of ppc64 directory and build structure Chinmay Rath
2026-07-08 10:51 ` [kvm-unit-tests PATCH 4/6] powerpc: gitlab CI update Chinmay Rath
2026-07-09  6:46   ` Thomas Huth [this message]
2026-07-09 14:32     ` Harsh Prateek Bora
2026-07-09 15:16       ` Thomas Huth
2026-07-09 16:08         ` Harsh Prateek Bora
2026-07-09 16:33           ` Thomas Huth
2026-07-08 10:51 ` [kvm-unit-tests PATCH 5/6] scripts/arch-run.bash: Fix run_panic() success exit status Chinmay Rath
2026-07-08 10:51 ` [kvm-unit-tests PATCH 6/6] powerpc: Add a panic test Chinmay Rath

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=bd10e435-de06-4b67-962c-b520a43a8280@redhat.com \
    --to=thuth@redhat.com \
    --cc=andrew.jones@linux.dev \
    --cc=harshpb@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=lvivier@redhat.com \
    --cc=npiggin@gmail.com \
    --cc=rathc@linux.ibm.com \
    --cc=sbhat@linux.ibm.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