diff options
author | Atish Patra <atishp@rivosinc.com> | 2022-08-15 15:43:24 +0530 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-09-22 13:28:36 +0100 |
commit | 3c07aeaf993a2ec607ff4e1f8b5b78d300c3c8f5 (patch) | |
tree | b972737b1be9e72318185c9c0206c4a059ad408e | |
parent | 2b4fe0f8cff1c7d16ed47016068ad19eedc90068 (diff) | |
download | kvmtool-3c07aeaf993a2ec607ff4e1f8b5b78d300c3c8f5.tar.gz |
riscv: Add Sstc extension support
Sstc extension allows the guest OS to program the timer directly without
relying on the SBI call. The kernel detects the presence of Sstc extnesion
from the riscv,isa DT property. Add the Sstc extension to the device tree
if it is supported by the host.
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Link: https://lore.kernel.org/r/20220815101325.477694-5-apatel@ventanamicro.com
Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r-- | riscv/fdt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/fdt.c b/riscv/fdt.c index eb7851e1..aeba0428 100644 --- a/riscv/fdt.c +++ b/riscv/fdt.c @@ -18,6 +18,7 @@ struct isa_ext_info { struct isa_ext_info isa_info_arr[] = { {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT}, + {"sstc", KVM_RISCV_ISA_EXT_SSTC}, }; static void dump_fdt(const char *dtb_file, void *fdt) |