]> Gentwo Git Trees - linux/.git/commit
RISC-V: KVM: Provide UAPI for Zicbop block size
authorQuan Zhou <zhouquan@iscas.ac.cn>
Fri, 8 Aug 2025 10:18:34 +0000 (18:18 +0800)
committerAnup Patel <anup@brainfault.org>
Tue, 16 Sep 2025 05:23:38 +0000 (10:53 +0530)
commit48e2febcda745150b4e05a8f6e6d8fd2e14e25ec
tree6f95f4f73d8f2af8ebd2037986d9418683e67d42
parenteca26eadd27e59d6d673308d2a28416dd741513e
RISC-V: KVM: Provide UAPI for Zicbop block size

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@iscas.ac.cn>
Reviewed-by: Nutty Liu <nutty.liu@hotmail.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/befd8403cd76d7adb97231ac993eaeb86bf2582c.1754646071.git.zhouquan@iscas.ac.cn
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu_onereg.c