Re: [RFC PATCH 1/2] KVM: arm64: nv: selftests: Add guest hypervisor test

2025-02-07 Thread Ganapatrao Kulkarni
On 07-02-2025 07:29 pm, Marc Zyngier wrote: On Fri, 07 Feb 2025 13:26:41 +, Ganapatrao Kulkarni wrote: + if (is_vcpu_nested(vcpu)) { + vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CPTR_EL2), fpen); + vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_SCTLR_EL2), sct

Re: [RFC PATCH 1/2] KVM: arm64: nv: selftests: Add guest hypervisor test

2025-02-07 Thread Marc Zyngier
On Fri, 07 Feb 2025 13:26:41 +, Ganapatrao Kulkarni wrote: > > >> + if (is_vcpu_nested(vcpu)) { > >> + vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_CPTR_EL2), fpen); > >> + vcpu_set_reg(vcpu, KVM_ARM64_SYS_REG(SYS_SCTLR_EL2), sctlr_el1); > >> + vcpu_set_reg(vcpu, KVM_A

Re: [RFC PATCH 1/2] KVM: arm64: nv: selftests: Add guest hypervisor test

2025-02-07 Thread Ganapatrao Kulkarni
Hi Marc, On 07-02-2025 02:44 am, Marc Zyngier wrote: On Thu, 06 Feb 2025 16:41:19 +, Ganapatrao Kulkarni wrote: This patch adds the required changes to init vcpu in vEL2 context. Also adds a KVM selftest to execute guest code as a guest hypervisor(L1). Signed-off-by: Ganapatrao Kulkarn

Re: [RFC PATCH 1/2] KVM: arm64: nv: selftests: Add guest hypervisor test

2025-02-06 Thread Marc Zyngier
On Thu, 06 Feb 2025 16:41:19 +, Ganapatrao Kulkarni wrote: > > This patch adds the required changes to init vcpu in vEL2 context. > Also adds a KVM selftest to execute guest code as a guest hypervisor(L1). > > Signed-off-by: Ganapatrao Kulkarni > --- > tools/testing/selftests/kvm/Makefile.

[RFC PATCH 1/2] KVM: arm64: nv: selftests: Add guest hypervisor test

2025-02-06 Thread Ganapatrao Kulkarni
This patch adds the required changes to init vcpu in vEL2 context. Also adds a KVM selftest to execute guest code as a guest hypervisor(L1). Signed-off-by: Ganapatrao Kulkarni --- tools/testing/selftests/kvm/Makefile.kvm | 1 + .../selftests/kvm/arm64/nv_guest_hypervisor.c | 83 +++