* [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
* [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
2024-09-20 7:39 [PATCH RFC 0/3] riscv: add Svukte extension Max Hsu
@ 2024-09-20 7:39 ` Max Hsu
2024-09-21 22:05 ` Conor Dooley
` (2 more replies)
2024-09-20 7:39 ` [PATCH RFC 2/3] riscv: Add Svukte extension support Max Hsu
2024-09-20 7:39 ` [PATCH RFC 3/3] riscv: KVM: Add Svukte extension support for Guest/VM Max Hsu
2 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
Add an entry for the Svukte extension to the riscv,isa-extensions
property.
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Max Hsu <max.hsu@sifive.com>
---
Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
--- a/Documentation/devicetree/bindings/riscv/extensions.yaml
+++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
@@ -171,6 +171,13 @@ properties:
memory types as ratified in the 20191213 version of the privileged
ISA specification.
+ - const: svukte
+ description:
+ The standard Svukte supervisor-level extensions for making user-mode
+ accesses to supervisor memory raise page faults in constant time,
+ mitigating attacks that attempt to discover the supervisor
+ software's address-space layout, as PR#1564 of riscv-isa-manual.
+
- const: zacas
description: |
The Zacas extension for Atomic Compare-and-Swap (CAS) instructions
--
2.43.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH RFC 2/3] riscv: Add Svukte extension support
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-20 7:39 ` 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
2 siblings, 1 reply; 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
Svukte extension introduce senvcfg.UKTE, hstatus.HUKTE.
This patch add CSR bit definition, and detects if Svukte ISA extension
is available, cpufeature will set the correspond bit field so the
svukte-qualified memory accesses are protected in a manner that is
timing-independent of the faulting virtual address.
Since hstatus.HU is not enabled by linux, enabling hstatus.HUKTE will
not be affective.
This patch depends on patch "riscv: Per-thread envcfg CSR support" [1]
Link: https://lore.kernel.org/linux-riscv/20240814081126.956287-1-samuel.holland@sifive.com/ [1]
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Max Hsu <max.hsu@sifive.com>
---
arch/riscv/include/asm/csr.h | 2 ++
arch/riscv/include/asm/hwcap.h | 1 +
arch/riscv/kernel/cpufeature.c | 4 ++++
3 files changed, 7 insertions(+)
diff --git a/arch/riscv/include/asm/csr.h b/arch/riscv/include/asm/csr.h
index 25966995da04e090ff22a11e35be9bc24712f1a8..62b50667d539c50a0bfdadd1c6ab06cda948f6a8 100644
--- a/arch/riscv/include/asm/csr.h
+++ b/arch/riscv/include/asm/csr.h
@@ -122,6 +122,7 @@
#define HSTATUS_VSXL _AC(0x300000000, UL)
#define HSTATUS_VSXL_SHIFT 32
#endif
+#define HSTATUS_HUKTE _AC(0x01000000, UL)
#define HSTATUS_VTSR _AC(0x00400000, UL)
#define HSTATUS_VTW _AC(0x00200000, UL)
#define HSTATUS_VTVM _AC(0x00100000, UL)
@@ -195,6 +196,7 @@
/* xENVCFG flags */
#define ENVCFG_STCE (_AC(1, ULL) << 63)
#define ENVCFG_PBMTE (_AC(1, ULL) << 62)
+#define ENVCFG_UKTE (_AC(1, UL) << 8)
#define ENVCFG_CBZE (_AC(1, UL) << 7)
#define ENVCFG_CBCFE (_AC(1, UL) << 6)
#define ENVCFG_CBIE_SHIFT 4
diff --git a/arch/riscv/include/asm/hwcap.h b/arch/riscv/include/asm/hwcap.h
index 5a0bd27fd11a6d3d3b573c19ebaeb89d23dd8535..87f88a3b3f967b27b50ed071eace631c50d07dc7 100644
--- a/arch/riscv/include/asm/hwcap.h
+++ b/arch/riscv/include/asm/hwcap.h
@@ -92,6 +92,7 @@
#define RISCV_ISA_EXT_ZCF 83
#define RISCV_ISA_EXT_ZCMOP 84
#define RISCV_ISA_EXT_ZAWRS 85
+#define RISCV_ISA_EXT_SVUKTE 86
#define RISCV_ISA_EXT_XLINUXENVCFG 127
diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c
index b3b9735cb19a8a155b2e6710223ffd0992b8133e..891225a605547b312ab81d81f76f9bbba6c1b658 100644
--- a/arch/riscv/kernel/cpufeature.c
+++ b/arch/riscv/kernel/cpufeature.c
@@ -384,6 +384,7 @@ const struct riscv_isa_ext_data riscv_isa_ext[] = {
__RISCV_ISA_EXT_DATA(svinval, RISCV_ISA_EXT_SVINVAL),
__RISCV_ISA_EXT_DATA(svnapot, RISCV_ISA_EXT_SVNAPOT),
__RISCV_ISA_EXT_DATA(svpbmt, RISCV_ISA_EXT_SVPBMT),
+ __RISCV_ISA_EXT_SUPERSET(svukte, RISCV_ISA_EXT_SVUKTE, riscv_xlinuxenvcfg_exts),
};
const size_t riscv_isa_ext_count = ARRAY_SIZE(riscv_isa_ext);
@@ -925,6 +926,9 @@ void __init riscv_user_isa_enable(void)
current->thread.envcfg |= ENVCFG_CBZE;
else if (any_cpu_has_zicboz)
pr_warn("Zicboz disabled as it is unavailable on some harts\n");
+
+ if (riscv_has_extension_unlikely(RISCV_ISA_EXT_SVUKTE))
+ current->thread.envcfg |= ENVCFG_UKTE;
}
#ifdef CONFIG_RISCV_ALTERNATIVE
--
2.43.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH RFC 3/3] riscv: KVM: Add Svukte extension support for Guest/VM
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-20 7:39 ` [PATCH RFC 2/3] riscv: Add Svukte extension support Max Hsu
@ 2024-09-20 7:39 ` Max Hsu
2 siblings, 0 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
Add KVM ISA extension ONE_REG interface to allow VMM tools to
detect and enable Svukte extension for Guest/VM.
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Max Hsu <max.hsu@sifive.com>
---
arch/riscv/include/uapi/asm/kvm.h | 1 +
arch/riscv/kvm/vcpu_onereg.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/riscv/include/uapi/asm/kvm.h b/arch/riscv/include/uapi/asm/kvm.h
index e97db3296456e19f79ca02e4c4f70ae1b4abb48b..41b466b7ffaec421e8389d3f5b178580091a2c98 100644
--- a/arch/riscv/include/uapi/asm/kvm.h
+++ b/arch/riscv/include/uapi/asm/kvm.h
@@ -175,6 +175,7 @@ enum KVM_RISCV_ISA_EXT_ID {
KVM_RISCV_ISA_EXT_ZCF,
KVM_RISCV_ISA_EXT_ZCMOP,
KVM_RISCV_ISA_EXT_ZAWRS,
+ KVM_RISCV_ISA_EXT_SVUKTE,
KVM_RISCV_ISA_EXT_MAX,
};
diff --git a/arch/riscv/kvm/vcpu_onereg.c b/arch/riscv/kvm/vcpu_onereg.c
index b319c4c13c54ce22d2a7552f4c9f256a0c50780e..67237d6e53882a9fcd2cf265aa1704f25cc4a701 100644
--- a/arch/riscv/kvm/vcpu_onereg.c
+++ b/arch/riscv/kvm/vcpu_onereg.c
@@ -41,6 +41,7 @@ static const unsigned long kvm_isa_ext_arr[] = {
KVM_ISA_EXT_ARR(SVINVAL),
KVM_ISA_EXT_ARR(SVNAPOT),
KVM_ISA_EXT_ARR(SVPBMT),
+ KVM_ISA_EXT_ARR(SVUKTE),
KVM_ISA_EXT_ARR(ZACAS),
KVM_ISA_EXT_ARR(ZAWRS),
KVM_ISA_EXT_ARR(ZBA),
--
2.43.2
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
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
2 siblings, 1 reply; 10+ messages in thread
From: Conor Dooley @ 2024-09-21 22:05 UTC (permalink / raw)
To: Max Hsu
Cc: Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Anup Patel, Atish Patra, Palmer Dabbelt, linux-riscv,
devicetree, linux-kernel, kvm, kvm-riscv, Samuel Holland
[-- Attachment #1: Type: text/plain, Size: 1607 bytes --]
On Fri, Sep 20, 2024 at 03:39:03PM +0800, Max Hsu wrote:
> Add an entry for the Svukte extension to the riscv,isa-extensions
> property.
>
> Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
> Signed-off-by: Max Hsu <max.hsu@sifive.com>
> ---
> Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
> index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
> @@ -171,6 +171,13 @@ properties:
> memory types as ratified in the 20191213 version of the privileged
> ISA specification.
>
> + - const: svukte
> + description:
> + The standard Svukte supervisor-level extensions for making user-mode
> + accesses to supervisor memory raise page faults in constant time,
> + mitigating attacks that attempt to discover the supervisor
> + software's address-space layout, as PR#1564 of riscv-isa-manual.
I'm surprised this doesn't fail dt_binding_check, with the # in it. I'd
like to see a commit hash here though, in the same format as the other
extensions using them.
> +
> - const: zacas
> description: |
> The Zacas extension for Atomic Compare-and-Swap (CAS) instructions
>
> --
> 2.43.2
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
2024-09-21 22:05 ` Conor Dooley
@ 2024-09-27 9:23 ` Max Hsu
0 siblings, 0 replies; 10+ messages in thread
From: Max Hsu @ 2024-09-27 9:23 UTC (permalink / raw)
To: Conor Dooley
Cc: Rob Herring, Krzysztof Kozlowski, Paul Walmsley, Palmer Dabbelt,
Albert Ou, Anup Patel, Atish Patra, Palmer Dabbelt, linux-riscv,
devicetree, linux-kernel, kvm, kvm-riscv, Samuel Holland
Thanks, Conor,
I will modify the format and send it as RFC v2.
Since the Svukte extension is still in the review stage, I will put
the latest commit of the PR in the riscv-isa-manual as an indication,
Once the Svukte extension is ratified, I will modify it and send it as
a formal patch.
Best,
Max Hsu
On Sun, Sep 22, 2024 at 6:05 AM Conor Dooley <conor@kernel.org> wrote:
>
> On Fri, Sep 20, 2024 at 03:39:03PM +0800, Max Hsu wrote:
> > Add an entry for the Svukte extension to the riscv,isa-extensions
> > property.
> >
> > Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
> > Signed-off-by: Max Hsu <max.hsu@sifive.com>
> > ---
> > Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
> > index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
> > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
> > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
> > @@ -171,6 +171,13 @@ properties:
> > memory types as ratified in the 20191213 version of the privileged
> > ISA specification.
> >
> > + - const: svukte
> > + description:
> > + The standard Svukte supervisor-level extensions for making user-mode
> > + accesses to supervisor memory raise page faults in constant time,
> > + mitigating attacks that attempt to discover the supervisor
> > + software's address-space layout, as PR#1564 of riscv-isa-manual.
>
> I'm surprised this doesn't fail dt_binding_check, with the # in it. I'd
> like to see a commit hash here though, in the same format as the other
> extensions using them.
>
> > +
> > - const: zacas
> > description: |
> > The Zacas extension for Atomic Compare-and-Swap (CAS) instructions
> >
> > --
> > 2.43.2
> >
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 2/3] riscv: Add Svukte extension support
2024-09-20 7:39 ` [PATCH RFC 2/3] riscv: Add Svukte extension support Max Hsu
@ 2024-10-29 19:29 ` Deepak Gupta
0 siblings, 0 replies; 10+ messages in thread
From: Deepak Gupta @ 2024-10-29 19:29 UTC (permalink / raw)
To: Max Hsu
Cc: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Anup Patel, Atish Patra,
Palmer Dabbelt, linux-riscv, devicetree, linux-kernel, kvm,
kvm-riscv, Samuel Holland
On Fri, Sep 20, 2024 at 03:39:04PM +0800, Max Hsu wrote:
>Svukte extension introduce senvcfg.UKTE, hstatus.HUKTE.
>
>This patch add CSR bit definition, and detects if Svukte ISA extension
>is available, cpufeature will set the correspond bit field so the
>svukte-qualified memory accesses are protected in a manner that is
>timing-independent of the faulting virtual address.
>
>Since hstatus.HU is not enabled by linux, enabling hstatus.HUKTE will
>not be affective.
>
>This patch depends on patch "riscv: Per-thread envcfg CSR support" [1]
>
>Link: https://lore.kernel.org/linux-riscv/20240814081126.956287-1-samuel.holland@sifive.com/ [1]
>
>Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
>Signed-off-by: Max Hsu <max.hsu@sifive.com>
>---
> arch/riscv/include/asm/csr.h | 2 ++
> arch/riscv/include/asm/hwcap.h | 1 +
> arch/riscv/kernel/cpufeature.c | 4 ++++
> 3 files changed, 7 insertions(+)
Reviewed-by: Deepak Gupta <debug@rivosinc.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
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-10-29 19:30 ` Deepak Gupta
2024-11-13 16:15 ` Alexandre Ghiti
2 siblings, 0 replies; 10+ messages in thread
From: Deepak Gupta @ 2024-10-29 19:30 UTC (permalink / raw)
To: Max Hsu
Cc: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Anup Patel, Atish Patra,
Palmer Dabbelt, linux-riscv, devicetree, linux-kernel, kvm,
kvm-riscv, Samuel Holland
On Fri, Sep 20, 2024 at 03:39:03PM +0800, Max Hsu wrote:
>Add an entry for the Svukte extension to the riscv,isa-extensions
>property.
>
>Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
>Signed-off-by: Max Hsu <max.hsu@sifive.com>
>---
> Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
>diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
>index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
>--- a/Documentation/devicetree/bindings/riscv/extensions.yaml
>+++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
>@@ -171,6 +171,13 @@ properties:
> memory types as ratified in the 20191213 version of the privileged
> ISA specification.
>
>+ - const: svukte
>+ description:
>+ The standard Svukte supervisor-level extensions for making user-mode
>+ accesses to supervisor memory raise page faults in constant time,
>+ mitigating attacks that attempt to discover the supervisor
>+ software's address-space layout, as PR#1564 of riscv-isa-manual.
>+
Reviewed-by: Deepak Gupta <debug@rivosinc.com>
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
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-10-29 19:30 ` Deepak Gupta
@ 2024-11-13 16:15 ` Alexandre Ghiti
2024-11-20 13:55 ` Max Hsu
2 siblings, 1 reply; 10+ messages in thread
From: Alexandre Ghiti @ 2024-11-13 16:15 UTC (permalink / raw)
To: Max Hsu, 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, Samuel Holland
Hi Max,
On 20/09/2024 09:39, Max Hsu wrote:
> Add an entry for the Svukte extension to the riscv,isa-extensions
> property.
>
> Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
> Signed-off-by: Max Hsu <max.hsu@sifive.com>
> ---
> Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
> index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
> --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
> +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
> @@ -171,6 +171,13 @@ properties:
> memory types as ratified in the 20191213 version of the privileged
> ISA specification.
>
> + - const: svukte
> + description:
> + The standard Svukte supervisor-level extensions for making user-mode
s/extensions/extension
> + accesses to supervisor memory raise page faults in constant time,
> + mitigating attacks that attempt to discover the supervisor
> + software's address-space layout, as PR#1564 of riscv-isa-manual.
> +
> - const: zacas
> description: |
> The Zacas extension for Atomic Compare-and-Swap (CAS) instructions
>
You'll need a new version for the proper commit sha1 once it gets
ratified anyway, so with the typo fixed, you can add:
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Thanks,
Alex
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH RFC 1/3] dt-bindings: riscv: Add Svukte entry
2024-11-13 16:15 ` Alexandre Ghiti
@ 2024-11-20 13:55 ` Max Hsu
0 siblings, 0 replies; 10+ messages in thread
From: Max Hsu @ 2024-11-20 13:55 UTC (permalink / raw)
To: Alexandre Ghiti
Cc: Conor Dooley, Rob Herring, Krzysztof Kozlowski, Paul Walmsley,
Palmer Dabbelt, Albert Ou, Anup Patel, Atish Patra,
Palmer Dabbelt, linux-riscv, devicetree, linux-kernel, kvm,
kvm-riscv, Samuel Holland
Hi Alexandre,
Thanks for the suggestion.
I will send a typo fix in the RFC v3 patches
Best regards,
Max Hsu
On Thu, Nov 14, 2024 at 12:15 AM Alexandre Ghiti <alex@ghiti.fr> wrote:
>
> Hi Max,
>
> On 20/09/2024 09:39, Max Hsu wrote:
> > Add an entry for the Svukte extension to the riscv,isa-extensions
> > property.
> >
> > Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
> > Signed-off-by: Max Hsu <max.hsu@sifive.com>
> > ---
> > Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++++++
> > 1 file changed, 7 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml b/Documentation/devicetree/bindings/riscv/extensions.yaml
> > index a06dbc6b4928958704855c8993291b036e3d1a63..df96aea5e53a70b0cb8905332464a42a264e56e6 100644
> > --- a/Documentation/devicetree/bindings/riscv/extensions.yaml
> > +++ b/Documentation/devicetree/bindings/riscv/extensions.yaml
> > @@ -171,6 +171,13 @@ properties:
> > memory types as ratified in the 20191213 version of the privileged
> > ISA specification.
> >
> > + - const: svukte
> > + description:
> > + The standard Svukte supervisor-level extensions for making user-mode
>
>
> s/extensions/extension
>
>
> > + accesses to supervisor memory raise page faults in constant time,
> > + mitigating attacks that attempt to discover the supervisor
> > + software's address-space layout, as PR#1564 of riscv-isa-manual.
> > +
> > - const: zacas
> > description: |
> > The Zacas extension for Atomic Compare-and-Swap (CAS) instructions
> >
>
> You'll need a new version for the proper commit sha1 once it gets
> ratified anyway, so with the typo fixed, you can add:
>
> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
>
> Thanks,
>
> Alex
>
^ 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;
as well as URLs for NNTP newsgroup(s).