Re: [PATCH v2 2/6] RISC-V: KVM: Provide UAPI for Zicbop block size
From: Andrew Jones
Date: Mon Aug 18 2025 - 16:34:12 EST
On Fri, Aug 08, 2025 at 06:18:34PM +0800, zhouquan@xxxxxxxxxxx wrote:
> From: Quan Zhou <zhouquan@xxxxxxxxxxx>
>
> We're about to allow guests to use the Zicbop extension.
> KVM userspace needs to know the cache block size in order to
> properly advertise it to the guest. Provide a virtual config
> register for userspace to get it with the GET_ONE_REG API, but
> setting it cannot be supported, so disallow SET_ONE_REG.
>
> Signed-off-by: Quan Zhou <zhouquan@xxxxxxxxxxx>
> ---
> arch/riscv/include/uapi/asm/kvm.h | 1 +
> arch/riscv/kvm/vcpu_onereg.c | 14 ++++++++++++++
> 2 files changed, 15 insertions(+)
>
Reviewed-by: Andrew Jones <ajones@xxxxxxxxxxxxxxxx>