RE: [virtio-dev] Re: [virtio-comment] Re: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Parav Pandit
> From: Chen, Jiqian > Sent: Wednesday, September 20, 2023 12:03 PM > If driver write 0 to reset device, can the SUSPEND bit be cleared? It must as reset operation, resets everything else and so the suspend too. > (pci_pm_resume->virtio_pci_restore->virtio_device_restore- > >virtio_reset_device

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-7-gaos...@loongson.cn> --- target/loongarch/helper.h | 214 +- target/loongarch/vec_helper.c | 444 +--- target/loongarch/insn_trans/trans_vec.c.inc

[PULL 49/57] target/loongarch: Implement xvfcmp

2023-09-19 Thread Song Gao
This patch includes: - XVFCMP.cond.{S/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-50-gaos...@loongson.cn> --- target/loongarch/helper.h | 8 +- target/loongarch/insns.decode | 3 + target/loongarch/disas.c

[PULL 54/57] target/loongarch: Implement xvshuf xvperm{i} xvshuf4i

2023-09-19 Thread Song Gao
This patch includes: - XVSHUF.{B/H/W/D}; - XVPERM.W; - XVSHUF4i.{B/H/W/D}; - XVPERMI.{W/D/Q}; - XVEXTRINS.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-55-gaos...@loongson.cn> --- target/loongarch/helper.h | 3 + target

[PULL 15/57] target/loongarch: Implement xvreplgr2vr

2023-09-19 Thread Song Gao
This patch includes: - XVREPLGR2VR.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-16-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 10 + target/loongar

[PULL 21/57] target/loongarch: Implement xavg/xvagr

2023-09-19 Thread Song Gao
This patch includes: - XVAVG.{B/H/W/D/}[U]; - XVAVGR.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-22-gaos...@loongson.cn> --- target/loongarch/insns.decode | 17 target/loongarch/disas.c

[PULL 38/57] target/loongarch: Implement xvsrln xvsran

2023-09-19 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 Message-Id: <20230914022645.1151356-39-gaos...@loongson.cn> --- target/loongarch/insns.decode | 16

[PULL 30/57] target/loongarch: Implement vext2xv

2023-09-19 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 Message-Id: <20230914022645.1151356-31-gaos...@loongson.cn> --- target/loongarch/helper.h

[PULL 29/57] target/loongarch: Implement xvexth

2023-09-19 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 Message-Id: <20230914022645.1151356-30-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 ++ target/loongarch/disas.c

[PULL 57/57] target/loongarch: CPUCFG support LASX

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-58-gaos...@loongson.cn> --- 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/loong

[PULL 23/57] target/loongarch: Implement xvadda

2023-09-19 Thread Song Gao
This patch includes: - XVADDA.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-24-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 target/loongarch/disas.c| 5 target/loongarch/vec_help

[PULL 50/57] target/loongarch: Implement xvbitsel xvset

2023-09-19 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 Message-Id: <20230914022645.1151356-51-gaos...@loongson.cn> --- target/loongarch/helper.h | 16 ++-- t

[PULL 40/57] target/loongarch: Implement xvssrln xvssran

2023-09-19 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 Reviewed-by: Richa

[PULL 56/57] target/loongarch: Move simply DO_XX marcos togther

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-57-gaos...@loongson.cn> --- target/loongarch/vec.h| 42 ++ target/loongarch/vec_helper.c | 48 --- 2 files changed, 42 insertions(+), 48

[PULL 42/57] target/loongarch: Implement xvclo xvclz

2023-09-19 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 Message-Id: <20230914022645.1151356-43-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 + target/loongarch/disas.c| 9 +

[PULL 39/57] target/loongarch: Implement xvsrlrn xvsrarn

2023-09-19 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 Message-Id: <20230914022645.1151356-40-gaos...@loongson.cn> --- target/loongarch/insns.decode |

[PULL 26/57] target/loongarch: Implement xvmadd/xvmsub/xvmaddw{ev/od}

2023-09-19 Thread Song Gao
This patch includes: - XVMADD.{B/H/W/D}; - XVMSUB.{B/H/W/D}; - XVMADDW{EV/OD}.{H.B/W.H/D.W/Q.D}[U]; - XVMADDW{EV/OD}.{H.BU.B/W.HU.H/D.WU.W/Q.DU.D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-27-gaos...@loongson.cn> --- target/loongarch/insns.decod

[PULL 52/57] target/loongarch: Implement xvreplve xvinsve0 xvpickve

2023-09-19 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 Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-53-gaos...@loongson.cn> --- target/loongarch/helper.

[PULL 37/57] target/loongarch: Implement xvsrlr xvsrar

2023-09-19 Thread Song Gao
This patch includes: - XVSRLR[I].{B/H/W/D}; - XVSRAR[I].{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-38-gaos...@loongson.cn> --- target/loongarch/insns.decode | 17 + target/loongarch/disas.c

[PULL 32/57] target/loongarch: Implement xvmskltz/xvmskgez/xvmsknz

2023-09-19 Thread Song Gao
This patch includes: - XVMSKLTZ.{B/H/W/D}; - XVMSKGEZ.B; - XVMSKNZ.B. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-33-gaos...@loongson.cn> --- target/loongarch/insns.decode | 7 ++ target/loongarch/disas.c| 7 ++

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

2023-09-19 Thread Song Gao
Introduce a new function check_vec to replace CHECK_SXE Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-11-gaos...@loongson.cn> --- target/loongarch/insn_trans/trans_vec.c.inc | 248 +++- 1 file changed, 192 insertions(+), 56 deletions(

[PULL 11/57] target/loongarch: Add LASX data support

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-12-gaos...@loongson.cn> --- target/loongarch/cpu.h | 24 -- target/loongarch/internals.h| 22 target/loongarch/vec.h | 33

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

2023-09-19 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 Message-Id: <20230914022645.1151356-54-gaos...@loongson.cn> --- target/loongarch/insns.decode | 27 target/loongarch/disa

[PULL 46/57] target/loongarch: Implement LASX fpu arith instructions

2023-09-19 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 Message-Id: <20230914022645.1151356-47-gao

[PULL 43/57] target/loongarch: Implement xvpcnt

2023-09-19 Thread Song Gao
This patch includes: - VPCNT.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-44-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 5 + target/loongarch/vec_helpe

[PULL 47/57] target/loongarch: Implement LASX fpu fcvt instructions

2023-09-19 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. Signed-off

[PULL 12/57] target/loongarch: check_vec support check LASX instructions

2023-09-19 Thread Song Gao
Reviewed-by: Richard Henderson Signed-off-by: Song Gao Message-Id: <20230914022645.1151356-13-gaos...@loongson.cn> --- target/loongarch/cpu.h | 2 ++ target/loongarch/cpu.c | 2 ++ target/loongarch/insn_trans/trans_vec.c.inc | 6 ++ 3 files changed,

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

2023-09-19 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 Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-2-gaos...@loongson.cn> --- target/loongarch/translate.c| 2 +- target

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-8-gaos...@loongson.cn> --- target/loongarch/helper.h | 118 +++--- target/loongarch/vec_helper.c | 161 +++- target/loongarch/insn_trans/trans_vec.c.

[PULL 45/57] target/loongarch: Implement xvfrstp

2023-09-19 Thread Song Gao
This patch includes: - XVFRSTP[I].{B/H}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-46-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 target/loongarch/disas.c| 5 target/loongarch/vec_help

[PULL 35/57] target/loongarch: Implement xvsll xvsrl xvsra xvrotr

2023-09-19 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 Message-Id: <20230914022645.1151356-36-gaos...@loongson.cn> --- target/loongarch/insns.decode | 33 +

[PULL 24/57] target/loongarch: Implement xvmax/xvmin

2023-09-19 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 Message-Id: <20230914022645.1151356-25-gaos...@loongson.cn> --- target/loongarch/insns.decode | 36 + target/loongarch/disas.c

[PULL 48/57] target/loongarch: Implement xvseq xvsle xvslt

2023-09-19 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 Message-Id: <20230914022645.1151356-49-gaos...@loongson.cn> --- target/loongarch/insns.decode | 43 target/loongarch/disas.c

[PULL 51/57] target/loongarch: Implement xvinsgr2vr xvpickve2gr

2023-09-19 Thread Song Gao
This patch includes: - XVINSGR2VR.{W/D}; - XVPICKVE2GR.{W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-52-gaos...@loongson.cn> --- target/loongarch/insns.decode | 7 + target/loongarch/disas.c| 17 ++ targ

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-5-gaos...@loongson.cn> --- target/loongarch/helper.h | 2 +- target/loongarch/vec_helper.c | 11 +-- target/loongarch/insn_trans/trans_vec.c.inc | 22 --

[PULL 13/57] target/loongarch: Add avail_LASX to check LASX instructions

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-14-gaos...@loongson.cn> --- target/loongarch/translate.h | 1 + 1 file changed, 1 insertion(+) diff --git a/target/loongarch/translate.h b/target/loongarch/translate.h index 89b49a859e..195f53573a 100644

[PULL 31/57] target/loongarch: Implement xvsigncov

2023-09-19 Thread Song Gao
This patch includes: - XVSIGNCOV.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-32-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 5 + target/loongarch/insn_

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-9-gaos...@loongson.cn> --- target/loongarch/helper.h | 58 - target/loongarch/vec_helper.c | 124 ++-- target/loongarch/insn_trans/trans_vec.c.inc |

[PULL 33/57] target/loongarch: Implement xvldi

2023-09-19 Thread Song Gao
This patch includes: - XVLDI. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-34-gaos...@loongson.cn> --- target/loongarch/insns.decode | 2 ++ target/loongarch/disas.c| 7 +++ target/loongarch/insn_trans/trans_v

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-10-gaos...@loongson.cn> --- target/loongarch/helper.h | 146 +++ target/loongarch/vec_helper.c | 445 +--- target/loongarch/insn_trans/trans_vec.c.inc |

[PULL 34/57] target/loongarch: Implement LASX logic instructions

2023-09-19 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 Message-Id: <20230914022645.1151356-35-gaos...@loongson.cn> --- target/loongarch/insns.decode | 12 +++ target/loongarch/disas.c

[PULL 17/57] target/loongarch: Implement xvneg

2023-09-19 Thread Song Gao
This patch includes: - XVNEG.{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-18-gaos...@loongson.cn> --- target/loongarch/insns.decode | 5 + target/loongarch/disas.c| 10 ++ target/loongarch/in

[PULL 41/57] target/loongarch: Implement xvssrlrn xvssrarn

2023-09-19 Thread Song Gao
This patch includes: - XVSSRLRN.{B.H/H.W/W.D}; - XVSSRARN.{B.H/H.W/W.D}; - XVSSRLRN.{BU.H/HU.W/WU.D}; - XVSSRARN.{BU.H/HU.W/WU.D}; - XVSSRLRNI.{B.H/H.W/W.D/D.Q}; - XVSSRARNI.{B.H/H.W/W.D/D.Q}; - XVSSRLRNI.{BU.H/HU.W/WU.D/DU.Q}; - XVSSRARNI.{BU.H/HU.W/WU.D/DU.Q}. Signed-off-by: Song Gao Reviewed-b

[PULL 44/57] target/loongarch: Implement xvbitclr xvbitset xvbitrev

2023-09-19 Thread Song Gao
This patch includes: - XVBITCLR[I].{B/H/W/D}; - XVBITSET[I].{B/H/W/D}; - XVBITREV[I].{B/H/W/D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-45-gaos...@loongson.cn> --- target/loongarch/insns.decode | 27 + target/loongarch

[PULL 16/57] target/loongarch: Implement xvaddi/xvsubi

2023-09-19 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 Message-Id: <20230914022645.1151356-17-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 ++ target/loongarch/disas.c| 14 +++

[PULL 27/57] target/loongarch; Implement xvdiv/xvmod

2023-09-19 Thread Song Gao
This patch includes: - XVDIV.{B/H/W/D}[U]; - XVMOD.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-28-gaos...@loongson.cn> --- target/loongarch/insns.decode | 17 + target/loongarch/disas.c

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-4-gaos...@loongson.cn> --- target/loongarch/helper.h | 16 +- target/loongarch/vec_helper.c | 12 +++ target/loongarch/insn_trans/trans_vec.c.inc | 35 ++

[PULL 36/57] target/loongarch: Implement xvsllwil xvextl

2023-09-19 Thread Song Gao
This patch includes: - XVSLLWIL.{H.B/W.H/D.W}; - XVSLLWIL.{HU.BU/WU.HU/DU.WU}; - XVEXTL.Q.D, VEXTL.QU.DU. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-37-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 + target/loongar

[PULL 28/57] target/loongarch: Implement xvsat

2023-09-19 Thread Song Gao
This patch includes: - XVSAT.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-29-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 target/loongarch/disas.c| 9 target/loongarch/vec_he

[PULL 18/57] target/loongarch: Implement xvsadd/xvssub

2023-09-19 Thread Song Gao
This patch includes: - XVSADD.{B/H/W/D}[U]; - XVSSUB.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-19-gaos...@loongson.cn> --- target/loongarch/insns.decode | 18 ++ target/loongarch/disas.c

[PULL 19/57] target/loongarch: Implement xvhaddw/xvhsubw

2023-09-19 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 Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-20-gaos...@loongson.cn> --- target/loongarch/insns.decode | 18

[PULL 14/57] target/loongarch: Implement xvadd/xvsub

2023-09-19 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 Message-Id: <20230914022645.1151356-15-gaos...@loongson.cn> --- target/loongarch/insns.decode | 14 +++ target/loongarch/disas.c| 23 + t

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

2023-09-19 Thread Song Gao
Create gvec_*_vl functions in order to hide oprsz. This is used by gvec_v* functions for oprsz 16, and will be used by gvec_x* functions for oprsz 32. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-3-gaos...@loongson.cn> --- target/loongarch/insn_tran

[PULL 00/57] loongarch-to-apply queue

2023-09-19 Thread Song Gao
The following changes since commit 4907644841e3200aea6475c0f72d3d987e9f3d93: Merge tag 'mem-2023-09-19' of https://github.com/davidhildenbrand/qemu into staging (2023-09-19 13:22:19 -0400) are available in the Git repository at: https://gitlab.com/gaosong/qemu.git tags/pull-loongarch-202309

[PULL 25/57] target/loongarch: Implement xvmul/xvmuh/xvmulw{ev/od}

2023-09-19 Thread Song Gao
This patch includes: - XVMUL.{B/H/W/D}; - XVMUH.{B/H/W/D}[U]; - XVMULW{EV/OD}.{H.B/W.H/D.W/Q.D}[U]; - XVMULW{EV/OD}.{H.BU.B/W.HU.H/D.WU.W/Q.DU.D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-26-gaos...@loongson.cn> --- target/loongarch/insns.decode

[PULL 22/57] target/loongarch: Implement xvabsd

2023-09-19 Thread Song Gao
This patch includes: - XVABSD.{B/H/W/D}[U]. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-23-gaos...@loongson.cn> --- target/loongarch/insns.decode | 9 + target/loongarch/disas.c| 9 + target/loongar

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

2023-09-19 Thread Song Gao
Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-6-gaos...@loongson.cn> --- target/loongarch/helper.h | 48 +++ target/loongarch/vec_helper.c | 50 target/loongarch/insn_trans/trans_vec.c.inc |

[PULL 20/57] target/loongarch: Implement xvaddw/xvsubw

2023-09-19 Thread Song Gao
This patch includes: - XVADDW{EV/OD}.{H.B/W.H/D.W/Q.D}[U]; - XVSUBW{EV/OD}.{H.B/W.H/D.W/Q.D}[U]; - XVADDW{EV/OD}.{H.BU.B/W.HU.H/D.WU.W/Q.DU.D}. Signed-off-by: Song Gao Reviewed-by: Richard Henderson Message-Id: <20230914022645.1151356-21-gaos...@loongson.cn> --- target/loongarch/insns.decode

Re: [virtio-dev] Re: [virtio-comment] Re: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Chen, Jiqian
Hi Lingshan, On 2023/9/20 13:59, Zhu, Lingshan wrote: > > > On 9/19/2023 8:31 PM, Michael S. Tsirkin wrote: >> On Tue, Sep 19, 2023 at 07:42:42PM +0800, Jiqian Chen wrote: >>> When guest vm does S3, Qemu will reset and clear some things of virtio >>> devices, but guest can't aware that, so that

Re: [QEMU PATCH v5 09/13] virtio-gpu: Handle resource blob commands

2023-09-19 Thread Huang Rui via
On Wed, Sep 20, 2023 at 01:54:03PM +0800, Akihiko Odaki wrote: > On 2023/09/20 14:50, Huang Rui wrote: > > On Sat, Sep 16, 2023 at 12:37:29AM +0800, Akihiko Odaki wrote: > >> On 2023/09/16 1:04, Akihiko Odaki wrote: > >>> On 2023/09/15 20:11, Huang Rui wrote: > From: Antonio Caggiano > >

Re: [virtio-comment] Re: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Zhu, Lingshan
On 9/19/2023 8:31 PM, Michael S. Tsirkin wrote: On Tue, Sep 19, 2023 at 07:42:42PM +0800, Jiqian Chen wrote: When guest vm does S3, Qemu will reset and clear some things of virtio devices, but guest can't aware that, so that may cause some problems. For excample, Qemu calls virtio_reset->virt

Re: [QEMU PATCH v5 09/13] virtio-gpu: Handle resource blob commands

2023-09-19 Thread Huang Rui via
On Sat, Sep 16, 2023 at 12:37:29AM +0800, Akihiko Odaki wrote: > On 2023/09/16 1:04, Akihiko Odaki wrote: > > On 2023/09/15 20:11, Huang Rui wrote: > >> From: Antonio Caggiano > >> > >> Support BLOB resources creation, mapping and unmapping by calling the > >> new stable virglrenderer 0.10 interfa

Re: [QEMU PATCH v5 09/13] virtio-gpu: Handle resource blob commands

2023-09-19 Thread Akihiko Odaki
On 2023/09/20 14:50, Huang Rui wrote: On Sat, Sep 16, 2023 at 12:37:29AM +0800, Akihiko Odaki wrote: On 2023/09/16 1:04, Akihiko Odaki wrote: On 2023/09/15 20:11, Huang Rui wrote: From: Antonio Caggiano Support BLOB resources creation, mapping and unmapping by calling the new stable virglren

Re: [PATCH v3 2/4] hw/cxl: Use switch statements for read and write of cachemem registers

2023-09-19 Thread Michael Tokarev
19.09.2023 12:34, Jonathan Cameron via wrote: Establishing that only register accesses of size 4 and 8 can occur using these functions requires looking at their callers. Make it easier to see that by using switch statements. Assertions are used to enforce that the register storage is of the match

Re: [PATCH v2 0/3] hw/cxl: Misc small fixes

2023-09-19 Thread Michael Tokarev
19.09.2023 13:19, Jonathan Cameron via wrote: v2: - Tag collection. - Patch 2 discussion on appropriate license concluded that this should have originally only been accepted on GPL-v2 and later. However, I've left it as GPL-v2-only as that is what was used for other CXL files and

Re: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Chen, Jiqian
Hi Michael S. Tsirkin, On 2023/9/19 20:31, Michael S. Tsirkin wrote: > On Tue, Sep 19, 2023 at 07:42:42PM +0800, Jiqian Chen wrote: >> When guest vm does S3, Qemu will reset and clear some things of virtio >> devices, but guest can't aware that, so that may cause some problems. >> For excample, Qe

stable-8.1.1: which bug do we keep?

2023-09-19 Thread Michael Tokarev
Hi! I'm in somewhat doubt what to do with 8.1.1 release. There are 2 compelling issues, fixing one discovers the other. https://gitlab.com/qemu-project/qemu/-/issues/1864 "x86 VM with TCG and SMP fails to start on 8.1.0" is fixed by 0d58c660689f "softmmu: Use async_run_on_cpu in tcg_commit" Bu

RE: [virtio-dev] RE: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Parav Pandit
> From: Chen, Jiqian > Sent: Wednesday, September 20, 2023 9:28 AM > >> For above purpose, we need a mechanism that allows guests and QEMU to > >> negotiate their reset behavior. So this patch add a new parameter > >> named > > Freeze != reset. :) > > Please fix it to say freeze or suspend. > B

Re: [virtio-dev] RE: [VIRTIO PCI PATCH v5 1/1] transport-pci: Add freeze_mode to virtio_pci_common_cfg

2023-09-19 Thread Chen, Jiqian
Hi Parav, On 2023/9/19 20:10, Parav Pandit wrote: > Hi Jiqian, > >> From: Jiqian Chen >> Sent: Tuesday, September 19, 2023 5:13 PM >> >> When guest vm does S3, Qemu will reset and clear some things of virtio >> devices, but guest can't aware that, so that may cause some problems. > It is not tru

RE: [PATCH v1 15/22] Add iommufd configure option

2023-09-19 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, September 20, 2023 1:08 AM >Subject: Re: [PATCH v1 15/22] Add iommufd configure option > >On 8/30/23 12:37, Zhenzhong Duan wrote: >> This adds "--enable-iommufd/--disable-iommufd" to enable or disable >> iommufd support, enabl

RE: [PATCH v1 14/22] vfio/common: Simplify vfio_viommu_preset()

2023-09-19 Thread Duan, Zhenzhong
>-Original Message- >From: Cédric Le Goater >Sent: Wednesday, September 20, 2023 12:01 AM >Subject: Re: [PATCH v1 14/22] vfio/common: Simplify vfio_viommu_preset() > >On 8/30/23 12:37, Zhenzhong Duan wrote: >> Commit "vfio/container-base: Introduce [attach/detach]_device container >callb

Re: [PATCH v2 0/8] ACPI: X86 AML generation and GPE tracing cleanup

2023-09-19 Thread Michael S. Tsirkin
On Tue, Sep 19, 2023 at 07:47:09PM +, Bernhard Beschow wrote: > > > Am 8. September 2023 08:42:26 UTC schrieb Bernhard Beschow > : > >This series contains changes from my effort to bring the VIA south bridges to > > > >the PC machine [1]. The first part of the series resolves the > > > >Acpi

ping: Re: [PATCH] cpu-throttle: Fix vcpu missed throttle work

2023-09-19 Thread alloc young
Hi pbonzini: please take some to review this patch. It fixes autoconverge migration issue for heavy memory dirty pages. Any comment will be welcome, Thx. On 2023/9/18 11:29, alloc.yo...@outlook.com wrote: From: alloc During migrations, vcpu may run longer than 10ms and not exit on time. I

Re: [RFC PATCH v2 03/21] HostMem: Add private property and associate it with RAM_KVM_GMEM

2023-09-19 Thread Xiaoyao Li
On 9/19/2023 5:46 PM, Markus Armbruster wrote: Xiaoyao Li writes: From: Isaku Yamahata Add a new property "private" to memory backends. When it's set to true, it indicates the RAMblock of the backend also requires kvm gmem. Can you add a brief explanation why you need the property? It pr

[PATCH v2 4/4] target/ppc: Add migration support for BHRB

2023-09-19 Thread Glenn Miles
Adds migration support for Branch History Rolling Buffer (BHRB) internal state. Signed-off-by: Glenn Miles --- target/ppc/machine.c | 21 + 1 file changed, 21 insertions(+) diff --git a/target/ppc/machine.c b/target/ppc/machine.c index d42e475bfb..ba328ad5e2 100644 --- a/tar

[PATCH v2 1/4] target/ppc: Add new hflags to support BHRB

2023-09-19 Thread Glenn Miles
This commit is preparatory to the addition of Branch History Rolling Buffer (BHRB) functionality, which is being provided today starting with the P8 processor. BHRB uses several SPR register fields to control whether or not a branch instruction's address (and sometimes target address) should be re

[PATCH v2 3/4] target/ppc: Add clrbhrb and mfbhrbe instructions

2023-09-19 Thread Glenn Miles
Add support for the clrbhrb and mfbhrbe instructions. Since neither instruction is believed to be critical to performance, both instructions were implemented using helper functions. Access to both instructions is controlled by bits in the HFSCR (for privileged state) and MMCR0 (for problem state)

Re: [PATCH 4/4] target/ppc: Add migration support for BHRB

2023-09-19 Thread Glenn Miles
On 2023-09-14 20:20, Nicholas Piggin wrote: On Wed Sep 13, 2023 at 6:25 AM AEST, Glenn Miles wrote: Adds migration support for Branch History Rolling Buffer (BHRB) internal state. Signed-off-by: Glenn Miles --- target/ppc/machine.c | 23 +++ 1 file changed, 23 insertions(+

[PATCH v2 2/4] target/ppc: Add recording of taken branches to BHRB

2023-09-19 Thread Glenn Miles
This commit continues adding support for the Branch History Rolling Buffer (BHRB) as is provided starting with the P8 processor and continuing with its successors. This commit is limited to the recording and filtering of taken branches. The following changes were made: - Added a BHRB buffer fo

[PATCH v2 0/4] Add BHRB Facility Support

2023-09-19 Thread Glenn Miles
This is a series of patches for adding support for the Branch History Rolling Buffer (BHRB) facility. This was added to the Power ISA starting with version 2.07. Changes were subsequently made in version 3.1 to limit BHRB recording to instructions run in problem state only and to add a control bi

Re: [QEMU PATCH v5 07/13] softmmu/memory: enable automatic deallocation of memory regions

2023-09-19 Thread Akihiko Odaki
On 2023/09/19 23:21, Xenia Ragiadakou wrote: On 19/9/23 13:44, Akihiko Odaki wrote: On 2023/09/19 19:28, Xenia Ragiadakou wrote: On 15/9/23 18:11, Akihiko Odaki wrote: On 2023/09/15 20:11, Huang Rui wrote: From: Xenia Ragiadakou When the memory region has a different life-cycle from that

Re: [PATCH v11 6/9] gfxstream + rutabaga: add initial support for gfxstream

2023-09-19 Thread Akihiko Odaki
On 2023/09/20 3:36, Bernhard Beschow wrote: Am 15. September 2023 02:38:02 UTC schrieb Gurchetan Singh : On Thu, Sep 14, 2023 at 12:23 AM Bernhard Beschow wrote: Am 14. September 2023 04:38:51 UTC schrieb Gurchetan Singh < gurchetansi...@chromium.org>: On Wed, Sep 13, 2023 at 4:58 AM Be

Re: [PATCH 3/4] target/ppc: Add clrbhrb and mfbhrbe instructions

2023-09-19 Thread Glenn Miles
On 2023-09-14 20:13, Nicholas Piggin wrote: On Wed Sep 13, 2023 at 6:24 AM AEST, Glenn Miles wrote: Add support for the clrbhrb and mfbhrbe instructions. Since neither instruction is believed to be critical to performance, both instructions were implemented using helper functions. Access to bo

Re: [PATCH 2/4] target/ppc: Add recording of taken branches to BHRB

2023-09-19 Thread Glenn Miles
On 2023-09-14 20:02, Nicholas Piggin wrote: On Wed Sep 13, 2023 at 6:24 AM AEST, Glenn Miles wrote: This commit continues adding support for the Branch History Rolling Buffer (BHRB) as is provided starting with the P8 processor and continuing with its successors. This commit is limited to the r

Re: [PATCH 1/4] target/ppc: Add new hflags to support BHRB

2023-09-19 Thread Glenn Miles
On 2023-09-14 19:39, Nicholas Piggin wrote: On Wed Sep 13, 2023 at 6:23 AM AEST, Glenn Miles wrote: This commit is preparatory to the addition of Branch History Rolling Buffer (BHRB) functionality, which is being provided today starting with the P8 processor. BHRB uses several SPR register fiel

Re: qemu-riscv32 usermode still broken?

2023-09-19 Thread Andreas K. Huettel
Hi Alistair, > It would be great to get a strace of the failure to narrow down what > it is. From there it should be not too hard to find and fix. thanks a lot. Here's as much info as I could get with strace mechanisms. 1) What I did, without any tracing pinacolada ~ # qemu-riscv32 -L /var/lib

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

2023-09-19 Thread Daniel Henrique Barboza
On 9/6/23 21:35, Gavin Shan wrote: For target/riscv, the CPU type name is always the combination of the CPU model name and suffix. The CPU model names have been correctly shown in riscv_cpu_list_entry() and riscv_cpu_add_definition() Use generic helper cpu_mdoel_from_type() to show the CPU mo

[PATCH v3 01/10] qapi: fix example of get-win32-socket command

2023-09-19 Thread Victor Toso
Example output lacks double quotes. Fix it. Fixes: 4cda177c60 "qmp: add 'get-win32-socket'" Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/misc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/misc.json b/qapi/mis

[PATCH v3 09/10] qapi: fix example of query-spice command

2023-09-19 Thread Victor Toso
Example output has a comment embedded in the array. Remove it. The end result is a list of size 2. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé --- qapi/ui.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qapi/ui.json b/qapi/ui.json index 006616aa77..6ed3

[PATCH v3 07/10] qapi: fix example of query-blockstats command

2023-09-19 Thread Victor Toso
Example output has several missing commas. Add them. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/block-core.json | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/qapi/block-core.json b/

[PATCH v3 05/10] qapi: fix example of calc-dirty-rate command

2023-09-19 Thread Victor Toso
Example output has property name with single quotes. Fix it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 265

[PATCH v3 02/10] qapi: fix example of dumpdtb command

2023-09-19 Thread Victor Toso
Example output has extra end curly bracket. Switch with comma. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/machine.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/machine.json b/qapi/machine.json index a08b657

[PATCH v3 10/10] qapi: scripts: add a generator for qapi's examples

2023-09-19 Thread Victor Toso
This generator has two goals: 1. Mechanical validation of QAPI examples 2. Generate the examples in a JSON format to be consumed for extra validation. The generator iterates over every Example section, parsing both server and client messages. The generator prints any inconsistency found, for

[PATCH v3 06/10] qapi: fix example of NETDEV_STREAM_CONNECTED event

2023-09-19 Thread Victor Toso
Example output was using single quotes. Fix it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/net.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi/net.json b/qapi/net.json index 313c8a606e..81988e499a 10064

[PATCH v3 04/10] qapi: fix example of set-vcpu-dirty-limit command

2023-09-19 Thread Victor Toso
Example output has extra end curly bracket. Remove it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 9385b9f87

[PATCH v3 03/10] qapi: fix example of cancel-vcpu-dirty-limit command

2023-09-19 Thread Victor Toso
Example output has extra end curly bracket. Remove it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé Reviewed-by: Markus Armbruster --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 8843e74b5

[PATCH v3 08/10] qapi: fix example of query-rocker-of-dpa-flows command

2023-09-19 Thread Victor Toso
Example output has a comment embedded in the array. Remove it. The end result is a list of size 1. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrangé --- qapi/rocker.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qapi/rocker.json b/qapi/rocker.json index 31ce

[PATCH v3 00/10] Validate and test qapi examples

2023-09-19 Thread Victor Toso
Hi, v2: https://lists.gnu.org/archive/html/qemu-devel/2023-09/msg02383.html - Sorry Markus, I kept the two last 'fix example' patches as I don't fully remember how we should go with it. Not taking them but taking the generator would be bad as we would fail the build. - Removed the meson flag

Re: [PULL 00/28] Block layer patches

2023-09-19 Thread Stefan Hajnoczi
On Tue, 19 Sept 2023 at 06:26, Kevin Wolf wrote: > Am 18.09.2023 um 20:56 hat Stefan Hajnoczi geschrieben: > If we could fully get rid of the AioContext lock (as we originally > stated as a goal), that would automatically solve this kind of > deadlocks. Grepping for "ctx locked", "context acquire

[PATCH 05/14] hw/net: Add NPCMXXX GMAC device

2023-09-19 Thread Nabih Estefan
From: Hao Wu This patch implements the basic registers of GMAC device. Actual network communications are not supported yet. Signed-off-by: Hao Wu include/hw: Fix type problem in NPCMGMACState - Fix type problem in NPCMGMACState - Fix Register Initalization which was breaking boot-up in driver

  1   2   3   4   >