Skip to content

Commit bf78f1e

Browse files
VincentZWCpalmer-dabbelt
authored andcommitted
riscv: kvm: Add V extension to KVM ISA
Add V extension to KVM isa extension list to enable supporting of V extension on VCPUs. Signed-off-by: Vincent Chen <[email protected]> Signed-off-by: Greentime Hu <[email protected]> Signed-off-by: Andy Chiu <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Reviewed-by: Anup Patel <[email protected]> Acked-by: Anup Patel <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent c7cdd96 commit bf78f1e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

arch/riscv/include/uapi/asm/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ enum KVM_RISCV_ISA_EXT_ID {
121121
KVM_RISCV_ISA_EXT_ZICBOZ,
122122
KVM_RISCV_ISA_EXT_ZBB,
123123
KVM_RISCV_ISA_EXT_SSAIA,
124+
KVM_RISCV_ISA_EXT_V,
124125
KVM_RISCV_ISA_EXT_MAX,
125126
};
126127

arch/riscv/kvm/vcpu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ static const unsigned long kvm_isa_ext_arr[] = {
5757
[KVM_RISCV_ISA_EXT_H] = RISCV_ISA_EXT_h,
5858
[KVM_RISCV_ISA_EXT_I] = RISCV_ISA_EXT_i,
5959
[KVM_RISCV_ISA_EXT_M] = RISCV_ISA_EXT_m,
60+
[KVM_RISCV_ISA_EXT_V] = RISCV_ISA_EXT_v,
6061

6162
KVM_ISA_EXT_ARR(SSAIA),
6263
KVM_ISA_EXT_ARR(SSTC),

0 commit comments

Comments
 (0)