kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v2 0/9] arm64: support EL2
@ 2025-05-29 13:55 Joey Gouly
  2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 1/9] arm64: drop to EL1 if booted at EL2 Joey Gouly
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Joey Gouly @ 2025-05-29 13:55 UTC (permalink / raw)
  To: kvm
  Cc: alexandru.elisei, joey.gouly, andrew.jones, kvmarm, Marc Zyngier,
	Oliver Upton

Hi all,

This series is for adding support to running the kvm-unit-tests at EL2. These
have been tested with Marc Zyngier's Linux kvm-arm64/nv-next branch [1] and
kvmtool branch arm64/nv-6.13 [2]

The goal is to later extend and add new tests for Nested Virtualisation,
however they should also work with bare metal as well.

Changes since v1[3]:
	- Authorship fixed on 2 patches
	- Tested and fixed EFI support
	- Recactored assembly and added init_el macro
	- Clear trap registers, trying to avoid relying on default register
	  state
	- Cleaned up PMU changes

The debug tests fail with --nested, but pass with --nested --e2h0, I
need to investigate this.

Thanks,
Joey

[1] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/nv-next (commit a35d752b17f4)
[2] https://git.kernel.org/pub/scm/linux/kernel/git/maz/kvmtool.git arm64/nv-6.13 (commit 5b6fe295ea7)
[3] https://lore.kernel.org/kvmarm/20250220141354.2565567-1-joey.gouly@arm.com/

Alexandru Elisei (2):
  arm64: micro-bench: use smc when at EL2
  arm64: selftest: update test for running at EL2

Joey Gouly (7):
  arm64: drop to EL1 if booted at EL2
  arm64: efi: initialise SCTLR_ELx fully
  arm64: efi: initialise the EL
  arm64: timer: use hypervisor timers when at EL2
  arm64: micro-bench: fix timer IRQ
  arm64: pmu: count EL2 cycles
  arm64: run at EL2 if supported

 arm/cstart64.S             | 56 ++++++++++++++++++++++++++++++++++++--
 arm/efi/crt0-efi-aarch64.S |  5 ++++
 arm/micro-bench.c          | 26 ++++++++++++++++--
 arm/pmu.c                  | 13 ++++++---
 arm/selftest.c             | 18 ++++++++----
 arm/timer.c                | 10 +++++--
 lib/acpi.h                 |  2 ++
 lib/arm/asm/setup.h        |  1 +
 lib/arm/asm/timer.h        | 11 ++++++++
 lib/arm/setup.c            |  6 ++++
 lib/arm/timer.c            | 19 +++++++++++--
 lib/arm64/asm/sysreg.h     | 19 +++++++++++++
 12 files changed, 167 insertions(+), 19 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-06-17 12:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-29 13:55 [kvm-unit-tests PATCH v2 0/9] arm64: support EL2 Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 1/9] arm64: drop to EL1 if booted at EL2 Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 2/9] arm64: efi: initialise SCTLR_ELx fully Joey Gouly
2025-06-06 10:17   ` Suzuki K Poulose
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 3/9] arm64: efi: initialise the EL Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 4/9] arm64: timer: use hypervisor timers when at EL2 Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 5/9] arm64: micro-bench: fix timer IRQ Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 6/9] arm64: micro-bench: use smc when at EL2 Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 7/9] arm64: selftest: update test for running " Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 8/9] arm64: pmu: count EL2 cycles Joey Gouly
2025-05-29 13:55 ` [kvm-unit-tests PATCH v2 9/9] arm64: run at EL2 if supported Joey Gouly
2025-06-16 12:34 ` [kvm-unit-tests PATCH v2 0/9] arm64: support EL2 Alexandru Elisei
2025-06-17 12:49   ` Joey Gouly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).