[kvmtool PATCH 4/8] riscv: Add Zcb extension support
Anup Patel
apatel at ventanamicro.com
Sat Aug 31 04:27:39 PDT 2024
When the Zcb extension is available expose it to the guest
via device tree so that guest can use it.
Signed-off-by: Anup Patel Anup Patel <apatel at ventanamicro.com>
---
riscv/fdt.c | 1 +
riscv/include/kvm/kvm-config-arch.h | 3 +++
2 files changed, 4 insertions(+)
diff --git a/riscv/fdt.c b/riscv/fdt.c
index 4fe4583..c62d4a3 100644
--- a/riscv/fdt.c
+++ b/riscv/fdt.c
@@ -33,6 +33,7 @@ struct isa_ext_info isa_info_arr[] = {
{"zbkx", KVM_RISCV_ISA_EXT_ZBKX},
{"zbs", KVM_RISCV_ISA_EXT_ZBS},
{"zca", KVM_RISCV_ISA_EXT_ZCA},
+ {"zcb", KVM_RISCV_ISA_EXT_ZCB},
{"zfa", KVM_RISCV_ISA_EXT_ZFA},
{"zfh", KVM_RISCV_ISA_EXT_ZFH},
{"zfhmin", KVM_RISCV_ISA_EXT_ZFHMIN},
diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h
index 40679ef..68fc47c 100644
--- a/riscv/include/kvm/kvm-config-arch.h
+++ b/riscv/include/kvm/kvm-config-arch.h
@@ -76,6 +76,9 @@ struct kvm_config_arch {
OPT_BOOLEAN('\0', "disable-zca", \
&(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZCA], \
"Disable Zca Extension"), \
+ OPT_BOOLEAN('\0', "disable-zcb", \
+ &(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZCB], \
+ "Disable Zcb Extension"), \
OPT_BOOLEAN('\0', "disable-zfa", \
&(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_ZFA], \
"Disable Zfa Extension"), \
--
2.43.0
More information about the kvm-riscv
mailing list