[PATCH v3 5/8] RISC-V: KVM: Implement subtype for CSR ONE_REG interface

Andrew Jones ajones at ventanamicro.com
Mon Apr 3 05:18:11 PDT 2023


On Mon, Apr 03, 2023 at 03:03:07PM +0530, Anup Patel wrote:
> To make the CSR ONE_REG interface extensible, we implement subtype
> for the CSR ONE_REG IDs. The existing CSR ONE_REG IDs are treated
> as subtype = 0 (aka General CSRs).
> 
> Signed-off-by: Anup Patel <apatel at ventanamicro.com>
> ---
>  arch/riscv/include/uapi/asm/kvm.h |  3 +-
>  arch/riscv/kvm/vcpu.c             | 88 +++++++++++++++++++++++--------
>  2 files changed, 69 insertions(+), 22 deletions(-)
>

Reviewed-by: Andrew Jones <ajones at ventanamicro.com>

Thanks,
drew



More information about the kvm-riscv mailing list