[PATCH 15/17] riscv: Add V extension to KVM ISA allow list
Chris Stillson
stillson at rivosinc.com
Wed Sep 21 09:50:17 PDT 2022
Add V extension to KVM_RISCV_ISA_ALLOWED list to enable VCPU
to support V extension.
Signed-off-by: Vincent Chen <vincent.chen at sifive.com>
Signed-off-by: Greentime Hu <greentime.hu at sifive.com>
---
arch/riscv/include/asm/hwcap.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h
index 6f59ec64175e..b242ed155262 100644
--- a/arch/riscv/include/asm/hwcap.h
+++ b/arch/riscv/include/asm/hwcap.h
@@ -35,6 +35,7 @@ extern unsigned long elf_hwcap;
#define RISCV_ISA_EXT_m ('m' - 'a')
#define RISCV_ISA_EXT_s ('s' - 'a')
#define RISCV_ISA_EXT_u ('u' - 'a')
+#define RISCV_ISA_EXT_v ('v' - 'a')
/*
* Increse this to higher value as kernel support more ISA extensions.
--
2.25.1
More information about the linux-riscv
mailing list