diff options
author | Anup Patel <apatel@ventanamicro.com> | 2024-03-25 21:01:41 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2024-04-09 16:01:58 +0100 |
commit | d38c8f76ebe20c94329cb75aeb21eb061e975798 (patch) | |
tree | a3601d2489e4c9405bca9a74651d43943bd84b6e | |
parent | 9cf213d609bcf7958325efacd97ca07e2bffe11a (diff) | |
download | kvmtool-d38c8f76ebe20c94329cb75aeb21eb061e975798.tar.gz |
riscv: Allow disabling SBI STA extension for Guest
We add "--disable-sbi-sta" options to allow users disable SBI steal-time
extension for the Guest.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Link: https://lore.kernel.org/r/20240325153141.6816-11-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/include/kvm/kvm-config-arch.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/riscv/include/kvm/kvm-config-arch.h b/riscv/include/kvm/kvm-config-arch.h index 6415d3d9..e562d71c 100644 --- a/riscv/include/kvm/kvm-config-arch.h +++ b/riscv/include/kvm/kvm-config-arch.h @@ -186,6 +186,9 @@ struct kvm_config_arch { "Disable SBI Vendor Extensions"), \ OPT_BOOLEAN('\0', "disable-sbi-dbcn", \ &(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_DBCN], \ - "Disable SBI DBCN Extension"), + "Disable SBI DBCN Extension"), \ + OPT_BOOLEAN('\0', "disable-sbi-sta", \ + &(cfg)->sbi_ext_disabled[KVM_RISCV_SBI_EXT_STA], \ + "Disable SBI STA Extension"), #endif /* KVM__KVM_CONFIG_ARCH_H */ |