mbox series

[RFC,0/2] Add NV Selftest cases

Message ID 20250206164120.4045569-1-gankulkarni@os.amperecomputing.com (mailing list archive)
Headers show
Series Add NV Selftest cases | expand

Message

Ganapatrao Kulkarni Feb. 6, 2025, 4:41 p.m. UTC
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.

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

Comments

Ganapatrao Kulkarni Feb. 6, 2025, 4:45 p.m. UTC | #1
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
>