All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>, qemu-devel@nongnu.org
Cc: "Daniel Henrique Barboza" <dbarboza@ventanamicro.com>,
	qemu-s390x@nongnu.org, "Halil Pasic" <pasic@linux.ibm.com>,
	"Jiaxun Yang" <jiaxun.yang@flygoat.com>,
	"Weiwei Li" <liwei1518@gmail.com>,
	"Liu Zhiwei" <zhiwei_liu@linux.alibaba.com>,
	"Cleber Rosa" <crosa@redhat.com>,
	"Palmer Dabbelt" <palmer@dabbelt.com>,
	"Leif Lindholm" <quic_llindhol@quicinc.com>,
	"Eric Farman" <farman@linux.ibm.com>,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>,
	"John Snow" <jsnow@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Harsh Prateek Bora" <harshpb@linux.ibm.com>,
	"Aurelien Jarno" <aurelien@aurel32.net>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Joel Stanley" <joel@jms.id.au>,
	"Bernhard Beschow" <shentey@gmail.com>,
	qemu-ppc@nongnu.org, qemu-riscv@nongnu.org,
	"Daniel Henrique Barboza" <danielhb413@gmail.com>,
	"Laurent Vivier" <lvivier@redhat.com>,
	qemu-arm@nongnu.org,
	"Wainer dos Santos Moschetta" <wainersm@redhat.com>,
	"Fabiano Rosas" <farosas@suse.de>,
	"Markus Armbruster" <armbru@redhat.com>,
	"Bin Meng" <bmeng.cn@gmail.com>,
	"Pavel Dovgalyuk" <pavel.dovgaluk@ispras.ru>,
	"Marcel Apfelbaum" <marcel.apfelbaum@gmail.com>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	"Marcin Juszkiewicz" <marcin.juszkiewicz@linaro.org>,
	"Christian Borntraeger" <borntraeger@linux.ibm.com>,
	"Beraldo Leal" <bleal@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Radoslaw Biernacki" <rad@semihalf.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Nicholas Piggin" <npiggin@gmail.com>,
	"Mark Cave-Ayland" <mark.cave-ayland@ilande.co.uk>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Alistair Francis" <alistair.francis@wdc.com>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH 15/20] tests/functional/aarch64: add tests for FEAT_RME
Date: Wed, 11 Dec 2024 09:04:55 +0100	[thread overview]
Message-ID: <ba91b0da-ea60-4802-b336-f3a650d06ae4@redhat.com> (raw)
In-Reply-To: <20241210204349.723590-16-alex.bennee@linaro.org>

On 10/12/2024 21.43, Alex Bennée wrote:
> From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> 
> This boot an OP-TEE environment, and launch a nested guest VM inside it
> using the Realms feature. We do it for virt and sbsa-ref platforms.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> 
> -----
> 
> v2:
> - move test to its own file
> - add sbsa test
> - check output of `cca-workload-attestation report`
> 
> v3:
> - build and run test with cca-v4 images
> - factorize nested guest test between both tests
> - remove accel tcg option as it is the default when running tests
> Note: It's a long test and there is a work in progress to understand why
> debug build is so slow (x12 vs optimized).
> 
> v4:
> - use pauth-impdef=on to speed up build time execution (x2.5 faster)
> - increase timeout value
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> Message-Id: <20241203213629.2482806-1-pierrick.bouvier@linaro.org>
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>   tests/functional/meson.build                 |   4 +
>   tests/functional/test_aarch64_rme_sbsaref.py |  70 +++++++++++++
>   tests/functional/test_aarch64_rme_virt.py    | 100 +++++++++++++++++++
>   3 files changed, 174 insertions(+)
>   create mode 100755 tests/functional/test_aarch64_rme_sbsaref.py
>   create mode 100755 tests/functional/test_aarch64_rme_virt.py
> 
> diff --git a/tests/functional/meson.build b/tests/functional/meson.build
> index 0a76bd9954..4e207c53d5 100644
> --- a/tests/functional/meson.build
> +++ b/tests/functional/meson.build
> @@ -13,6 +13,8 @@ endif
>   test_timeouts = {
>     'aarch64_aspeed' : 600,
>     'aarch64_raspi4' : 480,
> +  'aarch64_rme_virt' : 1200,
> +  'aarch64_rme_sbsaref' : 1200,

I was a little bit worried when I saw the big timeout values here, but 
that's only for debug builds, right? I gave it a try in a standard build, 
the tests both finished within 5 minutes, so the standard runtime still 
seems to be ok.

Tested-by: Thomas Huth <thuth@redhat.com>

 > +    # This tests the FEAT_RME cpu implementation, by booting a VM 
supporting it,
 > +    # and launching a nested VM using it.
 > +    def test_aarch64_rme_sbsaref(self):
 > +        stack_path_tar_gz = self.ASSET_RME_STACK_SBSA.fetch()
 > +        archive_extract(stack_path_tar_gz, self.workdir)
 > +
 > +        self.set_machine('sbsa-ref')
 > +        self.vm.set_console()
 > +        self.require_accelerator('tcg')

Please move the set_machine and require_accelerator to the beginning of the 
function since they can skip the test in case the prerequisite is not 
available. Otherwise you've extracted the asset in vain.

  Thomas



  parent reply	other threads:[~2024-12-11  8:05 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-10 20:43 [PATCH 00/20] testing/next: functional tests and qtest timers Alex Bennée
2024-12-10 20:43 ` [PATCH 01/20] tests/functional: update the arm tuxrun tests Alex Bennée
2024-12-10 20:43 ` [PATCH 02/20] tests/functional: update the i386 " Alex Bennée
2024-12-10 20:43 ` [PATCH 03/20] tests/functional: add a m68k " Alex Bennée
2024-12-10 20:43 ` [PATCH 04/20] tests/functional: update the mips32 " Alex Bennée
2024-12-10 20:43 ` [PATCH 05/20] tests/functional: update the mips32el " Alex Bennée
2024-12-10 20:43 ` [PATCH 06/20] tests/functional: update the mips64 " Alex Bennée
2024-12-10 20:43 ` [PATCH 07/20] tests/functional: update the mips64el " Alex Bennée
2024-12-10 20:43 ` [PATCH 08/20] tests/functional: update the ppc32 " Alex Bennée
2024-12-10 20:43 ` [PATCH 09/20] tests/functional: update the ppc64 " Alex Bennée
2024-12-10 20:43 ` [PATCH 10/20] tests/functional: update the riscv32 " Alex Bennée
2024-12-10 20:43 ` [PATCH 11/20] tests/functional: update the riscv64 " Alex Bennée
2024-12-10 20:43 ` [PATCH 12/20] tests/functional: update the s390x " Alex Bennée
2024-12-10 20:43 ` [PATCH 13/20] tests/functional: update the sparc64 " Alex Bennée
2024-12-10 20:43 ` [PATCH 14/20] tests/functional: update the x86_64 " Alex Bennée
2024-12-10 20:43 ` [PATCH 15/20] tests/functional/aarch64: add tests for FEAT_RME Alex Bennée
2024-12-10 22:15   ` Richard Henderson
2024-12-11  2:32     ` Pierrick Bouvier
2024-12-11  8:04   ` Thomas Huth [this message]
2024-12-11 16:21     ` Pierrick Bouvier
2024-12-10 20:43 ` [PATCH 16/20] util/qemu-timer: fix indentation Alex Bennée
2024-12-10 22:16   ` Richard Henderson
2024-12-11  6:30   ` Thomas Huth
2024-12-10 20:43 ` [PATCH 17/20] tests/qtest: move clock_steps to after checks Alex Bennée
2024-12-11  6:37   ` Thomas Huth
2024-12-12 12:34   ` Fabiano Rosas
2024-12-10 20:43 ` [PATCH 18/20] system/qtest: properly feedback results of clock_[step|set] Alex Bennée
2024-12-11  6:35   ` Thomas Huth
2024-12-12 12:36   ` Fabiano Rosas
2024-12-10 20:43 ` [PATCH 19/20] tests/functional: remove hacky sleep from the tests Alex Bennée
2024-12-10 22:18   ` Richard Henderson
2024-12-11  6:39   ` Thomas Huth
2024-12-10 20:43 ` [PATCH 20/20] tests/functional: extend test_aarch64_virt with vulkan test Alex Bennée
2024-12-10 22:20   ` Richard Henderson
2024-12-11  6:58   ` Thomas Huth
2024-12-12 12:32     ` Alex Bennée
2024-12-12 14:03       ` Thomas Huth

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=ba91b0da-ea60-4802-b336-f3a650d06ae4@redhat.com \
    --to=thuth@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=armbru@redhat.com \
    --cc=aurelien@aurel32.net \
    --cc=berrange@redhat.com \
    --cc=bleal@redhat.com \
    --cc=bmeng.cn@gmail.com \
    --cc=borntraeger@linux.ibm.com \
    --cc=crosa@redhat.com \
    --cc=danielhb413@gmail.com \
    --cc=dbarboza@ventanamicro.com \
    --cc=farman@linux.ibm.com \
    --cc=farosas@suse.de \
    --cc=harshpb@linux.ibm.com \
    --cc=jiaxun.yang@flygoat.com \
    --cc=joel@jms.id.au \
    --cc=jsnow@redhat.com \
    --cc=liwei1518@gmail.com \
    --cc=lvivier@redhat.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=marcel.apfelbaum@gmail.com \
    --cc=marcin.juszkiewicz@linaro.org \
    --cc=mark.cave-ayland@ilande.co.uk \
    --cc=mst@redhat.com \
    --cc=npiggin@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=pasic@linux.ibm.com \
    --cc=pavel.dovgaluk@ispras.ru \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=qemu-s390x@nongnu.org \
    --cc=quic_llindhol@quicinc.com \
    --cc=rad@semihalf.com \
    --cc=richard.henderson@linaro.org \
    --cc=shentey@gmail.com \
    --cc=wainersm@redhat.com \
    --cc=zhiwei_liu@linux.alibaba.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.