aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2022-08-15 15:43:23 +0530
committerWill Deacon <will@kernel.org>2022-09-22 13:28:36 +0100
commit2b4fe0f8cff1c7d16ed47016068ad19eedc90068 (patch)
treef267084a2d0dfc9b72d7051e3b1522e205abb908
parent8aff29e1dafe888d00786574925765ea667fbb43 (diff)
downloadkvmtool-2b4fe0f8cff1c7d16ed47016068ad19eedc90068.tar.gz
riscv: Add Svpbmt extension support
The Svpbmt extension allows PTE based memory attributes in page tables. This extension also allows Guest/VM to use PTE based memory attributes in VS-stage page tables so let us add it Guest/VM ISA string when KVM RISC-V supports it. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Link: https://lore.kernel.org/r/20220815101325.477694-4-apatel@ventanamicro.com Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--riscv/fdt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/riscv/fdt.c b/riscv/fdt.c
index 1818cf70..eb7851e1 100644
--- a/riscv/fdt.c
+++ b/riscv/fdt.c
@@ -17,6 +17,7 @@ struct isa_ext_info {
};
struct isa_ext_info isa_info_arr[] = {
+ {"svpbmt", KVM_RISCV_ISA_EXT_SVPBMT},
};
static void dump_fdt(const char *dtb_file, void *fdt)