The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] riscv: add Svukte extension
@ 2024-09-20  7:39 Max Hsu
  2024-09-20  7:39 ` [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry Max Hsu
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Max Hsu @ 2024-09-20  7:39 UTC (permalink / raw)
  To: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
	Palmer Dabbelt, Albert Ou, Anup Patel, Atish Patra
  Cc: Palmer Dabbelt, linux-riscv, devicetree, linux-kernel, kvm,
	kvm-riscv, Max Hsu, Samuel Holland

RISC-V privileged spec will be added with Svukte extension [1]

Svukte introduce senvcfg.UKTE and hstatus.HUKTE bitfield.
which makes user-mode access to supervisor memory raise page faults
in constant time, mitigating attacks that attempt to discover the
supervisor software's address-space layout.

The following patches add
- dt-binding of Svukte ISA string
- CSR bit definition, ISA detection, senvcfg.UKTE enablement in kernel
- KVM ONE_REG support for Svukte extension

This patch series is based on v6.11

Link: https://github.com/riscv/riscv-isa-manual/pull/1564 [1]

Signed-off-by: Max Hsu <max.hsu@sifive.com>

---
Max Hsu (3):
      dt-bindings: riscv: Add Svukte entry
      riscv: Add Svukte extension support
      riscv: KVM: Add Svukte extension support for Guest/VM

 Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
 arch/riscv/include/asm/csr.h                            | 2 ++
 arch/riscv/include/asm/hwcap.h                          | 1 +
 arch/riscv/include/uapi/asm/kvm.h                       | 1 +
 arch/riscv/kernel/cpufeature.c                          | 4 ++++
 arch/riscv/kvm/vcpu_onereg.c                            | 1 +
 6 files changed, 16 insertions(+)
---
base-commit: 186617d883560848f801732bfecefa0c2f702a0f
change-id: 20240920-dev-maxh-svukte-rebase-ce96dba93381

Best regards,
-- 
Max Hsu <max.hsu@sifive.com>


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-11-20 13:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-20  7:39 [PATCH RFC 0/3] riscv: add Svukte extension Max Hsu
2024-09-20  7:39 ` [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry Max Hsu
2024-09-21 22:05   ` Conor Dooley
2024-09-27  9:23     ` Max Hsu
2024-10-29 19:30   ` Deepak Gupta
2024-11-13 16:15   ` Alexandre Ghiti
2024-11-20 13:55     ` Max Hsu
2024-09-20  7:39 ` [PATCH RFC 2/3] riscv: Add Svukte extension support Max Hsu
2024-10-29 19:29   ` Deepak Gupta
2024-09-20  7:39 ` [PATCH RFC 3/3] riscv: KVM: Add Svukte extension support for Guest/VM Max Hsu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox