RISC-V: KVM: Allow Zicntr, Zicsr, Zifencei, and Zihpm for Guest/VM
authorAnup Patel <apatel@ventanamicro.com>
Wed, 12 Jul 2023 07:23:50 +0000 (12:53 +0530)
committerAnup Patel <anup@brainfault.org>
Tue, 8 Aug 2023 11:55:35 +0000 (17:25 +0530)
commit043cba064ecd2c3ccaf575c15caf6dd829c64e7b
tree23747304a947f47edbfa2dc00c37b281869f6387
parent41716861e4251b202809fc57deaed3881934e062
RISC-V: KVM: Allow Zicntr, Zicsr, Zifencei, and Zihpm for Guest/VM

We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable Zicntr, Zicsr, Zifencei, and Zihpm
extensions for Guest/VM.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/uapi/asm/kvm.h
arch/riscv/kvm/vcpu_onereg.c