Re: [PATCH 00/13] KVM: arm64: selftests: Run selftests in VHE EL2

Marc Zyngier
2025-09-24T18:38:16Z

On Wed, 17 Sep 2025 14:20:30 -0700, Oliver Upton wrote:
> I've been working on some MMU-related features that are unused by KVM
> meaning they're somewhat annoying to test. Because of that, I found the
> time / patience to port our existing selftests infrastructure over to
> running in VHE EL2, opportunistically promoting tests when the stars
> align.
>
> Creating a VGIC is a hard requirement of enabling EL2 for a VM. As a
> consequence of this, I need to eat my words from my earlier conversation
> with Sean on this topic and hammer in a default VGICv3. This requires
> some participation from the arch-neutral code given the ordering
> constraints on vCPU and VGIC creation.
>
> [...]

Applied to next, thanks!

[01/13] KVM: arm64: selftests: Provide kvm_arch_vm_post_create() in library code
commit: 7326348209a0079a83c7bd7963a0e32d26af61c8
[02/13] KVM: arm64: selftests: Initialize VGICv3 only once
commit: a5022da5f9a3a791ff2caf5fe3789561ae687747
[03/13] KVM: arm64: selftests: Add helper to check for VGICv3 support
commit: b712afa7a1cdb787f311f51c04df81fc6f026368
[04/13] KVM: arm64: selftests: Add unsanitised helpers for VGICv3 creation
commit: b8daa7ceac1c56e39b6ef4e62510a7d846511695
[05/13] KVM: arm64: selftests: Create a VGICv3 for 'default' VMs
commit: 8911c7dbc607212bf3dfc963004b062588c0ab38
[06/13] KVM: arm64: selftests: Alias EL1 registers to EL2 counterparts
commit: 1c9604ba234711ca759f1147f2fbc7a94a5a486d
[07/13] KVM: arm64: selftests: Provide helper for getting default vCPU target
commit: a1b91ac2381d86aa47b7109bbcde0c71e775f6d9
[08/13] KVM: arm64: selftests: Select SMCCC conduit based on current EL
commit: d72543ac728ae4a4708cbefad2761df84599c268
[09/13] KVM: arm64: selftests: Use hyp timer IRQs when test runs at EL2
commit: 0910778e49c6639d265ab2d7a47d0b461b8e2963
[10/13] KVM: arm64: selftests: Use the vCPU attr for setting nr of PMU counters
commit: 7ae44d1cdad8a2483465373b9c9e91f0461ca9b2
[11/13] KVM: arm64: selftests: Initialize HCR_EL2
commit: 05c93cbe6653e7e77567962aa6533b618df5e19f
[12/13] KVM: arm64: selftests: Enable EL2 by default
commit: 2de21fb62387459f762c93eec3d04e4f7540b952
[13/13] KVM: arm64: selftests: Add basic test for running in VHE EL2
commit: f677b0efa93ce0afb127ccffb8aaf708045fcf10

Cheers,

M.
--
Without deviation from the norm, progress is not possible.