Re: [PATCH 1/7] RISC-V: KVM: Factor-out ONE_REG related code to its own source file

From: Andrew Jones
Date: Thu Jul 13 2023 - 06:57:17 EST


On Wed, Jul 12, 2023 at 09:40:41PM +0530, Anup Patel wrote:
> The VCPU ONE_REG interface has grown over time and it will continue
> to grow with new ISA extensions and other features. Let us move all
> ONE_REG related code to its own source file so that vcpu.c only
> focuses only on high-level VCPU functions.
>
> Signed-off-by: Anup Patel <apatel@xxxxxxxxxxxxxxxx>
> ---
> arch/riscv/include/asm/kvm_host.h | 6 +
> arch/riscv/kvm/Makefile | 1 +
> arch/riscv/kvm/vcpu.c | 529 +----------------------------
> arch/riscv/kvm/vcpu_onereg.c | 547 ++++++++++++++++++++++++++++++
> 4 files changed, 555 insertions(+), 528 deletions(-)
> create mode 100644 arch/riscv/kvm/vcpu_onereg.c
>

Reviewed-by: Andrew Jones <ajones@xxxxxxxxxxxxxxxx>