[PATCH RESEND v5 14/57] target/loongarch: Implement xvadd/xvsub

2023-09-07 Thread Song Gao
This patch includes: - XVADD.{B/H/W/D/Q}; - XVSUB.{B/H/W/D/Q}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 14 +++ target/loongarch/disas.c| 23 + target/loongarch/translate.c| 4 +

[PATCH RESEND v5 04/57] target/loongarch: Use gen_helper_gvec_4 for 4OP vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 2 +- target/loongarch/vec_helper.c | 11 +-- target/loongarch/insn_trans/trans_vec.c.inc | 22 - 3 files changed, 19 insertions(+), 16 deletions(-) diff --git

[PATCH RESEND v5 17/57] target/loongarch: Implement xvneg

2023-09-07 Thread Song Gao
This patch includes: - XVNEG.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 10 ++ target/loongarch/insn_trans/trans_vec.c.inc | 15 +++ 3 files

[PATCH RESEND v5 48/57] target/loongarch: Implement xvseq xvsle xvslt

2023-09-07 Thread Song Gao
This patch includes: - XVSEQ[I].{B/H/W/D}; - XVSLE[I].{B/H/W/D}[U]; - XVSLT[I].{B/H/W/D/}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 43 target/loongarch/disas.c| 43 target/loongarch/vec_helper.c

[PATCH RESEND v5 57/57] target/loongarch: CPUCFG support LASX

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index a1d3f680d8..fc7f70fbe5 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -393,6 +393,7 @@

[PATCH RESEND v5 32/57] target/loongarch: Implement xvmskltz/xvmskgez/xvmsknz

2023-09-07 Thread Song Gao
This patch includes: - XVMSKLTZ.{B/H/W/D}; - XVMSKGEZ.B; - XVMSKNZ.B. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 7 ++ target/loongarch/disas.c| 7 ++ target/loongarch/vec_helper.c | 78

[PATCH RESEND v5 38/57] target/loongarch: Implement xvsrln xvsran

2023-09-07 Thread Song Gao
This patch includes: - XVSRLN.{B.H/H.W/W.D}; - XVSRAN.{B.H/H.W/W.D}; - XVSRLNI.{B.H/H.W/W.D/D.Q}; - XVSRANI.{B.H/H.W/W.D/D.Q}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 16 ++ target/loongarch/disas.c| 16 ++

[PATCH RESEND v5 10/57] target/loongarch: Replace CHECK_SXE to check_vec(ctx, 16)

2023-09-07 Thread Song Gao
Intrudce a new function check_vec to replace CHECK_SXE Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_vec.c.inc | 248 +++- 1 file changed, 192 insertions(+), 56 deletions(-) diff --git a/target/loongarch/insn_trans/trans_vec.c.inc

[PATCH RESEND v5 50/57] target/loongarch: Implement xvbitsel xvset

2023-09-07 Thread Song Gao
This patch includes: - XVBITSEL.V; - XVBITSELI.B; - XVSET{EQZ/NEZ}.V; - XVSETANYEQZ.{B/H/W/D}; - XVSETALLNEZ.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/helper.h | 16 ++-- target/loongarch/insns.decode | 15

[PATCH RESEND v5 33/57] target/loognarch: Implement xvldi

2023-09-07 Thread Song Gao
This patch includes: - XVLDI. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 2 ++ target/loongarch/disas.c| 7 +++ target/loongarch/insn_trans/trans_vec.c.inc | 13 ++--- 3 files changed, 15

[PATCH RESEND v5 09/57] target/loongarch: Use gen_helper_gvec_2i for 2OP + imm vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 146 +++ target/loongarch/vec_helper.c | 445 +--- target/loongarch/insn_trans/trans_vec.c.inc | 18 +- 3 files changed, 291 insertions(+), 318 deletions(-) diff --git

[PATCH RESEND v5 42/57] target/loongarch: Implement xvclo xvclz

2023-09-07 Thread Song Gao
This patch includes: - XVCLO.{B/H/W/D}; - XVCLZ.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 9 + target/loongarch/disas.c| 9 + target/loongarch/vec_helper.c | 3 ++-

[PATCH RESEND v5 16/57] target/loongarch: Implement xvaddi/xvsubi

2023-09-07 Thread Song Gao
This patch includes: - XVADDI.{B/H/W/D}U; - XVSUBI.{B/H/W/D}U. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 9 +++ target/loongarch/disas.c| 14 +++ target/loongarch/insn_trans/trans_vec.c.inc | 28

[PATCH RESEND v5 07/57] target/loongarch: Use gen_helper_gvec_2_ptr for 2OP + env vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 118 +++--- target/loongarch/vec_helper.c | 161 +++- target/loongarch/insn_trans/trans_vec.c.inc | 129 +--- 3 files changed, 219 insertions(+), 189 deletions(-) diff

[PATCH RESEND v5 00/57] Add LoongArch LASX instructions

2023-09-07 Thread Song Gao
Hi, This series adds LoongArch LASX instructions. About test: We use RISU test the LoongArch LASX instructions. QEMU: https://github.com/loongson/qemu/tree/tcg-old-abi-support-lasx RISU: https://github.com/loongson/risu/tree/loongarch-suport-lasx Please review, Thanks. Changes for v5:

[PATCH RESEND v5 24/57] target/loongarch: Implement xvmax/xvmin

2023-09-07 Thread Song Gao
This patch includes: - XVMAX[I].{B/H/W/D}[U]; - XVMIN[I].{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 36 + target/loongarch/disas.c| 34 +++

[PATCH RESEND v5 21/57] target/loongarch: Implement xavg/xvagr

2023-09-07 Thread Song Gao
This patch includes: - XVAVG.{B/H/W/D/}[U]; - XVAVGR.{B/H/W/D}[U]. Signed-off-by: Song Gao --- target/loongarch/insns.decode | 17 target/loongarch/disas.c| 17 target/loongarch/vec_helper.c | 22

[PATCH RESEND v5 40/57] target/loongarch: Implement xvssrln xvssran

2023-09-07 Thread Song Gao
This patch includes: - XVSSRLN.{B.H/H.W/W.D}; - XVSSRAN.{B.H/H.W/W.D}; - XVSSRLN.{BU.H/HU.W/WU.D}; - XVSSRAN.{BU.H/HU.W/WU.D}; - XVSSRLNI.{B.H/H.W/W.D/D.Q}; - XVSSRANI.{B.H/H.W/W.D/D.Q}; - XVSSRLNI.{BU.H/HU.W/WU.D/DU.Q}; - XVSSRANI.{BU.H/HU.W/WU.D/DU.Q}. Signed-off-by: Song Gao ---

[PATCH RESEND v5 34/57] target/loongarch: Implement LASX logic instructions

2023-09-07 Thread Song Gao
This patch includes: - XV{AND/OR/XOR/NOR/ANDN/ORN}.V; - XV{AND/OR/XOR/NOR}I.B. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 12 +++ target/loongarch/disas.c| 12 +++ target/loongarch/vec_helper.c

[PATCH RESEND v5 30/57] target/loongarch: Implement vext2xv

2023-09-07 Thread Song Gao
This patch includes: - VEXT2XV.{H/W/D}.B, VEXT2XV.{HU/WU/DU}.BU; - VEXT2XV.{W/D}.B, VEXT2XV.{WU/DU}.HU; - VEXT2XV.D.W, VEXT2XV.DU.WU. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/helper.h | 13 ++ target/loongarch/insns.decode

[PATCH RESEND v5 53/57] target/loongarch: Implement xvpack xvpick xvilv{l/h}

2023-09-07 Thread Song Gao
This patch includes: - XVPACK{EV/OD}.{B/H/W/D}; - XVPICK{EV/OD}.{B/H/W/D}; - XVILV{L/H}.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 27 target/loongarch/disas.c| 27

[PATCH RESEND v5 31/57] target/loongarch: Implement xvsigncov

2023-09-07 Thread Song Gao
This patch includes: - XVSIGNCOV.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 5 + target/loongarch/insn_trans/trans_vec.c.inc | 4 3 files changed, 14

[PATCH RESEND v5 39/57] target/loongarch: Implement xvsrlrn xvsrarn

2023-09-07 Thread Song Gao
This patch includes: - XVSRLRN.{B.H/H.W/W.D}; - XVSRARN.{B.H/H.W/W.D}; - XVSRLRNI.{B.H/H.W/W.D/D.Q}; - XVSRARNI.{B.H/H.W/W.D/D.Q}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 16 ++ target/loongarch/disas.c| 16

[PATCH RESEND v5 29/57] target/loongarch: Implement xvexth

2023-09-07 Thread Song Gao
This patch includes: - XVEXTH.{H.B/W.H/D.W/Q.D}; - XVEXTH.{HU.BU/WU.HU/DU.WU/QU.DU}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 9 ++ target/loongarch/disas.c| 9 ++ target/loongarch/vec_helper.c

[PATCH RESEND v5 45/57] target/loongarch: Implement xvfrstp

2023-09-07 Thread Song Gao
This patch includes: - XVFRSTP[I].{B/H}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 5 target/loongarch/disas.c| 5 target/loongarch/vec_helper.c | 32 +

[PATCH RESEND v5 28/57] target/loongarch: Implement xvsat

2023-09-07 Thread Song Gao
This patch includes: - XVSAT.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 9 target/loongarch/disas.c| 9 target/loongarch/vec_helper.c | 48 +++--

[PATCH RESEND v5 47/57] target/loongarch: Implement LASX fpu fcvt instructions

2023-09-07 Thread Song Gao
This patch includes: - XVFCVT{L/H}.{S.H/D.S}; - XVFCVT.{H.S/S.D}; - XVFRINT[{RNE/RZ/RP/RM}].{S/D}; - XVFTINT[{RNE/RZ/RP/RM}].{W.S/L.D}; - XVFTINT[RZ].{WU.S/LU.D}; - XVFTINT[{RNE/RZ/RP/RM}].W.D; - XVFTINT[{RNE/RZ/RP/RM}]{L/H}.L.S; - XVFFINT.{S.W/D.L}[U]; - X[CVFFINT.S.L, VFFINT{L/H}.D.W.

[PATCH RESEND v5 52/57] target/loongarch: Implement xvreplve xvinsve0 xvpickve

2023-09-07 Thread Song Gao
This patch includes: - XVREPLVE.{B/H/W/D}; - XVREPL128VEI.{B/H/W/D}; - XVREPLVE0.{B/H/W/D/Q}; - XVINSVE0.{W/D}; - XVPICKVE.{W/D}; - XVBSLL.V, XVBSRL.V. Signed-off-by: Song Gao --- target/loongarch/helper.h | 5 + target/loongarch/insns.decode | 25 ++

[PATCH RESEND v5 46/57] target/loongarch: Implement LASX fpu arith instructions

2023-09-07 Thread Song Gao
This patch includes: - XVF{ADD/SUB/MUL/DIV}.{S/D}; - XVF{MADD/MSUB/NMADD/NMSUB}.{S/D}; - XVF{MAX/MIN}.{S/D}; - XVF{MAXA/MINA}.{S/D}; - XVFLOGB.{S/D}; - XVFCLASS.{S/D}; - XVF{SQRT/RECIP/RSQRT}.{S/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode

[PATCH RESEND v5 35/57] target/loongarch: Implement xvsll xvsrl xvsra xvrotr

2023-09-07 Thread Song Gao
This patch includes: - XVSLL[I].{B/H/W/D}; - XVSRL[I].{B/H/W/D}; - XVSRA[I].{B/H/W/D}; - XVROTR[I].{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 33 +++ target/loongarch/disas.c| 36

[PATCH RESEND v5 23/57] target/loongarch: Implement xvadda

2023-09-07 Thread Song Gao
This patch includes: - XVADDA.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/insns.decode | 5 target/loongarch/disas.c| 5 target/loongarch/vec_helper.c | 30 +++--

[PATCH RESEND v5 19/57] target/loongarch: Implement xvhaddw/xvhsubw

2023-09-07 Thread Song Gao
This patch includes: - XVHADDW.{H.B/W.H/D.W/Q.D/HU.BU/WU.HU/DU.WU/QU.DU}; - XVHSUBW.{H.B/W.H/D.W/Q.D/HU.BU/WU.HU/DU.WU/QU.DU}. Signed-off-by: Song Gao --- target/loongarch/insns.decode | 18 +++ target/loongarch/disas.c| 17 +++

[PATCH RESEND v5 05/57] target/loongarch: Use gen_helper_gvec_3_ptr for 3OP + env vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 48 +++ target/loongarch/vec_helper.c | 50 target/loongarch/insn_trans/trans_vec.c.inc | 66 + 3 files changed, 91 insertions(+), 73 deletions(-) diff --git

[PATCH RESEND v5 02/57] target/loongarch: Implement gvec_*_vl functions

2023-09-07 Thread Song Gao
Using gvec_*_vl functions hides oprsz. We can use gvec_v* for oprsz 16. and gvec_v* for oprsz 32. Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_vec.c.inc | 68 + 1 file changed, 44 insertions(+), 24 deletions(-) diff --git

[PATCH RESEND v5 11/57] target/loongarch: Add LASX data support

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson --- target/loongarch/cpu.h | 24 -- target/loongarch/internals.h| 22 target/loongarch/vec.h | 33 ++ linux-user/loongarch64/signal.c | 1 +

Re: [PATCH v3 15/32] target/s390x: Use generic helper to show CPU model names

2023-09-07 Thread Thomas Huth
On 07/09/2023 02.35, Gavin Shan wrote: For target/s390x, the CPU type name is always the combination of the CPU modle name and suffix. The CPU model names have been correctly s/modle/model/ Thomas

Re: [PATCH v22 14/20] tests/avocado: s390x cpu topology core

2023-09-07 Thread Thomas Huth
On 01/09/2023 17.58, Nina Schoetterl-Glausch wrote: From: Pierre Morel Introduction of the s390x cpu topology core functions and basic tests. We test the correlation between the command line and the QMP results in query-cpus-fast for various CPU topology. Signed-off-by: Pierre Morel ---

Re: [PATCH v5 00/57] Add LoongArch LASX instructions

2023-09-07 Thread gaosong
Please ignore this series. I will resend. Thanks. Song Gao 在 2023/9/7 下午4:08, Song Gao 写道: Hi, This series adds LoongArch LASX instructions. About test: We use RISU test the LoongArch LASX instructions. QEMU: https://github.com/loongson/qemu/tree/tcg-old-abi-support-lasx RISU:

Re: [PATCH v3 15/32] target/s390x: Use generic helper to show CPU model names

2023-09-07 Thread David Hildenbrand
On 07.09.23 02:35, Gavin Shan wrote: For target/s390x, the CPU type name is always the combination of the CPU modle name and suffix. The CPU model names have been correctly shown in s390_print_cpu_model_list_entry() and create_cpu_model_list(). Use generic helper cpu_model_from_type() to show

Re: [PATCH v7 2/4] virtio-dmabuf: introduce virtio-dmabuf

2023-09-07 Thread Philippe Mathieu-Daudé
On 7/9/23 09:43, Albert Esteve wrote: This API manages objects (in this iteration, dmabuf fds) that can be shared along different virtio devices, associated to a UUID. The API allows the different devices to add, remove and/or retrieve the objects by simply invoking the public functions that

Re: [PULL 00/14] Block layer patches

2023-09-07 Thread Kevin Wolf
Am 06.09.2023 um 17:13 hat Stefan Hajnoczi geschrieben: > test-bdrv-drain is failing. I think my coroutine wrapper patch might > be necessary: > https://gitlab.com/qemu-project/qemu/-/jobs/5029372308#L4907 > > I have dropped this patch series for the time being. Feel free to > remove my patches

Re: [PATCH v22 13/20] docs/s390x/cpu topology: document s390x cpu topology

2023-09-07 Thread Thomas Huth
On 01/09/2023 17.58, Nina Schoetterl-Glausch wrote: From: Pierre Morel Add some basic examples for the definition of cpu topology in s390x. Signed-off-by: Pierre Morel Co-developed-by: Nina Schoetterl-Glausch Signed-off-by: Nina Schoetterl-Glausch --- ... diff --git

[PATCH v5 01/57] target/loongarch: Renamed lsx*.c to vec* .c

2023-09-07 Thread Song Gao
Renamed lsx_helper.c to vec_helper.c and trans_lsx.c.inc to trans_vec.c.inc So LASX can used them. Signed-off-by: Song Gao --- target/loongarch/translate.c| 2 +- target/loongarch/{lsx_helper.c => vec_helper.c} | 2 +-

[PATCH v5 10/57] target/loongarch: Replace CHECK_SXE to check_vec(ctx, 16)

2023-09-07 Thread Song Gao
Intrudce a new function check_vec to replace CHECK_SXE Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_vec.c.inc | 248 +++- 1 file changed, 192 insertions(+), 56 deletions(-) diff --git a/target/loongarch/insn_trans/trans_vec.c.inc

[PATCH v5 04/57] target/loongarch: Use gen_helper_gvec_4 for 4OP vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 2 +- target/loongarch/vec_helper.c | 11 +-- target/loongarch/insn_trans/trans_vec.c.inc | 22 - 3 files changed, 19 insertions(+), 16 deletions(-) diff --git

[PATCH v5 05/57] target/loongarch: Use gen_helper_gvec_3_ptr for 3OP + env vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 48 +++ target/loongarch/vec_helper.c | 50 target/loongarch/insn_trans/trans_vec.c.inc | 66 + 3 files changed, 91 insertions(+), 73 deletions(-) diff --git

[PATCH v5 03/57] target/loongarch: Use gen_helper_gvec_4_ptr for 4OP + env vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 16 +- target/loongarch/vec_helper.c | 12 +++ target/loongarch/insn_trans/trans_vec.c.inc | 35 - 3 files changed, 41 insertions(+), 22 deletions(-) diff --git

[PATCH v5 00/57] Add LoongArch LASX instructions

2023-09-07 Thread Song Gao
Hi, This series adds LoongArch LASX instructions. About test: We use RISU test the LoongArch LASX instructions. QEMU: https://github.com/loongson/qemu/tree/tcg-old-abi-support-lasx RISU: https://github.com/loongson/risu/tree/loongarch-suport-lasx Please review, Thanks. Changes for v5:

[PATCH v5 09/57] target/loongarch: Use gen_helper_gvec_2i for 2OP + imm vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 146 +++ target/loongarch/vec_helper.c | 445 +--- target/loongarch/insn_trans/trans_vec.c.inc | 18 +- 3 files changed, 291 insertions(+), 318 deletions(-) diff --git

[PATCH v5 06/57] target/loongarch: Use gen_helper_gvec_3 for 3OP vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 214 +- target/loongarch/vec_helper.c | 444 +--- target/loongarch/insn_trans/trans_vec.c.inc | 19 +- 3 files changed, 326 insertions(+), 351 deletions(-) diff --git

[PATCH v5 08/57] target/loongarch: Use gen_helper_gvec_2 for 2OP vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 58 - target/loongarch/vec_helper.c | 124 ++-- target/loongarch/insn_trans/trans_vec.c.inc | 16 ++- 3 files changed, 101 insertions(+), 97 deletions(-) diff --git

[PATCH v5 02/57] target/loongarch: Implement gvec_*_vl functions

2023-09-07 Thread Song Gao
Using gvec_*_vl functions hides oprsz. We can use gvec_v* for oprsz 16. and gvec_v* for oprsz 32. Signed-off-by: Song Gao --- target/loongarch/insn_trans/trans_vec.c.inc | 68 + 1 file changed, 44 insertions(+), 24 deletions(-) diff --git

[PATCH v5 07/57] target/loongarch: Use gen_helper_gvec_2_ptr for 2OP + env vector instructions

2023-09-07 Thread Song Gao
Signed-off-by: Song Gao --- target/loongarch/helper.h | 118 +++--- target/loongarch/vec_helper.c | 161 +++- target/loongarch/insn_trans/trans_vec.c.inc | 129 +--- 3 files changed, 219 insertions(+), 189 deletions(-) diff

[PATCH v7 3/4] vhost-user: add shared_object msg

2023-09-07 Thread Albert Esteve
Add three new vhost-user protocol `VHOST_USER_BACKEND_SHARED_OBJECT_* messages`. These new messages are sent from vhost-user back-ends to interact with the virtio-dmabuf table in order to add or remove themselves as virtio exporters, or lookup for virtio dma-buf shared objects. The action taken

[PATCH v7 2/4] virtio-dmabuf: introduce virtio-dmabuf

2023-09-07 Thread Albert Esteve
This API manages objects (in this iteration, dmabuf fds) that can be shared along different virtio devices, associated to a UUID. The API allows the different devices to add, remove and/or retrieve the objects by simply invoking the public functions that reside in the virtio-dmabuf file. For

[PATCH v7 1/4] uuid: add a hash function

2023-09-07 Thread Albert Esteve
Add hash function to uuid module using the djb2 hash algorithm. Add a couple simple unit tests for the hash function, checking collisions for similar UUIDs. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Albert Esteve --- include/qemu/uuid.h| 2 ++ tests/unit/test-uuid.c | 27

[PATCH v7 4/4] libvhost-user: handle shared_object msg

2023-09-07 Thread Albert Esteve
In the libvhost-user library we need to handle VHOST_USER_GET_SHARED_OBJECT requests, and add helper functions to allow sending messages to interact with the virtio shared objects hash table. Signed-off-by: Albert Esteve --- subprojects/libvhost-user/libvhost-user.c | 120 ++

[PATCH v7 0/4] Virtio shared dma-buf

2023-09-07 Thread Albert Esteve
v1 link -> https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg00598.html v2 link -> https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg04530.html v3 link -> https://lists.gnu.org/archive/html/qemu-devel/2023-05/msg06126.html v4 link ->

Re: [PATCH v3 12/32] target/ppc: Use generic helper to show CPU model names

2023-09-07 Thread Cédric Le Goater
On 9/7/23 02:35, Gavin Shan wrote: For target/ppc, the CPU type name can be: (1) The combination of the CPU model name and suffix; (2) the type name of the class whose PVR matches with the specified one; (3) alias of the CPU model, plus suffix; (4) MachineClass::default_cpu_type when the CPU

Re: [PATCH 1/2] tcg: Add gvec compare with immediate and scalar operand

2023-09-07 Thread gaosong
Hi, Richard 在 2023/8/31 上午11:09, Richard Henderson 写道: Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime.h | 25 ++ include/tcg/tcg-op-gvec-common.h | 6 ++ accel/tcg/tcg-runtime-gvec.c | 26 ++ tcg/tcg-op-gvec.c| 150

Re: [PATCH] hw/riscv: split RAM into low and high memory

2023-09-07 Thread Philippe Mathieu-Daudé
Widening Cc to ARM/VFIO. On 4/8/23 11:15, Wu, Fei wrote: On 8/3/2023 11:07 PM, Andrew Jones wrote: On Mon, Jul 31, 2023 at 09:53:17AM +0800, Fei Wu wrote: riscv virt platform's memory started at 0x8000 and straddled the 4GiB boundary. Curiously enough, this choice of a memory layout will

[PATCH v2] hw/loongarch: Add virtio-mmio bus support

2023-09-07 Thread Tianrui Zhao
Add virtio-mmio bus support for LoongArch, so that devices could be added in the virtio-mmio bus. And add it's address info and interrupt number into fdt and dsdt. Signed-off-by: Tianrui Zhao --- hw/loongarch/Kconfig | 1 + hw/loongarch/acpi-build.c | 20

[PATCH] target/riscv: pmp: Clear pmp/smepmp bits on reset

2023-09-07 Thread Mayuresh Chitale
As per the Priv and Smepmp specifications, certain bits such as the 'L' bit of pmp entries and mseccfg.MML can only be cleared upon reset and it is necessary to do so to allow 'M' mode firmware to correctly reinitialize the pmp/smpemp state across reboots. Signed-off-by: Mayuresh Chitale ---

Re: [PATCH v6 3/3] vhost-user: add shared_object msg

2023-09-07 Thread Philippe Mathieu-Daudé
On 6/9/23 18:18, Albert Esteve wrote: So: - Regarding the two functions with the same, seems to be solved with the squash before,   and it was probably causing the compile error to begin with, so one less thing to worry about! - Regarding splitting the commit, sure, no

Re: [PATCH v5 20/20] linux-user/s390x: Add vdso

2023-09-07 Thread Philippe Mathieu-Daudé
On 6/9/23 19:56, Richard Henderson wrote: On 9/4/23 08:00, Alex Bennée wrote: Due to the b4 dropping the vdso.so in the patch this fails:    Program build-vdso.sh found: YES (/home/alex/lsrc/qemu.git/linux-user/build-vdso.sh)    ../../linux-user/s390x/meson.build:24:0: ERROR: File vdso.so

Re: [PULL for-6.2 0/7] Ide patches

2023-09-07 Thread Philippe Mathieu-Daudé
On 7/9/23 05:43, John Snow wrote: I guess the last time I sent IDE patches was for 6.2 and that tag got stuck in my git-publish invocation, oops. I am not suggesting we break the laws of causality to merge these patches. lol On Wed, Sep 6, 2023 at 11:42 PM John Snow wrote: The following

<    1   2   3   4