diff options
author | Anup Patel <apatel@ventanamicro.com> | 2022-07-29 13:45:18 +0200 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2022-07-29 13:45:18 +0200 |
commit | 6bb2e00ea304ffc0446f345c46fe22713ce43cbf (patch) | |
tree | 054dbf5e54bdae60014a7b008dacb58757cbd202 /arch/riscv/include/uapi | |
parent | RISC-V: KVM: Use PAGE_KERNEL_IO in kvm_riscv_gstage_ioremap() (diff) | |
download | linux-6bb2e00ea304ffc0446f345c46fe22713ce43cbf.tar.xz linux-6bb2e00ea304ffc0446f345c46fe22713ce43cbf.zip |
RISC-V: KVM: Add support for Svpbmt inside Guest/VM
The Guest/VM can use Svpbmt in VS-stage page tables when allowed by the
Hypervisor using the henvcfg.PBMTE bit.
We add Svpbmt support for the KVM Guest/VM which can be enabled/disabled
by the KVM user-space (QEMU/KVMTOOL) using the ISA extension ONE_REG
interface.
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Atish Patra <atishp@rivosinc.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'arch/riscv/include/uapi')
-rw-r--r-- | arch/riscv/include/uapi/asm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/riscv/include/uapi/asm/kvm.h b/arch/riscv/include/uapi/asm/kvm.h index 6119368ba6d5..24b2a6e27698 100644 --- a/arch/riscv/include/uapi/asm/kvm.h +++ b/arch/riscv/include/uapi/asm/kvm.h @@ -96,6 +96,7 @@ enum KVM_RISCV_ISA_EXT_ID { KVM_RISCV_ISA_EXT_H, KVM_RISCV_ISA_EXT_I, KVM_RISCV_ISA_EXT_M, + KVM_RISCV_ISA_EXT_SVPBMT, KVM_RISCV_ISA_EXT_MAX, }; |