]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: KVM: Provide UAPI for Zicbom block size
authorAndrew Jones <ajones@ventanamicro.com>
Sun, 2 Oct 2022 04:48:59 +0000 (10:18 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:48:59 +0000 (10:18 +0530)
commit29cddc182b1296d7e78d6ed80f6a98f86ab119ba
treec904eeb853e64c2e09c234412c0a0fe5105fff6a
parentd282f40b83eb7d4e9865d61ad2465c7398b153e1
RISC-V: KVM: Provide UAPI for Zicbom block size

We're about to allow guests to use the Zicbom 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: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Conor Dooley <conor.dooley@microchip.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
arch/riscv/mm/dma-noncoherent.c