[PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update

Wang Yechao posted 1 patch 1 month ago
Failed in applying to current master (apply log)
There is a newer version of this series
target/riscv/kvm/kvm-cpu.c | 3 +++
1 file changed, 3 insertions(+)
[PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update
Posted by Wang Yechao 1 month ago
Expose zilsd, zclsd and zalasr.

Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
Acked-by: Alistair Francis <alistair.francis@wdc.com>
---
Changes in v2:
- Rebase on https://github.com/alistair23/qemu/tree/riscv-to-apply.next

---
 target/riscv/kvm/kvm-cpu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c
index f0de5c3071..707b992d55 100644
--- a/target/riscv/kvm/kvm-cpu.c
+++ b/target/riscv/kvm/kvm-cpu.c
@@ -304,10 +304,13 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {
     KVM_EXT_CFG("zihintntl", ext_zihintntl, KVM_RISCV_ISA_EXT_ZIHINTNTL),
     KVM_EXT_CFG("zihintpause", ext_zihintpause, KVM_RISCV_ISA_EXT_ZIHINTPAUSE),
     KVM_EXT_CFG("zihpm", ext_zihpm, KVM_RISCV_ISA_EXT_ZIHPM),
+    KVM_EXT_CFG("zilsd", ext_zilsd, KVM_RISCV_ISA_EXT_ZILSD),
     KVM_EXT_CFG("zimop", ext_zimop, KVM_RISCV_ISA_EXT_ZIMOP),
     KVM_EXT_CFG("zcmop", ext_zcmop, KVM_RISCV_ISA_EXT_ZCMOP),
+    KVM_EXT_CFG("zclsd", ext_zclsd, KVM_RISCV_ISA_EXT_ZCLSD),
     KVM_EXT_CFG("zabha", ext_zabha, KVM_RISCV_ISA_EXT_ZABHA),
     KVM_EXT_CFG("zacas", ext_zacas, KVM_RISCV_ISA_EXT_ZACAS),
+    KVM_EXT_CFG("zalasr", ext_zalasr, KVM_RISCV_ISA_EXT_ZALASR),
     KVM_EXT_CFG("zawrs", ext_zawrs, KVM_RISCV_ISA_EXT_ZAWRS),
     KVM_EXT_CFG("zfa", ext_zfa, KVM_RISCV_ISA_EXT_ZFA),
     KVM_EXT_CFG("zfbfmin", ext_zfbfmin, KVM_RISCV_ISA_EXT_ZFBFMIN),
-- 
2.43.5
Re: [PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update
Posted by Alistair Francis 3 weeks, 6 days ago
On Mon, Jun 22, 2026 at 4:59 PM Wang Yechao <wang.yechao255@zte.com.cn> wrote:
>
> Expose zilsd, zclsd and zalasr.
>
> Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
> Acked-by: Alistair Francis <alistair.francis@wdc.com>

Thanks!

Applied to riscv-to-apply.next

Alistair

> ---
> Changes in v2:
> - Rebase on https://github.com/alistair23/qemu/tree/riscv-to-apply.next
>
> ---
>  target/riscv/kvm/kvm-cpu.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c
> index f0de5c3071..707b992d55 100644
> --- a/target/riscv/kvm/kvm-cpu.c
> +++ b/target/riscv/kvm/kvm-cpu.c
> @@ -304,10 +304,13 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {
>      KVM_EXT_CFG("zihintntl", ext_zihintntl, KVM_RISCV_ISA_EXT_ZIHINTNTL),
>      KVM_EXT_CFG("zihintpause", ext_zihintpause, KVM_RISCV_ISA_EXT_ZIHINTPAUSE),
>      KVM_EXT_CFG("zihpm", ext_zihpm, KVM_RISCV_ISA_EXT_ZIHPM),
> +    KVM_EXT_CFG("zilsd", ext_zilsd, KVM_RISCV_ISA_EXT_ZILSD),
>      KVM_EXT_CFG("zimop", ext_zimop, KVM_RISCV_ISA_EXT_ZIMOP),
>      KVM_EXT_CFG("zcmop", ext_zcmop, KVM_RISCV_ISA_EXT_ZCMOP),
> +    KVM_EXT_CFG("zclsd", ext_zclsd, KVM_RISCV_ISA_EXT_ZCLSD),
>      KVM_EXT_CFG("zabha", ext_zabha, KVM_RISCV_ISA_EXT_ZABHA),
>      KVM_EXT_CFG("zacas", ext_zacas, KVM_RISCV_ISA_EXT_ZACAS),
> +    KVM_EXT_CFG("zalasr", ext_zalasr, KVM_RISCV_ISA_EXT_ZALASR),
>      KVM_EXT_CFG("zawrs", ext_zawrs, KVM_RISCV_ISA_EXT_ZAWRS),
>      KVM_EXT_CFG("zfa", ext_zfa, KVM_RISCV_ISA_EXT_ZFA),
>      KVM_EXT_CFG("zfbfmin", ext_zfbfmin, KVM_RISCV_ISA_EXT_ZFBFMIN),
> --
> 2.43.5
Re: [PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update
Posted by wang.yechao255@zte.com.cn 2 weeks, 6 days ago
> On Mon, Jun 22, 2026 at 4:59 PM Wang Yechao <wang.yechao255@zte.com..cn> wrote:
> >
> > Expose zilsd, zclsd and zalasr.
> >
> > Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
> > Acked-by: Alistair Francis <alistair.francis@wdc.com>
>
> Thanks!
>
> Applied to riscv-to-apply.next
>
> Alistair
>

Hi Alistair, could you please confirm if this patch was applied to the 
riscv-to-apply.next branch? I can't seem to find it.

Regards,
Yechao
>
> > ---
> > Changes in v2:
> > - Rebase on https://github.com/alistair23/qemu/tree/riscv-to-apply.next
> >
> > ---
> >  target/riscv/kvm/kvm-cpu.c | 3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/target/riscv/kvm/kvm-cpu.c b/target/riscv/kvm/kvm-cpu.c
> > index f0de5c3071..707b992d55 100644
> > --- a/target/riscv/kvm/kvm-cpu.c
> > +++ b/target/riscv/kvm/kvm-cpu.c
> > @@ -304,10 +304,13 @@ static KVMCPUConfig kvm_multi_ext_cfgs[] = {
> >      KVM_EXT_CFG("zihintntl", ext_zihintntl, KVM_RISCV_ISA_EXT_ZIHINTNTL),
> >      KVM_EXT_CFG("zihintpause", ext_zihintpause, KVM_RISCV_ISA_EXT_ZIHINTPAUSE),
> >      KVM_EXT_CFG("zihpm", ext_zihpm, KVM_RISCV_ISA_EXT_ZIHPM),
> > +    KVM_EXT_CFG("zilsd", ext_zilsd, KVM_RISCV_ISA_EXT_ZILSD),
> >      KVM_EXT_CFG("zimop", ext_zimop, KVM_RISCV_ISA_EXT_ZIMOP),
> >      KVM_EXT_CFG("zcmop", ext_zcmop, KVM_RISCV_ISA_EXT_ZCMOP),
> > +    KVM_EXT_CFG("zclsd", ext_zclsd, KVM_RISCV_ISA_EXT_ZCLSD),
> >      KVM_EXT_CFG("zabha", ext_zabha, KVM_RISCV_ISA_EXT_ZABHA),
> >      KVM_EXT_CFG("zacas", ext_zacas, KVM_RISCV_ISA_EXT_ZACAS),
> > +    KVM_EXT_CFG("zalasr", ext_zalasr, KVM_RISCV_ISA_EXT_ZALASR),
> >      KVM_EXT_CFG("zawrs", ext_zawrs, KVM_RISCV_ISA_EXT_ZAWRS),
> >      KVM_EXT_CFG("zfa", ext_zfa, KVM_RISCV_ISA_EXT_ZFA),
> >      KVM_EXT_CFG("zfbfmin", ext_zfbfmin, KVM_RISCV_ISA_EXT_ZFBFMIN),
> > --
> > 2.43.5

Re: [PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update
Posted by Alistair Francis 2 weeks, 5 days ago
On Mon, Jul 6, 2026 at 4:06 PM <wang.yechao255@zte.com.cn> wrote:
>
> > On Mon, Jun 22, 2026 at 4:59 PM Wang Yechao <wang.yechao255@zte.com..cn> wrote:
> > >
> > > Expose zilsd, zclsd and zalasr.
> > >
> > > Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
> > > Acked-by: Alistair Francis <alistair.francis@wdc.com>
> >
> > Thanks!
> >
> > Applied to riscv-to-apply.next
> >
> > Alistair
> >
>
> Hi Alistair, could you please confirm if this patch was applied to the
> riscv-to-apply.next branch? I can't seem to find it.

Oh sorry, it didn't get applied. It doesn't seem to apply to master or
my branch though, are you able to rebase it

Alistair
Re: [PATCH v2] target/riscv/kvm: add extensions after v7.1-rc4 update
Posted by wang.yechao255@zte.com.cn 2 weeks, 5 days ago
> >
> > > On Mon, Jun 22, 2026 at 4:59 PM Wang Yechao <wang.yechao255@zte..com..cn> wrote:
> > > >
> > > > Expose zilsd, zclsd and zalasr.
> > > >
> > > > Signed-off-by: Wang Yechao <wang.yechao255@zte.com.cn>
> > > > Acked-by: Alistair Francis <alistair.francis@wdc.com>
> > >
> > > Thanks!
> > >
> > > Applied to riscv-to-apply.next
> > >
> > > Alistair
> > >
> >
> > Hi Alistair, could you please confirm if this patch was applied to the
> > riscv-to-apply.next branch? I can't seem to find it.
>
> Oh sorry, it didn't get applied. It doesn't seem to apply to master or
> my branch though, are you able to rebase it
> 
> Alistair

Ok, I'll rebase on the newest branch riscv-to-apply.next and resend this patch.

Regards,
Yechao