[RFC kvmtool 02/10] riscv: Define a command line option for CoVE VM
Atish Patra
atishp at rivosinc.com
Wed Apr 19 15:23:42 PDT 2023
The user should be able configure the VMM to instantiate a CoVE VM via
a command line. Add the new option cove-vm.
Signed-off-by: Atish Patra <atishp at rivosinc.com>
---
riscv/include/kvm/kvm-config-arch.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h
index aed4fbf..01276ea 100644
--- a/riscv/include/kvm/kvm-config-arch.h
+++ b/riscv/include/kvm/kvm-config-arch.h
@@ -10,6 +10,7 @@ struct kvm_config_arch {
u64 custom_mimpid;
bool ext_disabled[KVM_RISCV_ISA_EXT_MAX];
bool sbi_ext_disabled[KVM_RISCV_SBI_EXT_MAX];
+ bool cove_vm;
};
#define OPT_ARCH_RUN(pfx, cfg) \
@@ -66,6 +67,7 @@ struct kvm_config_arch {
"Disable SBI Experimental Extensions"), \
OPT_BOOLEAN('\0', "disable-sbi-vendor", \
&(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_VENDOR], \
- "Disable SBI Vendor Extensions"),
+ "Disable SBI Vendor Extensions"), \
+ OPT_BOOLEAN('\0', "cove-vm", &(cfg)->cove_vm, "CoVE VM"),
#endif /* KVM__KVM_CONFIG_ARCH_H */
--
2.25.1
More information about the kvm-riscv
mailing list