Re: [PATCH v2 2/6] RISC-V: KVM: Provide UAPI for Zicbop block size
From: Nutty.Liu
Date: Mon Aug 18 2025 - 23:41:17 EST
On 8/8/2025 6:18 PM, 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: Nutty Liu <nutty.liu@xxxxxxxxxxx>
Thanks,
Nutty