Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Joey Gouly <joey.gouly@arm.com>
To: Andrew Jones <andrew.jones@linux.dev>
Cc: kvm@vger.kernel.org, alexandru.elisei@arm.com,
	eric.auger@redhat.com, maz@kernel.org, kvmarm@lists.linux.dev,
	Oliver Upton <oliver.upton@linux.dev>
Subject: Re: [kvm-unit-tests PATCH v4 11/11] arm64: add EL2 environment variable
Date: Fri, 12 Dec 2025 16:03:40 +0000	[thread overview]
Message-ID: <20251212160340.GA978993@e124191.cambridge.arm.com> (raw)
In-Reply-To: <20251204-203dfc57adef00b4f6fdf910@orel>

On Thu, Dec 04, 2025 at 11:17:24AM -0600, Andrew Jones wrote:
> On Thu, Dec 04, 2025 at 02:23:38PM +0000, Joey Gouly wrote:
> > This variable when set to y/Y will cause QEMU/kvmtool to start at EL2.
> > 
> > Signed-off-by: Joey Gouly <joey.gouly@arm.com>
> > Acked-by: Marc Zyngier <maz@kernel.org>
> > Reviewed-by: Eric Auger <eric.auger@redhat.com>
> > ---
> >  arm/run | 7 +++++++
> >  1 file changed, 7 insertions(+)
> > 
> > diff --git a/arm/run b/arm/run
> > index 858333fc..dd641772 100755
> > --- a/arm/run
> > +++ b/arm/run
> > @@ -59,6 +59,10 @@ function arch_run_qemu()
> >  		M+=",highmem=off"
> >  	fi
> >  
> > +	if [ "$EL2" = "Y" ] || [ "$EL2" = "y" ]; then
> 
> I wanted to keep '1' and also add 'y' and 'Y'. We already allow those
> three (and only those three) in other places, see errata().

Couldn't find the errata() part, but I changed it to:

	if [ "$EL2" == "1" ] || [ "$EL2" = "Y" ] || [ "$EL2" = "y" ];


I also used test_exception_prep() like suggested in the other e-mail.

I will send out a next version next week, although I am aware it's very close
to holiday/vacation season!

Thanks,
Joey
> 
> Thanks,
> drew
> 
> > +		M+=",virtualization=on"
> > +	fi
> > +
> >  	if ! $qemu $M -device '?' | grep -q virtconsole; then
> >  		echo "$qemu doesn't support virtio-console for chr-testdev. Exiting."
> >  		exit 2
> > @@ -116,6 +120,9 @@ function arch_run_kvmtool()
> >  	fi
> >  
> >  	command="$(timeout_cmd) $kvmtool run"
> > +	if [ "$EL2" = "Y" ] || [ "$EL2" = "y" ]; then
> > +		command+=" --nested"
> > +	fi
> >  	if [ "$HOST" = "aarch64" ] && [ "$ARCH" = "arm" ]; then
> >  		run_test_status $command --kernel "$@" --aarch32
> >  	else
> > -- 
> > 2.25.1
> > 

      reply	other threads:[~2025-12-12 16:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-12-04 14:23 [kvm-unit-tests PATCH v4 00/11] arm64: EL2 support Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 01/11] arm64: set SCTLR_EL1 to a known value for secondary cores Joey Gouly
2025-12-04 15:58   ` Andrew Jones
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 02/11] arm64: drop to EL1 if booted at EL2 Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 03/11] arm64: efi: initialise SCTLR_ELx fully Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 04/11] arm64: efi: initialise the EL Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 05/11] arm64: timer: use hypervisor timers when at EL2 Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 06/11] arm64: micro-bench: fix timer IRQ Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 07/11] arm64: micro-bench: use smc when at EL2 Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 08/11] arm64: selftest: update test for running " Joey Gouly
2025-12-04 17:09   ` Andrew Jones
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 09/11] arm64: pmu: count EL2 cycles Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 10/11] arm64: run at EL2 if supported Joey Gouly
2025-12-04 14:23 ` [kvm-unit-tests PATCH v4 11/11] arm64: add EL2 environment variable Joey Gouly
2025-12-04 17:17   ` Andrew Jones
2025-12-12 16:03     ` Joey Gouly [this message]

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=20251212160340.GA978993@e124191.cambridge.arm.com \
    --to=joey.gouly@arm.com \
    --cc=alexandru.elisei@arm.com \
    --cc=andrew.jones@linux.dev \
    --cc=eric.auger@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.linux.dev \
    --cc=maz@kernel.org \
    --cc=oliver.upton@linux.dev \
    /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