[PATCH v2 2/6] RISC-V: KVM: Provide UAPI for Zicbop block size
Andrew Jones
ajones at ventanamicro.com
Mon Aug 18 13:33:59 PDT 2025
On Fri, Aug 08, 2025 at 06:18:34PM +0800, zhouquan at iscas.ac.cn wrote:
> From: Quan Zhou <zhouquan at iscas.ac.cn>
>
> 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 at iscas.ac.cn>
> ---
> 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 at ventanamicro.com>
More information about the kvm-riscv
mailing list