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

Samuel Holland posted 2 patches 1 year ago
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(-)
[RFC PATCH 0/2] RISC-V: KVM: Pointer Masking Support
Posted by Samuel Holland 1 year ago
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(-)

-- 
2.47.0

Re: [RFC PATCH 0/2] RISC-V: KVM: Pointer Masking Support
Posted by Anup Patel 6 months, 3 weeks ago
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