diff options
author | Anup Patel <apatel@ventanamicro.com> | 2023-11-27 19:31:55 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-01-19 06:50:02 +0300 |
commit | f3901ece5b3894177d1816208d0fb06b295617e0 (patch) | |
tree | bbed20530612d5ade8d5c601d981b00be7e29447 /arch/riscv/include | |
parent | 2ddf79070f7edada19fecec57d8591d6b718fa53 (diff) | |
download | linux-f3901ece5b3894177d1816208d0fb06b295617e0.tar.xz |
RISC-V: KVM: Allow Zfh[min] extensions for Guest/VM
We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable Zfh[min] 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>
Diffstat (limited to 'arch/riscv/include')
-rw-r--r-- | arch/riscv/include/uapi/asm/kvm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/kvm.h b/arch/riscv/include/uapi/asm/kvm.h index e68ba0819ef7..a8411ae5cc85 100644 --- a/arch/riscv/include/uapi/asm/kvm.h +++ b/arch/riscv/include/uapi/asm/kvm.h @@ -160,6 +160,8 @@ enum KVM_RISCV_ISA_EXT_ID { KVM_RISCV_ISA_EXT_ZVKSED, KVM_RISCV_ISA_EXT_ZVKSH, KVM_RISCV_ISA_EXT_ZVKT, + KVM_RISCV_ISA_EXT_ZFH, + KVM_RISCV_ISA_EXT_ZFHMIN, KVM_RISCV_ISA_EXT_MAX, }; |