[RFC PATCH 0/2] Add NV Selftest cases

Ganapatrao Kulkarni gankulkarni at os.amperecomputing.com
Thu Feb 6 08:45:24 PST 2025



On 06-02-2025 10:11 pm, Ganapatrao Kulkarni wrote:
> In this patch seried, modified kvm selftests code to enable
> guest code to run in vEL2(As guest Hypervisor).
> Also added test cases to test guest code booting in vEL2
> and register access of VNCR mapped registers.
> 
> This patchset is created as per discussions over ml[1].
> Posting RFC patch for the early feedback and to
> further explore requirements and test cases.
> 

[1] https://lore.kernel.org/linux-arm-kernel/871pz2th4b.wl-maz@kernel.org/

> Ganapatrao Kulkarni (2):
>    KVM: arm64: nv: selftests: Add guest hypervisor test
>    KVM: arm64: nv: selftests: Access VNCR mapped registers
> 
>   tools/testing/selftests/kvm/Makefile.kvm      |   2 +
>   .../selftests/kvm/arm64/nv_guest_hypervisor.c |  83 ++++++
>   .../selftests/kvm/arm64/nv_vncr_regs_test.c   | 255 ++++++++++++++++++
>   .../kvm/include/arm64/kvm_util_arch.h         |   3 +
>   .../selftests/kvm/include/arm64/nv_util.h     |  28 ++
>   .../testing/selftests/kvm/include/kvm_util.h  |   1 +
>   .../selftests/kvm/lib/arm64/processor.c       |  59 +++-
>   7 files changed, 417 insertions(+), 14 deletions(-)
>   create mode 100644 tools/testing/selftests/kvm/arm64/nv_guest_hypervisor.c
>   create mode 100644 tools/testing/selftests/kvm/arm64/nv_vncr_regs_test.c
>   create mode 100644 tools/testing/selftests/kvm/include/arm64/nv_util.h
> 

-- 
Thanks,
Ganapat/GK




More information about the linux-arm-kernel mailing list