RISC-V: KVM: Implement subtype for CSR ONE_REG interface
authorAnup Patel <apatel@ventanamicro.com>
Fri, 31 Mar 2023 14:26:56 +0000 (19:56 +0530)
committerAnup Patel <anup@brainfault.org>
Fri, 21 Apr 2023 12:15:51 +0000 (17:45 +0530)
commit7d50dd5012013f7c8e3c3e5d0bed78ba85800934
tree8a3fcefbdbcfee8b7e5de5410a042222cf776060
parent54e43320c2ba0c70258a3aea690da38c6ea3293c
RISC-V: KVM: Implement subtype for CSR ONE_REG interface

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@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu.c