Re: [PATCH v6 04/14] KVM: arm64: selftests: Introduce ARM64_SYS_KVM_REG

From: Andrew Jones
Date: Tue Sep 14 2021 - 02:51:09 EST


On Mon, Sep 13, 2021 at 11:09:45PM +0000, Raghavendra Rao Ananta wrote:
> With the inclusion of sysreg.h, that brings in system register
> encodings, it would be redundant to re-define register encodings
> again in processor.h to use it with ARM64_SYS_REG for the KVM
> functions such as set_reg() or get_reg(). Hence, add helper macro,
> ARM64_SYS_KVM_REG, that converts SYS_* definitions in sysreg.h
> into ARM64_SYS_REG definitions.
>
> Also replace all the users of ARM64_SYS_REG, relying on
> the encodings created in processor.h, with ARM64_SYS_KVM_REG and
> remove the definitions.
>
> Signed-off-by: Raghavendra Rao Ananta <rananta@xxxxxxxxxx>
> Reviewed-by: Ricardo Koller <ricarkol@xxxxxxxxxx>
> ---
> .../selftests/kvm/aarch64/debug-exceptions.c | 2 +-
> .../selftests/kvm/aarch64/psci_cpu_on_test.c | 2 +-
> .../selftests/kvm/include/aarch64/processor.h | 20 ++++++++++---------
> .../selftests/kvm/lib/aarch64/processor.c | 16 +++++++--------
> 4 files changed, 21 insertions(+), 19 deletions(-)
>

Reviewed-by: Andrew Jones <drjones@xxxxxxxxxx>