Message ID | 20231102120129.11261-1-yongxuan.wang@sifive.com (mailing list archive) |
---|---|
Headers | show |
Series | Add Svadu Extension Support | expand |
On Thu, Nov 02, 2023 at 12:01:21PM +0000, Yong-Xuan Wang wrote: > Svadu is a RISC-V extension for hardware updating of PTE A/D bits. This > patch set adds support to enable Svadu extension for both host and guest > OS. From patch one onwards for rv32_defconfig: /tmp/tmp.TRw8gWHZCe/arch/riscv/include/asm/pgtable.h:636:9: error: call to undeclared function 'riscv_has_extension_unlikely'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] /tmp/tmp.TRw8gWHZCe/include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] There seem to be quite a few of these -Warray-bounds issues, all in code included from signal.h. Could you please do an rv32 build and fix up these build issues? Thanks, Conor.
On Tue, Nov 14, 2023 at 11:39 PM Conor Dooley <conor@kernel.org> wrote: > > On Thu, Nov 02, 2023 at 12:01:21PM +0000, Yong-Xuan Wang wrote: > > Svadu is a RISC-V extension for hardware updating of PTE A/D bits. This > > patch set adds support to enable Svadu extension for both host and guest > > OS. > > From patch one onwards for rv32_defconfig: > /tmp/tmp.TRw8gWHZCe/arch/riscv/include/asm/pgtable.h:636:9: error: call to undeclared function 'riscv_has_extension_unlikely'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > /tmp/tmp.TRw8gWHZCe/include/linux/signal.h:97:11: warning: array index 3 is past the end of the array (that has type 'unsigned long[2]') [-Warray-bounds] > > There seem to be quite a few of these -Warray-bounds issues, all in > code included from signal.h. Could you please do an rv32 build and fix > up these build issues? > > Thanks, > Conor. Hi Conor, Sure! I will fix it in patch v4. Thank you! Regards, Yong-Xuan
Hi Yong-Xuan, On 02/11/2023 13:01, Yong-Xuan Wang wrote: > Svadu is a RISC-V extension for hardware updating of PTE A/D bits. This > patch set adds support to enable Svadu extension for both host and guest > OS. > > --- > v3: > - fix the control bit name to ADUE in PATCH1 and PATCH3 > - update get-reg-list in PATCH4 > > v2: > - add Co-developed-by: in PATCH1 > - use riscv_has_extension_unlikely() to runtime patch the branch in PATCH1 > - update dt-binding > > Yong-Xuan Wang (4): > RISC-V: Detect and Enable Svadu Extension Support > dt-bindings: riscv: Add Svadu Entry > RISC-V: KVM: Add Svadu Extension Support for Guest/VM > KVM: riscv: selftests: Add Svadu Extension to get-reg-list testt > > .../devicetree/bindings/riscv/extensions.yaml | 6 ++++++ > arch/riscv/include/asm/csr.h | 1 + > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/include/asm/pgtable.h | 6 ++++++ > arch/riscv/include/uapi/asm/kvm.h | 1 + > arch/riscv/kernel/cpufeature.c | 1 + > arch/riscv/kvm/vcpu.c | 3 +++ > arch/riscv/kvm/vcpu_onereg.c | 1 + > .../testing/selftests/kvm/riscv/get-reg-list.c | 18 ++++++++++++++++++ > 9 files changed, 38 insertions(+) > Will you spin a new version for this? Thanks, Alex
Hi Alexandre, On Fri, May 24, 2024 at 5:18 PM Alexandre Ghiti <alex@ghiti.fr> wrote: > > Hi Yong-Xuan, > > On 02/11/2023 13:01, Yong-Xuan Wang wrote: > > Svadu is a RISC-V extension for hardware updating of PTE A/D bits. This > > patch set adds support to enable Svadu extension for both host and guest > > OS. > > > > --- > > v3: > > - fix the control bit name to ADUE in PATCH1 and PATCH3 > > - update get-reg-list in PATCH4 > > > > v2: > > - add Co-developed-by: in PATCH1 > > - use riscv_has_extension_unlikely() to runtime patch the branch in PATCH1 > > - update dt-binding > > > > Yong-Xuan Wang (4): > > RISC-V: Detect and Enable Svadu Extension Support > > dt-bindings: riscv: Add Svadu Entry > > RISC-V: KVM: Add Svadu Extension Support for Guest/VM > > KVM: riscv: selftests: Add Svadu Extension to get-reg-list testt > > > > .../devicetree/bindings/riscv/extensions.yaml | 6 ++++++ > > arch/riscv/include/asm/csr.h | 1 + > > arch/riscv/include/asm/hwcap.h | 1 + > > arch/riscv/include/asm/pgtable.h | 6 ++++++ > > arch/riscv/include/uapi/asm/kvm.h | 1 + > > arch/riscv/kernel/cpufeature.c | 1 + > > arch/riscv/kvm/vcpu.c | 3 +++ > > arch/riscv/kvm/vcpu_onereg.c | 1 + > > .../testing/selftests/kvm/riscv/get-reg-list.c | 18 ++++++++++++++++++ > > 9 files changed, 38 insertions(+) > > > > Will you spin a new version for this? > > Thanks, > > Alex > Yes, I have finished the new version. I would send out the patchset as soon as possible. Regards, Yong-Xuan