mbox series

[RFC,0/2] RISC-V: KVM: Pointer Masking Support

Message ID 20250111004702.2813013-1-samuel.holland@sifive.com
Headers show
Series RISC-V: KVM: Pointer Masking Support | expand

Message

Samuel Holland Jan. 11, 2025, 12:46 a.m. UTC
This series adds support for pointer masking in VS-mode inside KVM
guests using the SBI FWFT extension. This series applies on top of
Clément's "riscv: add SBI FWFT misaligned exception delegation support"
series[1], which adds the necessary infrastructure.

[1]: https://lore.kernel.org/linux-riscv/20250106154847.1100344-1-cleger@rivosinc.com/


Samuel Holland (2):
  RISC-V: KVM: Fix inclusion of Smnpm in the guest ISA bitmap
  RISC-V: KVM: Add support for SBI_FWFT_POINTER_MASKING_PMLEN

 arch/riscv/include/asm/kvm_vcpu_sbi_fwft.h |  2 +
 arch/riscv/kvm/vcpu_onereg.c               | 84 ++++++++++++++--------
 arch/riscv/kvm/vcpu_sbi_fwft.c             | 70 +++++++++++++++++-
 3 files changed, 124 insertions(+), 32 deletions(-)

Comments

Anup Patel July 16, 2025, 12:24 p.m. UTC | #1
On Sat, Jan 11, 2025 at 6:17 AM Samuel Holland
<samuel.holland@sifive.com> wrote:
>
> This series adds support for pointer masking in VS-mode inside KVM
> guests using the SBI FWFT extension. This series applies on top of
> Clément's "riscv: add SBI FWFT misaligned exception delegation support"
> series[1], which adds the necessary infrastructure.
>
> [1]: https://lore.kernel.org/linux-riscv/20250106154847.1100344-1-cleger@rivosinc.com/
>
>
> Samuel Holland (2):
>   RISC-V: KVM: Fix inclusion of Smnpm in the guest ISA bitmap
>   RISC-V: KVM: Add support for SBI_FWFT_POINTER_MASKING_PMLEN

LGTM.

Reviewed-by: Anup Patel <anup@brainfault.org>

Rebased and queued it for Linux-6.17

Thanks,
Anup