|
|
Log in / Subscribe / Register

RISC-V: KVM: Add Zicfiss/Zicfilp support

From:  zhouquan-AT-iscas.ac.cn
To:  anup-AT-brainfault.org, ajones-AT-ventanamicro.com, atishp-AT-atishpatra.org, paul.walmsley-AT-sifive.com, palmer-AT-dabbelt.com
Subject:  [PATCH 0/4] RISC-V: KVM: Add Zicfiss/Zicfilp support
Date:  Mon, 01 Dec 2025 09:28:04 +0800
Message-ID:  <cover.1764509485.git.zhouquan@iscas.ac.cn>
Cc:  linux-kernel-AT-vger.kernel.org, linux-riscv-AT-lists.infradead.org, kvm-AT-vger.kernel.org, kvm-riscv-AT-lists.infradead.org, Quan Zhou <zhouquan-AT-iscas.ac.cn>
Archive-link:  Article

From: Quan Zhou <zhouquan@iscas.ac.cn>

This patchset is based on `riscv control-flow integrity for usermode` [1].
Add Zicfiss/Zicfilp [2] and sbi fwft [3] support for riscv kvm.

[1] - https://lore.kernel.org/all/20251112-v5_user_cfi_series-v...
[2] - https://github.com/riscv/riscv-cfi
[3] - https://github.com/riscv-non-isa/riscv-sbi-doc/blob/maste...

Quan Zhou (4):
  RISC-V: KVM: Allow zicfiss/zicfilp exts for Guest/VM
  RISC-V: KVM: Add support for software check exception
  RISC-V: KVM: Add suuport for zicfiss/zicfilp/svadu FWFT features
  KVM: riscv: selftests: Add zicfiss/zicfilp/svadu and SBI FWFT to
    get-reg-list test

 arch/riscv/include/asm/csr.h                  |   1 +
 arch/riscv/include/asm/kvm_host.h             |   3 +-
 arch/riscv/include/uapi/asm/kvm.h             |   5 +
 arch/riscv/kvm/vcpu.c                         |   6 +
 arch/riscv/kvm/vcpu_exit.c                    |   3 +
 arch/riscv/kvm/vcpu_onereg.c                  |   2 +
 arch/riscv/kvm/vcpu_sbi_fwft.c                | 129 ++++++++++++++++++
 .../selftests/kvm/riscv/get-reg-list.c        |  26 ++++
 8 files changed, 174 insertions(+), 1 deletion(-)

-- 
2.34.1




Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds