Re: [PATCH] device_tree: Fix compiler error

2021-11-08 Thread Stefan Weil
Am 08.11.21 um 23:43 schrieb Alistair Francis: On Tue, Nov 9, 2021 at 6:08 AM Stefan Weil wrote: A build with gcc (Debian 10.2.1-6) 10.2.1 20210110 fails: ../../../softmmu/device_tree.c: In function ‘qemu_fdt_add_path’: ../../../softmmu/device_tree.c:560:18: error: ‘retval’ may be used

Re: [PATCH v3 2/2] accel/tcg: Register a force_rcu notifier

2021-11-08 Thread Richard Henderson
On 11/8/21 12:33 PM, Greg Kurz wrote: +static void rr_force_rcu(Notifier *notify, void *data) +{ +/* + * Called with rcu_registry_lock held, using async_run_on_cpu() ensures + * that there are no deadlocks. + */ +async_run_on_cpu(first_cpu, do_nothing, RUN_ON_CPU_NULL); +}

Re: [PATCH v7 1/2] Reset the auto-converge counter at every checkpoint.

2021-11-08 Thread Juan Quintela
"Rao, Lei" wrote: > From: "Rao, Lei" > > if we don't reset the auto-converge counter, > it will continue to run with COLO running, > and eventually the system will hang due to the > CPU throttle reaching DEFAULT_MIGRATE_MAX_CPU_THROTTLE. > > Signed-off-by: Lei Rao > Reviewed-by: Dr. David Alan

RE: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Zhang, Chen
> -Original Message- > From: Jason Wang > Sent: Tuesday, November 9, 2021 3:42 PM > To: Zhang, Chen > Cc: Markus Armbruster ; qemu-dev de...@nongnu.org>; Li Zhijian > Subject: Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter- > mirror/redirector > > On Tue, Nov

Re: [PATCH v7 2/2] Reduce the PVM stop time during Checkpoint

2021-11-08 Thread Juan Quintela
"Rao, Lei" wrote: > From: "Rao, Lei" > > When flushing memory from ram cache to ram during every checkpoint > on secondary VM, we can copy continuous chunks of memory instead of > 4096 bytes per time to reduce the time of VM stop during checkpoint. > > Signed-off-by: Lei Rao > Reviewed-by: Dr.

Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Jason Wang
On Tue, Nov 9, 2021 at 3:31 PM Zhang, Chen wrote: > > > > > -Original Message- > > From: Jason Wang > > Sent: Tuesday, November 9, 2021 3:26 PM > > To: Zhang, Chen > > Cc: Markus Armbruster ; qemu-dev > de...@nongnu.org>; Li Zhijian > > Subject: Re: [PATCH V5 1/3] net/filter: Optimize

Re: [PATCH v2] s390x: kvm: adjust diag318 resets to retain data

2021-11-08 Thread Christian Borntraeger
Am 08.11.21 um 22:13 schrieb Collin Walling: The CPNC portion of the diag 318 data is erroneously reset during an initial CPU reset caused by SIGP. Let's go ahead and relocate the diag318_info field within the CPUS390XState struct such that it is only zeroed during a clear reset. This way,

Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Jason Wang
On Tue, Nov 9, 2021 at 3:20 PM Zhang, Chen wrote: > > > > > -Original Message- > > From: Jason Wang > > Sent: Tuesday, November 9, 2021 2:42 PM > > To: Zhang, Chen > > Cc: Markus Armbruster ; qemu-dev > de...@nongnu.org>; Li Zhijian > > Subject: Re: [PATCH V5 1/3] net/filter: Optimize

Re: [PATCH] docs: fix 'sample-pages' option tag

2021-11-08 Thread Juan Quintela
huang...@chinatelecom.cn wrote: > From: Hyman Huang(黄勇) > > commit f78d4ed701 has fixed qemu tag, making 'sample-pages' option tag > involved by accident, which introduced since 6.1 in commit 7afa08cd8fd. > revert this line. > > Signed-off-by: Hyman Huang(黄勇) Reviewed-by: Juan Quintela

Re: [PATCH] virtio-mmio : fix the crash in the vm shutdown

2021-11-08 Thread Jason Wang
On Tue, Nov 9, 2021 at 10:37 AM Cindy Lu wrote: > > The root cause for this crash is the ioeventfd not stopped while the VM stop. > The callback for vmstate_change was not implement in virtio-mmio bus > > Reproduce step > load the vm with > -M microvm \ > -netdev

Re: [PATCH] acpi: tpm: Add missing device identification objects

2021-11-08 Thread Marc-André Lureau
On Tue, Nov 9, 2021 at 4:37 AM Stefan Berger wrote: > > Add missing device identification objects _STR and _UID. They will appear > as files 'description' and 'uid' under Linux sysfs. > > Cc: Shannon Zhao > Cc: Michael S. Tsirkin > Cc: Igor Mammedov > Cc: Ani Sinha > Fixes: #708 >

Re: [PATCH 0/3] SEV: fixes for -kernel launch with incompatible OVMF

2021-11-08 Thread Dov Murik
On 08/11/2021 23:22, Brijesh Singh wrote: > > > On 11/5/21 1:32 PM, Dov Murik wrote: >> >> >> On 02/11/2021 16:48, Brijesh Singh wrote: >>> >>> >>> On 11/2/21 8:22 AM, Dov Murik wrote: On 02/11/2021 12:52, Brijesh Singh wrote: > Hi Dov, > > Overall the patch looks

Re: [PATCH] acpi: tpm: Add missing device identification objects

2021-11-08 Thread Marc-André Lureau
Hi On Tue, Nov 9, 2021 at 11:25 AM Marc-André Lureau wrote: > > On Tue, Nov 9, 2021 at 4:37 AM Stefan Berger > wrote: > > > > Add missing device identification objects _STR and _UID. They will appear > > as files 'description' and 'uid' under Linux sysfs. > > > > Cc: Shannon Zhao > > Cc:

RE: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Zhang, Chen
> -Original Message- > From: Jason Wang > Sent: Tuesday, November 9, 2021 3:26 PM > To: Zhang, Chen > Cc: Markus Armbruster ; qemu-dev de...@nongnu.org>; Li Zhijian > Subject: Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter- > mirror/redirector > > On Tue, Nov

Re: [PATCH] tests/qtest/virtio-net: fix hotplug test case

2021-11-08 Thread Laurent Vivier
Le 08/11/2021 à 18:12, Thomas Huth a écrit : On 28/10/2021 19.30, Laurent Vivier wrote: virtio-net-test has an hotplug testcase that is never executed. This is because the testcase is attached to virtio-pci interface rather than to virtio-net-pci.    $ QTEST_QEMU_BINARY=./qemu-system-x86_64

Re: Failure of hot plugging secondary virtio_blk into q35 Windows 2019

2021-11-08 Thread Ani Sinha
+gerd On Mon, 8 Nov 2021, Annie.li wrote: > Update: > > I've tested q35 guest w/o OVMF, the APCI PCI hot-plugging works well in q35 > guest. Seems this issue only happens in q35 guest w/ OVMF. > > Looks that there is already a bug filed against this hotplug issue in q35 > guest w/ OVMF, > >

[Ping][PATCH v0] vl: flush all task from rcu queue before exiting

2021-11-08 Thread Denis Plotnikov
Ping ping! On 02.11.2021 16:39, Denis Plotnikov wrote: The device destruction may superimpose over qemu shutdown. In this case some management layer, requested a device unplug and waiting for DEVICE_DELETED event, may never get this event. This happens because device_finalize() may never be

Re: [PATCH v3 03/19] docs/devel: document expectations for QAPI data modelling for QMP

2021-11-08 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Thu, Nov 04, 2021 at 06:43:23AM +0100, Markus Armbruster wrote: >> Daniel P. Berrangé writes: >> >> > On Thu, Oct 28, 2021 at 04:24:31PM +0100, Daniel P. Berrangé wrote: >> >> On Thu, Oct 28, 2021 at 04:31:40PM +0200, Markus Armbruster wrote: >> >> > This

RE: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Zhang, Chen
> -Original Message- > From: Jason Wang > Sent: Tuesday, November 9, 2021 2:42 PM > To: Zhang, Chen > Cc: Markus Armbruster ; qemu-dev de...@nongnu.org>; Li Zhijian > Subject: Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter- > mirror/redirector > > On Mon, Nov

Re: [PATCH 11/13] target/riscv: Switch context in exception return

2021-11-08 Thread LIU Zhiwei
We only have to process the special CSRs(like vtype/misa) when xlen changes,  according to the explicitly  specified behavior about the CSR width change behavior. For normal CSRs, the default behavior in section 2.4 , CSR Width Modulation, is enough. And if we split the vill out, we will

[PULL 43/54] target/ppc: added the instructions PLXV and PSTXV

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Implemented the instructions plxv and pstxv using decodetree Reviewed-by: Richard Henderson Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-17-matheus.fe...@eldorado.org.br> Signed-off-by:

[PULL 54/54] spapr_numa.c: FORM2 table handle nodes with no distance info

2021-11-08 Thread David Gibson
From: Nicholas Piggin A configuration that specifies multiple nodes without distance info results in the non-local points in the FORM2 matrix having a distance of 0. This causes Linux to complain "Invalid distance value range" because a node distance is smaller than the local distance. Fix this

[PULL 51/54] target/ppc: Implement lxvkq instruction

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-25-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/insn32.decode| 7 + target/ppc/translate/vsx-impl.c.inc

[PULL 48/54] target/ppc: Implemented XXSPLTIW using decodetree

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Implemented the XXSPLTIW instruction, using decodetree. Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-22-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson ---

[PULL 52/54] target/ppc: cntlzdm/cnttzdm implementation without brcond

2021-11-08 Thread David Gibson
From: Matheus Ferst Suggested-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-26-matheus.fe...@eldorado.org.br> Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- target/ppc/translate/fixedpoint-impl.c.inc | 31 +++--- 1 file

[PULL 37/54] target/ppc: Introduce REQUIRE_VSX macro

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Introduce the macro to centralize checking if the VSX facility is enabled and handle it correctly. Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst Message-Id:

[PULL 50/54] target/ppc: Implement xxblendvb/xxblendvh/xxblendvw/xxblendvd instructions

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-24-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/helper.h | 4 +++ target/ppc/insn64.decode

Re: [PATCH 11/13] target/riscv: Switch context in exception return

2021-11-08 Thread LIU Zhiwei
We only have to process the special CSRs(like vtype/misa) when xlen changes,  according to the explicitly  specified behavior about the CSR width change behavior. For normal CSRs, the default behavior in section 2.4 , CSR Width Modulation, is enough. And if we split the vill out, we will

[PULL 38/54] target/ppc: receive high/low as argument in get/set_cpu_vsr

2021-11-08 Thread David Gibson
From: Matheus Ferst Changes get_cpu_vsr to receive a new argument indicating whether the high or low part of the register is being accessed. This change improves consistency between the interfaces used to access Vector and VSX registers and helps to handle endianness in some cases. Reviewed-by:

[PULL 44/54] target/ppc: added the instructions PLXVP and PSTXVP

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Implemented the instructions plxvp and pstxvp using decodetree Reviewed-by: Richard Henderson Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-18-matheus.fe...@eldorado.org.br> Signed-off-by:

[PULL 46/54] target/ppc: moved XXSPLTIB to using decodetree

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Changed the function that handles XXSPLTIB emulation to using decodetree, but still use the same logic as before Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id:

Re: Poking around bdrv_is_inserted()

2021-11-08 Thread Markus Armbruster
Screwed up qemu-devel@nongnu.org, sorry for the inconvenience. Markus Armbruster writes: > bdrv_is_inserted() returns false when: > > /** > * Return TRUE if the media is present > */ > bool bdrv_is_inserted(BlockDriverState *bs) > { > BlockDriver *drv = bs->drv; >

[PULL 36/54] target/ppc: Implement Vector Extract Double to VSR using GPR index insns

2021-11-08 Thread David Gibson
From: Matheus Ferst Implement the following PowerISA v3.1 instructions: vextdubvlx: Vector Extract Double Unsigned Byte to VSR using GPR-specified Left-Index vextduhvlx: Vector Extract Double Unsigned Halfword to VSR using GPR-specified Left-Index vextduwvlx: Vector

[PULL 35/54] target/ppc: Move vinsertb/vinserth/vinsertw/vinsertd to decodetree

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-9-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/helper.h | 4 target/ppc/insn32.decode| 5 +

Re: [PATCH V5 1/3] net/filter: Optimize transfer protocol for filter-mirror/redirector

2021-11-08 Thread Jason Wang
On Mon, Nov 8, 2021 at 10:50 AM Zhang, Chen wrote: > > > > > -Original Message- > > From: Jason Wang > > Sent: Monday, November 8, 2021 10:42 AM > > To: Zhang, Chen > > Cc: Markus Armbruster ; qemu-dev > de...@nongnu.org>; Li Zhijian > > Subject: Re: [PATCH V5 1/3] net/filter:

[PULL 49/54] target/ppc: implemented XXSPLTIDP instruction

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Implemented the instruction XXSPLTIDP using decodetree. Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-23-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson ---

Re: [PATCH 09/13] target/riscv: Adjust vector address with ol

2021-11-08 Thread Richard Henderson
On 11/8/21 10:28 AM, LIU Zhiwei wrote: On 2021/11/1 下午7:35, Richard Henderson wrote: On 11/1/21 6:01 AM, LIU Zhiwei wrote: Signed-off-by: LIU Zhiwei ---   target/riscv/insn_trans/trans_rvv.c.inc |  8   target/riscv/internals.h    |  1 +   target/riscv/vector_helper.c 

[PULL 23/54] target/ppc: Move dqua[q], drrnd[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dqua: DFP Quantize dquaq: DFP Quantize Quad drrnd: DFP Reround drrndq: DFP Reround Quad Signed-off-by: Luis Pires Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id:

[PULL 34/54] target/ppc: Implement Vector Insert from VSR using GPR index insns

2021-11-08 Thread David Gibson
From: Matheus Ferst Implements the following PowerISA v3.1 instructions: vinsbvlx: Vector Insert Byte from VSR using GPR-specified Left-Index vinshvlx: Vector Insert Halfword from VSR using GPR-specified Left-Index vinswvlx: Vector Insert Word from VSR using GPR-specified Left-Index

[PULL 40/54] target/ppc: moved stxvx and lxvx from legacy to decodtree

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Moved stxvx and lxvx implementation from the legacy system to decodetree. Reviewed-by: Richard Henderson Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-14-matheus.fe...@eldorado.org.br>

[PULL 33/54] target/ppc: Implement Vector Insert Word from GPR using Immediate insns

2021-11-08 Thread David Gibson
From: Matheus Ferst Implements the following PowerISA v3.1 instructions: vinsw: Vector Insert Word from GPR using immediate-specified index vinsd: Vector Insert Doubleword from GPR using immediate-specified index Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id:

[PULL 53/54] target/ppc, hw/ppc: Change maintainers

2021-11-08 Thread David Gibson
As our day jobs and interests have moved onto other things, Greg and I have been struggling to keep on top of maintainership of target/ppc and associated pieces like the pseries and powernv machine types, with their platform specific devices. We've therefore discussed and plan to transfer

[PULL 22/54] target/ppc: Move dquai[q], drint{x,n}[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dquai: DFP Quantize Immediate dquaiq: DFP Quantize Immediate Quad drintx: DFP Round to FP Integer With Inexact drintxq: DFP Round to FP Integer With Inexact Quad drintn: DFP Round to FP Integer Without Inexact drintnq: DFP

[PULL 47/54] target/ppc: implemented XXSPLTI32DX

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Implemented XXSPLTI32DX emulation using decodetree Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-21-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson ---

[PULL 32/54] target/ppc: Implement Vector Insert from GPR using GPR index insns

2021-11-08 Thread David Gibson
From: Matheus Ferst Implements the following PowerISA v3.1 instructions: vinsblx: Vector Insert Byte from GPR using GPR-specified Left-Index vinshlx: Vector Insert Halfword from GPR using GPR-specified Left-Index vinswlx: Vector Insert Word from GPR using GPR-specified Left-Index vinsdlx: Vector

[PULL 31/54] target/ppc: Implement vsldbi/vsrdbi instructions

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Suggested-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-5-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/insn32.decode| 8

[PULL 20/54] target/ppc: Move d{add, sub, mul, div, iex}[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dadd: DFP Add daddq: DFP Add Quad dsub: DFP Subtract dsubq: DFP Subtract Quad dmul: DFP Multiply dmulq: DFP Multiply Quad ddiv: DFP Divide ddivq: DFP Divide Quad diex: DFP Insert Biased Exponent diexq: DFP Insert Biased

[PULL 39/54] target/ppc: moved stxv and lxv from legacy to decodtree

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Moved stxv and lxv implementation from the legacy system to decodetree. Reviewed-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id:

[PULL 45/54] target/ppc: moved XXSPLTW to using decodetree

2021-11-08 Thread David Gibson
From: "Bruno Larsen (billionai)" Changed the function that handles XXSPLTW emulation to using decodetree, but still using the same logic. Reviewed-by: Richard Henderson Signed-off-by: Bruno Larsen (billionai) Signed-off-by: Matheus Ferst Message-Id:

[PULL 18/54] target/ppc: Do not update nip on DFP instructions

2021-11-08 Thread David Gibson
From: Luis Pires Before moving the existing DFP instructions to decodetree, drop the nip update that shouldn't be done for these instructions. Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-9-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson

[PULL 30/54] target/ppc: Implement vpdepd/vpextd instruction

2021-11-08 Thread David Gibson
From: Matheus Ferst pdepd and pextd helpers are moved out of #ifdef (TARGET_PPC64) to allow them to be reused as GVecGen3.fni8. Reviewed-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-4-matheus.fe...@eldorado.org.br>

[PULL 26/54] ppc/pnv: Fix check on block device before updating drive contents

2021-11-08 Thread David Gibson
From: Cédric Le Goater Test is wrong and the backend can never updated. It could have led to a QEMU crash but since the firmware deactivates flash access if a valid layout is not detected, it went unnoticed. Reported-by: Coverity CID 1465223 Fixes: 35dde5766211 ("ppc/pnv: Add a PNOR model")

[PULL 42/54] target/ppc: added the instructions LXVPX and STXVPX

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Implemented the instructions lxvpx and stxvpx using decodetree Reviewed-by: Richard Henderson Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id: <20211104123719.323713-16-matheus.fe...@eldorado.org.br> Signed-off-by:

[PULL 19/54] target/ppc: Move dtstdc[q]/dtstdg[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dtstdc: DFP Test Data Class dtstdcq: DFP Test Data Class Quad dtstdg: DFP Test Data Group dtstdgq: DFP Test Data Group Quad Signed-off-by: Luis Pires Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson

[PULL 27/54] ppc/pegasos2: Suppress warning when qtest enabled

2021-11-08 Thread David Gibson
From: BALATON Zoltan Suggested-by: Peter Maydell Signed-off-by: BALATON Zoltan Message-Id: <20211101151023.f0d02748...@zero.eik.bme.hu> Reviewed-by: Richard Henderson Signed-off-by: David Gibson --- hw/ppc/pegasos2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PULL 24/54] target/ppc: Move dct{dp, qpq}, dr{sp, dpq}, dc{f, t}fix[q], dxex[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dctdp: DFP Convert To DFP Long dctqpq: DFP Convert To DFP Extended drsp:DFP Round To DFP Short drdpq: DFP Round To DFP Long dcffix: DFP Convert From Fixed dcffixq: DFP Convert From Fixed Quad dctfix: DFP Convert To Fixed

[PULL 28/54] target/ppc: Move vcfuged to vmx-impl.c.inc

2021-11-08 Thread David Gibson
From: Matheus Ferst There's no reason to keep vector-impl.c.inc separate from vmx-impl.c.inc. Additionally, let GVec handle the multiple calls to helper_cfuged for us. Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id:

[PULL 41/54] target/ppc: added the instructions LXVP and STXVP

2021-11-08 Thread David Gibson
From: "Lucas Mateus Castro (alqotel)" Implemented the instructions lxvp and stxvp using decodetree Reviewed-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Lucas Mateus Castro (alqotel) Signed-off-by: Matheus Ferst Message-Id:

[PULL 13/54] target/ppc: Introduce REQUIRE_FPU

2021-11-08 Thread David Gibson
From: Fernando Valle Signed-off-by: Fernando Valle Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-4-luis.pi...@eldorado.org.br> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: David Gibson --- target/ppc/translate.c | 8 1 file

[PULL 29/54] target/ppc: Implement vclzdm/vctzdm instructions

2021-11-08 Thread David Gibson
From: Matheus Ferst The signature of do_cntzdm is changed to allow reuse as GVecGen3i.fni8. The method is also moved out of #ifdef TARGET_PPC64, as PowerISA doesn't say vclzdm and vctzdm are 64-bit only. Reviewed-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst

[PULL 16/54] libdecnumber: Introduce decNumberIntegralToInt128

2021-11-08 Thread David Gibson
From: Luis Pires This will be used to implement PowerPC's dctfixqq. Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-7-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson --- include/libdecnumber/decNumber.h | 2 +

[PULL 25/54] target/ppc: Move ddedpd[q], denbcd[q], dscli[q], dscri[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: ddedpd: DFP Decode DPD To BCD ddedpdq: DFP Decode DPD To BCD Quad denbcd: DFP Encode BCD To DPD denbcdq: DFP Encode BCD To DPD Quad dscli: DFP Shift Significand Left Immediate dscliq: DFP Shift Significand Left Immediate Quad

[PULL 15/54] host-utils: Introduce mulu128

2021-11-08 Thread David Gibson
From: Luis Pires Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-6-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson --- include/qemu/host-utils.h | 36 1 file changed, 36 insertions(+) diff --git

[PULL 17/54] target/ppc: Implement DCTFIXQQ

2021-11-08 Thread David Gibson
From: Luis Pires Implement the following PowerISA v3.1 instruction: dctfixqq: DFP Convert To Fixed Quadword Quad Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-8-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/dfp_helper.c

[PULL 14/54] target/ppc: Implement DCFFIXQQ

2021-11-08 Thread David Gibson
From: Luis Pires Implement the following PowerISA v3.1 instruction: dcffixqq: DFP Convert From Fixed Quadword Quad Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-5-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson ---

[PULL 21/54] target/ppc: Move dcmp{u, o}[q], dts{tex, tsf, tsfi}[q] to decodetree

2021-11-08 Thread David Gibson
From: Luis Pires Move the following instructions to decodetree: dcmpu:DFP Compare Unordered dcmpuq: DFP Compare Unordered Quad dcmpo:DFP Compare Ordered dcmpoq: DFP Compare Ordered Quad dtstex: DFP Test Exponent dtstexq: DFP Test Exponent Quad dtstsf: DFP Test Significance

[PULL 06/54] target/ppc: Implement PLQ and PSTQ

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-7-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/insn64.decode | 4 target/ppc/translate/fixedpoint-impl.c.inc | 12

[PULL 07/54] target/ppc: Implement cntlzdm

2021-11-08 Thread David Gibson
From: Luis Pires Implement the following PowerISA v3.1 instruction: cntlzdm: Count Leading Zeros Doubleword Under Bit Mask Suggested-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-8-matheus.fe...@eldorado.org.br> Reviewed-by:

[PULL 12/54] target/ppc: Move REQUIRE_ALTIVEC/VECTOR to translate.c

2021-11-08 Thread David Gibson
From: Bruno Larsen Move REQUIRE_ALTIVEC to translate.c and rename it to REQUIRE_VECTOR. Signed-off-by: Bruno Larsen Signed-off-by: Matheus Ferst Signed-off-by: Fernando Valle Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Acked-by: David Gibson Message-Id:

[PULL 08/54] target/ppc: Implement cnttzdm

2021-11-08 Thread David Gibson
From: Luis Pires Implement the following PowerISA v3.1 instruction: cnttzdm: Count Trailing Zeros Doubleword Under Bit Mask Suggested-by: Richard Henderson Signed-off-by: Luis Pires Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-9-matheus.fe...@eldorado.org.br> Reviewed-by:

[PULL 11/54] libdecnumber: introduce decNumberFrom[U]Int128

2021-11-08 Thread David Gibson
From: Luis Pires This will be used to implement PowerPC's dcffixqq. Signed-off-by: Luis Pires Reviewed-by: Richard Henderson Message-Id: <20211029192417.400707-2-luis.pi...@eldorado.org.br> Signed-off-by: David Gibson --- include/libdecnumber/decNumber.h | 2 ++ libdecnumber/decNumber.c

[PULL 05/54] target/ppc: Move LQ and STQ to decodetree

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-6-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/insn32.decode | 11 ++ target/ppc/translate.c | 156

[PULL 03/54] target/ppc: Move load and store floating point instructions to decodetree

2021-11-08 Thread David Gibson
From: Fernando Eckhardt Valle Move load floating point instructions (lfs, lfsu, lfsx, lfsux, lfd, lfdu, lfdx, lfdux) and store floating point instructions(stfs, stfsu, stfsx, stfsux, stfd, stfdu, stfdx, stfdux) from legacy system to decodetree. Reviewed-by: Richard Henderson Signed-off-by:

[PULL 09/54] target/ppc: Implement pdepd instruction

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-10-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/helper.h| 1 + target/ppc/insn32.decode | 1 +

[PULL 10/54] target/ppc: Implement pextd instruction

2021-11-08 Thread David Gibson
From: Matheus Ferst Reviewed-by: Richard Henderson Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-11-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/helper.h| 1 + target/ppc/insn32.decode | 1 +

[PULL 01/54] target/ppc: introduce do_ea_calc

2021-11-08 Thread David Gibson
From: Fernando Eckhardt Valle The do_ea_calc function will calculate the effective address(EA) according to PowerIsa 3.1. With that, it was replaced part of do_ldst() that calculates the EA by this new function. Reviewed-by: Richard Henderson Signed-off-by: Fernando Eckhardt Valle (pherde)

[PULL 00/54] ppc-for-6.2 queue 20211109

2021-11-08 Thread David Gibson
The following changes since commit 114f3c8cc427333dbae331dfd2ecae64676b087e: Merge remote-tracking branch 'remotes/philmd/tags/avocado-20211108' into staging (2021-11-08 18:50:09 +0100) are available in the Git repository at: https://gitlab.com/dgibson/qemu.git tags/ppc-for-6.2-20211109

[PULL 02/54] target/ppc: move resolve_PLS_D to translate.c

2021-11-08 Thread David Gibson
From: Fernando Eckhardt Valle Move resolve_PLS_D from fixedpoint-impl.c.inc to translate.c because this way the function can be used not only by fixed point instructions. Reviewed-by: Richard Henderson Signed-off-by: Fernando Eckhardt Valle Signed-off-by: Matheus Ferst Message-Id:

[PULL 04/54] target/ppc: Implement PLFS, PLFD, PSTFS and PSTFD instructions

2021-11-08 Thread David Gibson
From: Fernando Eckhardt Valle Reviewed-by: Richard Henderson Signed-off-by: Fernando Eckhardt Valle Signed-off-by: Matheus Ferst Message-Id: <20211029202424.175401-5-matheus.fe...@eldorado.org.br> Signed-off-by: David Gibson --- target/ppc/insn64.decode | 11 +++

Re: [PATCH v4 2/6] net/vmnet: add vmnet backends to qapi/net

2021-11-08 Thread Markus Armbruster
Vladislav Yaroshchuk writes: > Create separate netdevs for each vmnet operating mode: > - vmnet-host > - vmnet-shared > - vmnet-bridged > > Signed-off-by: Vladislav Yaroshchuk [...] > diff --git a/qapi/net.json b/qapi/net.json > index 7fab2e7cd8..087cdf0546 100644 > --- a/qapi/net.json > +++

[PATCH v7 2/2] Reduce the PVM stop time during Checkpoint

2021-11-08 Thread Rao, Lei
From: "Rao, Lei" When flushing memory from ram cache to ram during every checkpoint on secondary VM, we can copy continuous chunks of memory instead of 4096 bytes per time to reduce the time of VM stop during checkpoint. Signed-off-by: Lei Rao Reviewed-by: Dr. David Alan Gilbert Reviewed-by:

[PATCH v7 1/2] Reset the auto-converge counter at every checkpoint.

2021-11-08 Thread Rao, Lei
From: "Rao, Lei" if we don't reset the auto-converge counter, it will continue to run with COLO running, and eventually the system will hang due to the CPU throttle reaching DEFAULT_MIGRATE_MAX_CPU_THROTTLE. Signed-off-by: Lei Rao Reviewed-by: Dr. David Alan Gilbert Reviewed-by: Lukas Straub

[PATCH v7 0/2] Optimized some codes and fixed PVM hang when enabling auto-converge

2021-11-08 Thread Rao, Lei
From: "Rao, Lei" Changes since v1-v6: --Reset the state of the auto-converge counters at every checkpoint instead of directly disabling. --Remove cpu_throttle_stop from mig_throttle_counter_reset. The series of patches include: Reduced the PVM stop time during checkpoint. Fixed

?????? Chardev: delete the QemuOpts reserved in vm_config_groups

2021-11-08 Thread ????????????
Hi Lureau, You say that hot-add failare is reasonable after hot-remove? I think it is a clear issue. Hi On Sat, Nov 6, 2021 at 10:41 PM <787738...@qq.com wrote: We have found that qemu cannot plug in the previously unplugged device. start qemu with the following command:

[PATCH] virtio-mmio : fix the crash in the vm shutdown

2021-11-08 Thread Cindy Lu
The root cause for this crash is the ioeventfd not stopped while the VM stop. The callback for vmstate_change was not implement in virtio-mmio bus Reproduce step load the vm with -M microvm \ -netdev tap,id=net0,vhostforce,script=no,downscript=no \ -device virtio-net-device,netdev=net0\

[RFC v3 15/19] vfio-user: proxy container connect/disconnect

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user.h| 1 + include/hw/vfio/vfio-common.h | 3 ++ hw/vfio/common.c | 98 +++ hw/vfio/pci.c | 24

[PATCH] acpi: tpm: Add missing device identification objects

2021-11-08 Thread Stefan Berger
From: Stefan Berger Add missing device identification objects _STR and _UID. They will appear as files 'description' and 'uid' under Linux sysfs. Cc: Shannon Zhao Cc: Michael S. Tsirkin Cc: Igor Mammedov Cc: Ani Sinha Fixes: #708 Signed-off-by: Stefan Berger --- hw/arm/virt-acpi-build.c |

[RFC v3 19/19] vfio-user: migration support

2021-11-08 Thread John Johnson
bug fix: only set qemu file error if there is a file Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 18 + hw/vfio/migration.c | 34 +++ hw/vfio/pci.c | 7

[RFC v3 01/19] vfio-user: introduce vfio-user protocol specification

2021-11-08 Thread John Johnson
From: Thanos Makatos This patch introduces the vfio-user protocol specification (formerly known as VFIO-over-socket), which is designed to allow devices to be emulated outside QEMU, in a separate process. vfio-user reuses the existing VFIO defines, structs and concepts. This patch is sourced

[RFC v3 03/19] Add container IO ops vector

2021-11-08 Thread John Johnson
Used for communication with VFIO driver (prep work for vfio-user, which will communicate over a socket) Signed-off-by: John G Johnson --- include/hw/vfio/vfio-common.h | 34 +++ hw/vfio/common.c | 131 -- 2 files changed, 123

[RFC v3 18/19] vfio-user: pci reset

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user.h | 1 + hw/vfio/pci.c | 15 +++ hw/vfio/user.c | 12 3 files changed, 28 insertions(+) diff --git a/hw/vfio/user.h b/hw/vfio/user.h index e6c1091..7504681

[RFC v3 08/19] vfio-user: define socket receive functions

2021-11-08 Thread John Johnson
Add infrastructure needed to receive incoming messages Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman --- hw/vfio/pci.h | 2 +- hw/vfio/user-protocol.h | 62 + hw/vfio/user.h | 9 +- hw/vfio/pci.c | 12

[RFC v3 17/19] vfio-user: dma read/write operations

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 11 + hw/vfio/user.h | 4 ++ hw/vfio/pci.c | 105 hw/vfio/user.c | 78

[RFC v3 12/19] vfio-user: region read/write

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/pci.h | 1 + hw/vfio/user-protocol.h | 12 + hw/vfio/user.h| 1 + include/hw/vfio/vfio-common.h | 1 + hw/vfio/common.c | 7

[RFC v3 06/19] vfio-user: Define type vfio_user_pci_dev_info

2021-11-08 Thread John Johnson
New class for vfio-user with its class and instance constructors and destructors, and its pci ops. Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/pci.h | 9 ++ hw/vfio/pci.c | 97

[RFC v3 14/19] vfio-user: get and set IRQs

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 25 ++ hw/vfio/pci.c | 9 +++- hw/vfio/user.c | 128 3 files changed, 160 insertions(+), 2

[RFC v3 05/19] Add validation ops vector

2021-11-08 Thread John Johnson
Validates cases where the return values aren't fully trusted (prep work for vfio-user, where the return values from the remote process aren't trusted) Signed-off-by: John G Johnson --- include/hw/vfio/vfio-common.h | 21 ++ hw/vfio/pci.c | 67

[RFC v3 07/19] vfio-user: connect vfio proxy to remote server

2021-11-08 Thread John Johnson
Signed-off-by: John G Johnson Signed-off-by: Elena Ufimtseva Signed-off-by: Jagannathan Raman --- hw/vfio/user.h| 78 +++ include/hw/vfio/vfio-common.h | 2 + hw/vfio/pci.c | 20 + hw/vfio/user.c| 170

[RFC v3 16/19] vfio-user: dma map/unmap operations

2021-11-08 Thread John Johnson
Signed-off-by: Jagannathan Raman Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson --- hw/vfio/pci.h | 1 + hw/vfio/user-protocol.h | 32 +++ hw/vfio/user.h| 1 + include/hw/vfio/vfio-common.h | 4 + hw/vfio/common.c |

[RFC v3 10/19] vfio-user: get device info

2021-11-08 Thread John Johnson
Signed-off-by: Elena Ufimtseva Signed-off-by: John G Johnson Signed-off-by: Jagannathan Raman --- hw/vfio/user-protocol.h | 13 + hw/vfio/user.h | 2 ++ hw/vfio/pci.c | 19 +++ hw/vfio/user.c | 40

  1   2   3   >