[kvmtool PATCH 4/6] riscv: Add Svadu extension support
Anup Patel
apatel at ventanamicro.com
Mon Jan 27 05:24:22 PST 2025
When the Svadu extension is available expose it to the guest
via device tree so that guest can use it.
Signed-off-by: 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 cf0c036..7f774f8 100644
--- a/riscv/fdt.c
+++ b/riscv/fdt.c
@@ -21,6 +21,7 @@ struct isa_ext_info isa_info_arr[] = {
{"sscofpmf", KVM_RISCV_ISA_EXT_SSCOFPMF},
{"sstc", KVM_RISCV_ISA_EXT_SSTC},
{"svade", KVM_RISCV_ISA_EXT_SVADE},
+ {"svadu", KVM_RISCV_ISA_EXT_SVADU},
{"svinval", KVM_RISCV_ISA_EXT_SVINVAL},
{"svnapot", KVM_RISCV_ISA_EXT_SVNAPOT},
{"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT},
diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h
index 5389dff..e3eeb84 100644
--- a/riscv/include/kvm/kvm-config-arch.h
+++ b/riscv/include/kvm/kvm-config-arch.h
@@ -40,6 +40,9 @@ struct kvm_config_arch {
OPT_BOOLEAN('\0', "disable-svade", \
&(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_SVADE], \
"Disable Svade Extension"), \
+ OPT_BOOLEAN('\0', "disable-svadu", \
+ &(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_SVADU], \
+ "Disable Svadu Extension"), \
OPT_BOOLEAN('\0', "disable-svinval", \
&(cfg)->ext_disabled[KVM_RISCV_ISA_EXT_SVINVAL], \
"Disable Svinval Extension"), \
--
2.43.0
More information about the kvm-riscv
mailing list