[PULL 1/4] net/virtio: fix dev_unplug_pending

2019-11-25 Thread Jason Wang
From: Jens Freimann .dev_unplug_pending is set up by virtio-net code indepent of failover support was set for the device or not. This gives a wrong result when we check for existing primary devices in migration code. Fix this by actually calling dev_unplug_pending() instead of just checking if

[PULL 2/4] net/virtio: return early when failover primary alread added

2019-11-25 Thread Jason Wang
From: Jens Freimann Bail out when primary device was already added before. This avoids printing a wrong warning message during reboot. Fixes: 9711cd0dfc3f ("net/virtio: add failover support") Signed-off-by: Jens Freimann Reviewed-by: Michael S. Tsirkin Signed-off-by: Jason Wang ---

[PULL 3/4] net/virtio: fix re-plugging of primary device

2019-11-25 Thread Jason Wang
From: Jens Freimann failover_replug_primary was returning true on failure which lead to re-plug not working when a migration failed. Fix this by returning success when hotplug worked. This is a bug that was missed in last round of testing but was tested succesfully with this version. Also

Re: [Virtio-fs] [PATCH 4/4] virtiofsd: Implement blocking posix locks

2019-11-25 Thread Vivek Goyal
On Fri, Nov 22, 2019 at 10:53:24AM +, Stefan Hajnoczi wrote: > On Fri, Nov 15, 2019 at 03:55:43PM -0500, Vivek Goyal wrote: > > diff --git a/contrib/virtiofsd/fuse_lowlevel.c > > b/contrib/virtiofsd/fuse_lowlevel.c > > index d4a42d9804..f706e440bf 100644 > > ---

Re: [PATCH v35 10/13] target/avr: Add limited support for USART and 16 bit timer peripherals

2019-11-25 Thread Sarah Harris
Hi Aleksandar, In avr_usart_receive(): The two assertions check that we get only what avr_usart_can_receive() asked for. It always requests zero or one byte and I must have assumed zero bytes isn't a valid read (so assert size==1). It only requests data when !usart->data_valid (so assert

[PATCH 1/4] qom/object: enable setter for uint types

2019-11-25 Thread Felipe Franciosi
Traditionally, the uint-specific property helpers only offer getters. When adding object (or class) uint types, one must therefore use the generic property helper if a setter is needed. This enhances the uint-specific property helper APIs by adding a 'readonly' field and modifying all users of

[PATCH 4/4] qom/object: Use common get/set uint helpers

2019-11-25 Thread Felipe Franciosi
Several objects implemented their own uint property getters and setters, despite them being straightforward (without any checks/validations on the values themselves) and identical across objects. This makes use of an enhanced API for object_property_add_uintXX_ptr() which offers default setters.

[PATCH 2/4] ich9: fix getter type for sci_int property

2019-11-25 Thread Felipe Franciosi
When QOM APIs were added to ich9 in 6f1426ab, the getter for sci_int was written using uint32_t. However, the object property is uint8_t. This fixes the getter for correctness. Signed-off-by: Felipe Franciosi --- hw/isa/lpc_ich9.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)

[PATCH 3/4] ich9: Simplify ich9_lpc_initfn

2019-11-25 Thread Felipe Franciosi
Currently, ich9_lpc_initfn simply serves as a caller to ich9_lpc_add_properties. This simplifies the code a bit by eliminating ich9_lpc_add_properties altogether and executing its logic in the parent object initialiser function. Signed-off-by: Felipe Franciosi --- hw/isa/lpc_ich9.c | 19

[PATCH 0/4] Improve default object property_add uint helpers

2019-11-25 Thread Felipe Franciosi
This improves the family of object_property_add_uintXX_ptr helpers by enabling a default setter when desired. To prevent an API behavioural change (from clients that already used these helpers and did not want a setter), we add a "readonly" parameter that allow clients to only have a getter. Patch

Re: [PATCH 2/2] test-keyval: Tighten test of trailing crap after size

2019-11-25 Thread Markus Armbruster
Eric Blake writes: > On 11/25/19 7:38 AM, Markus Armbruster wrote: >> test_keyval_visit_size() should test for trailing crap after size with >> and without suffix. It does test the latter: "sz2=16Gi" has size >> "16G" followed by crap "i". It fails to test the former "sz1=16E" is >> a

Re: [PATCH v0 1/2] qdev-properties-system: extend set_pionter for unrealized devices

2019-11-25 Thread Eduardo Habkost
On Fri, Nov 22, 2019 at 11:36:30AM +, Denis Plotnikov wrote: > > > On 18.11.2019 21:54, Eduardo Habkost wrote: > > On Sun, Nov 10, 2019 at 10:03:09PM +0300, Denis Plotnikov wrote: > >> Some device's property can be changed if the device has been already > >> realized. For example, it could

Re: [PATCH-for-4.2] hw/mips: Deprecate the r4k machine

2019-11-25 Thread Aurelien Jarno
On 2019-11-25 11:41, Philippe Mathieu-Daudé wrote: > The r4k machine was introduced in 2005 (6af0bf9c7) and its last > logical change was in 2005 (9542611a6). After we can count 164 > maintenance commits (QEMU API changes) with the exception of > 1 fix in 2015 (memory leak, commit 3ad9fd5a). > >

Re: [PATCH v3 2/8] block: Add no_fallback parameter to bdrv_co_truncate()

2019-11-25 Thread Alberto Garcia
On Fri 22 Nov 2019 05:05:05 PM CET, Kevin Wolf wrote: > @@ -3405,6 +3412,7 @@ typedef struct TruncateCo { > int64_t offset; > bool exact; > PreallocMode prealloc; > +bool no_fallback; > Error **errp; > int ret; > } TruncateCo; You add the 'no_fallback' field here...

Re: [PULL 0/1] 9p fixes for QEMU 4.2-rc3

2019-11-25 Thread Peter Maydell
On Sat, 23 Nov 2019 at 16:59, Greg Kurz wrote: > > The following changes since commit 2061735ff09f9d5e67c501a96227b470e7de69b1: > > Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into > staging (2019-11-21 17:18:40 +) > > are available in the Git repository at: > >

Re: [PATCH] mos6522: update counters when timer interrupts are off

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 3:56 PM, Laurent Vivier wrote: Le 25/11/2019 à 15:37, Philippe Mathieu-Daudé a écrit : On 11/25/19 3:14 PM, Laurent Vivier wrote: Even if the interrupts are off, counters must be updated because they are running anyway and kernel can try to read them (it's the case with g3beige

Re: [PATCH 3/4] virtiofsd: Specify size of notification buffer using config space

2019-11-25 Thread Vivek Goyal
On Fri, Nov 22, 2019 at 10:33:00AM +, Stefan Hajnoczi wrote: > On Fri, Nov 15, 2019 at 03:55:42PM -0500, Vivek Goyal wrote: > > diff --git a/contrib/virtiofsd/fuse_virtio.c > > b/contrib/virtiofsd/fuse_virtio.c > > index 44c9b3..982b6ad0bd 100644 > > --- a/contrib/virtiofsd/fuse_virtio.c

Re: [PATCH-for-4.2] hw/mips: Deprecate the r4k machine

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 3:45 PM, Aleksandar Markovic wrote: On Monday, November 25, 2019, Philippe Mathieu-Daudé > wrote: The r4k machine was introduced in 2005 (6af0bf9c7) and its last logical change was in 2005 (9542611a6). After we can count 164 maintenance

Re: [PATCH] mos6522: update counters when timer interrupts are off

2019-11-25 Thread Laurent Vivier
Le 25/11/2019 à 15:37, Philippe Mathieu-Daudé a écrit : > On 11/25/19 3:14 PM, Laurent Vivier wrote: >> Even if the interrupts are off, counters must be updated because >> they are running anyway and kernel can try to read them >> (it's the case with g3beige kernel). >> >> Reported-by: Andrew

Re: [PATCH v3 3/8] qcow2: Declare BDRV_REQ_NO_FALLBACK supported

2019-11-25 Thread Alberto Garcia
On Fri 22 Nov 2019 05:05:06 PM CET, Kevin Wolf wrote: > In the common case, qcow2_co_pwrite_zeroes() already only modifies > metadata case, so we're fine with or without BDRV_REQ_NO_FALLBACK set. > > The only exception is when using an external data file, where the > request is passed down to the

Re: [PATCH-for-4.2] hw/mips: Deprecate the r4k machine

2019-11-25 Thread Aleksandar Markovic
On Monday, November 25, 2019, Philippe Mathieu-Daudé wrote: > The r4k machine was introduced in 2005 (6af0bf9c7) and its last > logical change was in 2005 (9542611a6). After we can count 164 > maintenance commits (QEMU API changes) with the exception of > 1 fix in 2015 (memory leak, commit

Re: [PATCH] mos6522: update counters when timer interrupts are off

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 3:14 PM, Laurent Vivier wrote: Even if the interrupts are off, counters must be updated because they are running anyway and kernel can try to read them (it's the case with g3beige kernel). Reported-by: Andrew Randrianasulu Signed-off-by: Laurent Vivier --- hw/misc/mos6522.c | 8

QEMU Summit Minutes

2019-11-25 Thread Peter Maydell
As usual, we held a QEMU Summit meeting at KVM Forum. This is an invite-only meeting for the most active maintainers and submaintainers in the project, and we discuss various project-wide issues, usually process stuff. We then post the minutes of the meeting to the list as a jumping off point for

Re: [PATCH 2/2] test-keyval: Tighten test of trailing crap after size

2019-11-25 Thread Eric Blake
On 11/25/19 7:38 AM, Markus Armbruster wrote: test_keyval_visit_size() should test for trailing crap after size with and without suffix. It does test the latter: "sz2=16Gi" has size "16G" followed by crap "i". It fails to test the former "sz1=16E" is a syntactically valid size that overflows

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Alex Bennée
As it's taking longer to get the compiler up and running on my system could you attach the failing binary along with the extra .so libs from /scratch/arm-linux-compiler/* -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU.

Re: [PATCH v2 15/20] nvme: add support for scatter gather lists

2019-11-25 Thread Beata Michalska
On Mon, 25 Nov 2019 at 06:21, Klaus Birkelund wrote: > > On Tue, Nov 12, 2019 at 03:25:18PM +, Beata Michalska wrote: > > Hi Klaus, > > > > On Tue, 15 Oct 2019 at 11:57, Klaus Jensen wrote: > > > +static uint16_t nvme_map_sgl(NvmeCtrl *n, QEMUSGList *qsg, > > > +NvmeSglDescriptor sgl,

Re: Avocado notes from KVM forum 2019

2019-11-25 Thread Gerd Hoffmann
> > 1) Working offline > > > > Various people complained Avocado requires online access, and they would > > like to use it offline. > > > > Maintainer workflow example is: > > > > - run avocado > > - hack QEMU, build > > - git pull > > - build > > - hack QEMU > > (go offline) > >

[PATCH] mos6522: update counters when timer interrupts are off

2019-11-25 Thread Laurent Vivier
Even if the interrupts are off, counters must be updated because they are running anyway and kernel can try to read them (it's the case with g3beige kernel). Reported-by: Andrew Randrianasulu Signed-off-by: Laurent Vivier --- hw/misc/mos6522.c | 8 ++-- 1 file changed, 6 insertions(+), 2

Re: [PATCH for-4.2 2/2] i386: Add -noTSX aliases for hle=off, rtm=off CPU models

2019-11-25 Thread Eduardo Habkost
On Thu, Nov 21, 2019 at 03:12:45PM +0100, Kashyap Chamarthy wrote: > On Wed, Nov 20, 2019 at 01:49:12PM -0300, Eduardo Habkost wrote: > > We have been trying to avoid adding new aliases for CPU model > > versions, but in the case of changes in defaults introduced by > > the TAA mitigation patches,

Re: [PATCH 1/2] util/cutils: Turn FIXME comment into QEMU_BUILD_BUG_ON()

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 2:38 PM, Markus Armbruster wrote: qemu_strtoi64() assumes int64_t is long long. This is marked FIXME. Replace by a QEMU_BUILD_BUG_ON() to avoid surprises. Same for qemu_strtou64(). Fix a typo in qemu_strtoul()'s contract while there. Signed-off-by: Markus Armbruster ---

Re: [PATCH for-4.2 0/2] Fix bitmap migration

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
25.11.2019 16:50, Max Reitz wrote: > On 25.11.19 13:52, Vladimir Sementsov-Ogievskiy wrote: >> Hi all! >> >> We've faced a bug in rhev-2.12.0-33.el7-based Qemu. >> In upstream, bug introduced in 4.0 by 74da6b943565c45 >> "block/dirty-bitmaps: implement inconsistent bit" commit. >> At this commit

Re: [PATCH v2 14/20] nvme: allow multiple aios per command

2019-11-25 Thread Beata Michalska
On Thu, 21 Nov 2019 at 11:57, Klaus Birkelund wrote: > > On Tue, Nov 12, 2019 at 03:25:06PM +, Beata Michalska wrote: > > Hi Klaus, > > > > On Tue, 15 Oct 2019 at 11:55, Klaus Jensen wrote: > > > @@ -341,19 +344,18 @@ static uint16_t nvme_dma_write_prp(NvmeCtrl *n, > > > uint8_t *ptr,

Re: Avocado notes from KVM forum 2019

2019-11-25 Thread Eduardo Habkost
Thank you, Philippe, those are great ideas. I have copied them to the Avocado+QEMU Trello board so we don't forget about them: https://trello.com/b/6Qi1pxVn/avocado-qemu Additional comments below: On Mon, Nov 25, 2019 at 01:35:13PM +0100, Philippe Mathieu-Daudé wrote: > Hi Cleber, > > Here are

Re: [PATCH for-4.2 0/2] Fix bitmap migration

2019-11-25 Thread Max Reitz
On 25.11.19 13:52, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > We've faced a bug in rhev-2.12.0-33.el7-based Qemu. > In upstream, bug introduced in 4.0 by 74da6b943565c45 > "block/dirty-bitmaps: implement inconsistent bit" commit. > At this commit we started to load inconsistent bitmap

Re: [PATCH v3 4/5] s390x: Move clear reset

2019-11-25 Thread Janosch Frank
On 11/25/19 2:37 PM, Cornelia Huck wrote: > On Mon, 25 Nov 2019 04:03:47 -0500 > Janosch Frank wrote: > >> Let's also move the clear reset function into the reset handler. >> >> Signed-off-by: Janosch Frank >> --- >> target/s390x/cpu-qom.h | 1 + >> target/s390x/cpu.c | 58

[PATCH] target/arm: Allow loading elf from aliased ROM regions

2019-11-25 Thread Jean-Hugues Deschênes
With this patch, we allow loading a ROM image at an aliased address, when it is located in a memory region for which an alias exists. Signed-off-by: Jean-Hugues Deschenes --- target/arm/cpu.c | 33 ++--- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git

Re: [PATCH] linux-user: Improve strace output for read() and getcwd()

2019-11-25 Thread Aleksandar Markovic
On Sun, Nov 24, 2019 at 2:31 PM Aleksandar Markovic wrote: > > > > On Sunday, November 24, 2019, Helge Deller wrote: >> >> On 24.11.19 13:10, Aleksandar Markovic wrote: >> > >> > >> > On Sunday, November 24, 2019, Helge Deller > > > wrote: >> > >> > On 23.11.19 12:34,

Re: [PATCH] target/arm: Honor HCR_EL2.TID3 trapping requirements

2019-11-25 Thread Will Deacon
On Sat, Nov 23, 2019 at 11:56:18AM +, Marc Zyngier wrote: > HCR_EL2.TID3 mandates that access from EL1 to a long list of id > registers traps to EL2, and QEMU has so far ignored this requirement. > > This breaks (among other things) KVM guests that have PtrAuth enabled, > while the hypervisor

[PATCH 2/2] test-keyval: Tighten test of trailing crap after size

2019-11-25 Thread Markus Armbruster
test_keyval_visit_size() should test for trailing crap after size with and without suffix. It does test the latter: "sz2=16Gi" has size "16G" followed by crap "i". It fails to test the former "sz1=16E" is a syntactically valid size that overflows uint64_t. Replace by "sz1=0Z". Signed-off-by:

[PATCH 0/2] Minor integer parsing improvements

2019-11-25 Thread Markus Armbruster
Not for 4.2, of course. Markus Armbruster (2): util/cutils: Turn FIXME comment into QEMU_BUILD_BUG_ON() test-keyval: Tighten test of trailing crap after size tests/test-keyval.c | 2 +- util/cutils.c | 8 +--- 2 files changed, 6 insertions(+), 4 deletions(-) -- 2.21.0

[PATCH 1/2] util/cutils: Turn FIXME comment into QEMU_BUILD_BUG_ON()

2019-11-25 Thread Markus Armbruster
qemu_strtoi64() assumes int64_t is long long. This is marked FIXME. Replace by a QEMU_BUILD_BUG_ON() to avoid surprises. Same for qemu_strtou64(). Fix a typo in qemu_strtoul()'s contract while there. Signed-off-by: Markus Armbruster --- util/cutils.c | 8 +--- 1 file changed, 5

Re: [PATCH v6 1/9] hw/core/clock: introduce clock objects

2019-11-25 Thread Philippe Mathieu-Daudé
On 9/4/19 2:55 PM, Damien Hedde wrote: Introduce clock objects: ClockIn and ClockOut. These objects may be used to distribute clocks from an object to several other objects. Each ClockIn object contains the current state of the clock: the frequency; it allows an object to migrate its input

Re: [PATCH v3 4/5] s390x: Move clear reset

2019-11-25 Thread Cornelia Huck
On Mon, 25 Nov 2019 04:03:47 -0500 Janosch Frank wrote: > Let's also move the clear reset function into the reset handler. > > Signed-off-by: Janosch Frank > --- > target/s390x/cpu-qom.h | 1 + > target/s390x/cpu.c | 58 +- > 2 files changed, 18

[PATCH v2] migration/ram: Yield periodically to the main loop

2019-11-25 Thread Yury Kotov
Usually, incoming migration coroutine yields to the main loop while its IO-channel is waiting for data to receive. But there is a case when RAM migration and data receive have the same speed: VM with huge zeroed RAM. In this case, IO-channel won't read and thus the main loop is stuck and for

Re: [PATCH v4 17/37] mips: inline serial_init()

2019-11-25 Thread Aleksandar Markovic
On Monday, November 25, 2019, Marc-André Lureau wrote: > Hi > > On Mon, Nov 25, 2019 at 2:12 PM Aleksandar Markovic > wrote: > > > > > > > > On Wednesday, November 20, 2019, Marc-André Lureau < > marcandre.lur...@redhat.com> wrote: > >> > >> The function is specific to mipssim, let's inline it.

Re: [PATCH v6 3/9] qdev: add clock input support to devices.

2019-11-25 Thread Philippe Mathieu-Daudé
Nitpick: remove trailing dot in patch subject On 9/4/19 2:55 PM, Damien Hedde wrote: Add functions to easily add input or output clocks to a device. A clock objects is added as a child of the device. ? The api is very similar the gpio's one. Maybe "This API is very similar to the QDEV

RE: [PATCH 0/5] ARM virt: Add NVDIMM support

2019-11-25 Thread Shameerali Kolothum Thodi
Hi Eric/Igor, > -Original Message- > From: Shameerali Kolothum Thodi > Sent: 22 October 2019 15:05 > To: 'Auger Eric' ; qemu-devel@nongnu.org; > qemu-...@nongnu.org; imamm...@redhat.com > Cc: peter.mayd...@linaro.org; shannon.zha...@gmail.com; xuwei (O) > ; ler...@redhat.com; Linuxarm >

Re: [PATCH v2 13/20] nvme: refactor prp mapping

2019-11-25 Thread Beata Michalska
On Wed, 20 Nov 2019 at 09:39, Klaus Birkelund wrote: > > On Tue, Nov 12, 2019 at 03:23:43PM +, Beata Michalska wrote: > > Hi Klaus, > > > > On Tue, 15 Oct 2019 at 11:57, Klaus Jensen wrote: > > > > > > Instead of handling both QSGs and IOVs in multiple places, simply use > > > QSGs

Re: [PATCH for-4.2 v10 06/15] virtio-iommu: Endpoint and domains structs and helpers

2019-11-25 Thread Auger Eric
Hi Jean, On 11/4/19 7:31 PM, Jean-Philippe Brucker wrote: > Hi Eric, > > On Tue, Jul 30, 2019 at 07:21:28PM +0200, Eric Auger wrote: >> static void virtio_iommu_device_unrealize(DeviceState *dev, Error **errp) >> { >> VirtIODevice *vdev = VIRTIO_DEVICE(dev); >> +VirtIOIOMMU *s =

Re: [PATCH v3 2/5] s390x: Move reset normal to shared reset handler

2019-11-25 Thread Cornelia Huck
On Mon, 25 Nov 2019 04:03:45 -0500 Janosch Frank wrote: > Let's start moving the cpu reset functions into a single function with > a switch/case, so we can use fallthroughs and share more code between > resets. > > This patch introduces the reset function by renaming cpu_reset() and > cleaning

Re: [PATCH v6 1/9] hw/core/clock: introduce clock objects

2019-11-25 Thread Philippe Mathieu-Daudé
On 9/4/19 2:55 PM, Damien Hedde wrote: Introduce clock objects: ClockIn and ClockOut. These objects may be used to distribute clocks from an object to several other objects. Each ClockIn object contains the current state of the clock: the frequency; it allows an object to migrate its input

Re: [PATCH for-5.0 v11 12/20] qapi: Introduce DEFINE_PROP_INTERVAL

2019-11-25 Thread Auger Eric
Hi Dave, On 11/22/19 8:03 PM, Dr. David Alan Gilbert wrote: > * Eric Auger (eric.au...@redhat.com) wrote: >> Introduce a new property defining a labelled interval: >> ,,label. >> >> This will be used to encode reserved IOVA regions. The label >> is left undefined to ease reuse accross use cases.

[PATCH 5/5] mips: fulong 2e: Renovate coding style

2019-11-25 Thread Filip Bozuta
The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_fulong2e.c hw/isa/vt82c686.c hw/pci-host/bonito.c include/hw/isa/vt82c686.h These mips Fulong 2E machine files were edited and all the errors and warrings

Re: [PATCH v3 1/5] s390x: Don't do a normal reset on the initial cpu

2019-11-25 Thread Cornelia Huck
On Mon, 25 Nov 2019 04:03:44 -0500 Janosch Frank wrote: > The initiating cpu needs to be reset with an initial reset. While > doing a normal reset followed by a initial reset is not wrong per se, > the Ultravisor will only allow the correct reset to be performed. > > Signed-off-by: Janosch

[PATCH 3/5] mips: mipssim: Renovate coding style

2019-11-25 Thread Filip Bozuta
The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_mipssim.c hw/net/mipsnet.c All these mips mipssim machine files were edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then

[PATCH 0/5] mips: machines: Renovate coding style

2019-11-25 Thread Filip Bozuta
The scripts checkpatch.pl located in scripts folder was used to check for errors and warnings in fllowing mips machines: Jazz Malta Mipssim R4000 Fulong 2E Boston All generated errors and warnings were corrected and the script was ran again to make sure there are no more errors

[PATCH 2/5] mips: malta: Renovate coding style

2019-11-25 Thread Filip Bozuta
The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_malta.c hw/mips/gt64xxx_pci.c tests/acceptance/linux_ssh_mips_malta.py All these mips malta machine files were edited and all the errors and warrings generated by the

[PATCH 4/5] mips: r4000: Renovate coding style

2019-11-25 Thread Filip Bozuta
The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in file: hw/mips/mips_r4k.c This mips r4000 machine file was edited and all the errors and warrings generated by the checkpatch.pl script were corrected and then the script was ran again to make

Re: [PATCH v6 2/9] hw/core/clock-vmstate: define a vmstate entry for clock state

2019-11-25 Thread Philippe Mathieu-Daudé
On 9/4/19 2:55 PM, Damien Hedde wrote: Signed-off-by: Damien Hedde Reviewed-by: Philippe Mathieu-Daudé --- This was in the previous reviewed commit. But it can't be in the clock.c file in order to allow linux-user builds. --- hw/core/Makefile.objs | 1 + hw/core/clock-vmstate.c | 25

[PATCH 1/5] mips: jazz: Renovate coding style

2019-11-25 Thread Filip Bozuta
The script checkpatch.pl located in scripts folder was used to detect all errors and warrnings in files: hw/mips/mips_jazz.c hw/display/jazz_led.c hw/dma/rc4030.c All these mips jazz machine files were edited and all the errors and warrings generated by the checkpatch.pl script were

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 1:54 PM, Philippe Mathieu-Daudé wrote: On 11/25/19 12:26 PM, Philippe Mathieu-Daudé wrote: On 11/25/19 11:12 AM, Marc-André Lureau wrote: Hi On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Markovic wrote: On Wednesday, November 20, 2019, Marc-André Lureau wrote: Signed-off-by:

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 12:26 PM, Philippe Mathieu-Daudé wrote: On 11/25/19 11:12 AM, Marc-André Lureau wrote: Hi On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Markovic wrote: On Wednesday, November 20, 2019, Marc-André Lureau wrote: Signed-off-by: Marc-André Lureau ---   hw/mips/mips_mipssim.c | 1

[PATCH 2/2] iotests: add new test cases to bitmap migration

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
Add optional pre-shutdown: shutdown/launch vm before migration. This leads to storing persistent bitmap to the storage, which breaks migration with dirty-bitmaps capability enabled and shared storage until fixed by previous commit. Signed-off-by: Vladimir Sementsov-Ogievskiy ---

[PATCH 1/2] block/qcow2-bitmap: fix bitmap migration

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
Fix bitmap migration with dirty-bitmaps capability enabled and shared storage. We should ignore IN_USE bitmaps in the image on target, when migrating bitmaps through migration channel, see new comment below. Fixes: 74da6b943565c451 Signed-off-by: Vladimir Sementsov-Ogievskiy ---

[PATCH for-4.2 0/2] Fix bitmap migration

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
Hi all! We've faced a bug in rhev-2.12.0-33.el7-based Qemu. In upstream, bug introduced in 4.0 by 74da6b943565c45 "block/dirty-bitmaps: implement inconsistent bit" commit. At this commit we started to load inconsistent bitmap instead of silently ignoring them, and it now I see that it breaks

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Caroline Concatto
Taishan 2280 Cortex-A72 Running 1)with -armpl flag with and without the docker armclang -armpl hello.c ./qemu/build/aarch64-linux-user/qemu-aarch64 -d page a.out host mmap_min_addr=0x8000 Reserved 0x21000 bytes of guest address space Relocating guest address space from

Re: [PATCH] migration/ram: Yield periodically to the main loop

2019-11-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191125120548.13589-1-yury-ko...@yandex-team.ru/ Hi, This series failed the docker-quick@centos7 build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT

Re: [PATCH v2 09/20] nvme: add support for the asynchronous event request command

2019-11-25 Thread Beata Michalska
On Tue, 19 Nov 2019 at 19:51, Klaus Birkelund wrote: > > On Tue, Nov 12, 2019 at 03:04:59PM +, Beata Michalska wrote: > > Hi Klaus, > > > > On Tue, 15 Oct 2019 at 11:49, Klaus Jensen wrote: > > > @@ -1188,6 +1326,9 @@ static int nvme_start_ctrl(NvmeCtrl *n) > > > > > >

[PATCH V2] ppc/spapr_events: fix potential NULL pointer dereference in rtas_event_log_dequeue

2019-11-25 Thread pannengyuan
From: PanNengyuan This fixes coverity issues 68911917: 360 CID 68911917: (NULL_RETURNS) 361. dereference: Dereferencing "source", which is known to be "NULL". 361if (source->mask & event_mask) { 362break; 363}

Avocado notes from KVM forum 2019

2019-11-25 Thread Philippe Mathieu-Daudé
Hi Cleber, Here are my notes from talking about Avocado with various people during the KVM forum in Lyon last month. All comments are QEMU oriented. 1) Working offline Various people complained Avocado requires online access, and they would like to use it offline. Maintainer workflow

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Aleksandar Markovic
On Mon, Nov 25, 2019 at 12:26 PM Philippe Mathieu-Daudé wrote: > > On 11/25/19 11:12 AM, Marc-André Lureau wrote: > > Hi > > > > On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Markovic > > wrote: > >> > >> > >> > >> On Wednesday, November 20, 2019, Marc-André Lureau > >> wrote: > >>> > >>>

Re: [PATCH] migration/ram: Yield periodically to the main loop

2019-11-25 Thread Juan Quintela
Yury Kotov wrote: > Usually, incoming migration coroutine yields to the main loop > when it's IO-channel waits for data to receive. But there is a case > when RAM migration and data receive have the same speed: VM with huge > zeroed RAM. In this case, IO-channel won't read and thus the main loop

Re: [PATCH for-4.2? v3 0/8] block: Fix resize (extending) of short overlays

2019-11-25 Thread Max Reitz
On 22.11.19 17:41, Eric Blake wrote: > On 11/22/19 10:17 AM, Peter Maydell wrote: [...] >> Eyeballing of the diffstat plus the fact we're on v4 of >> the patchset already makes me a little uneasy about >> putting it into rc3, but if the bug we're fixing matters >> enough we can do it. > > In

Re: [PATCH for-4.2? v3 0/8] block: Fix resize (extending) of short overlays

2019-11-25 Thread Max Reitz
On 22.11.19 17:05, Kevin Wolf wrote: > See patch 4 for the description of the bug fixed. > > v3: > - Don't allow blocking the monitor for a zero write in block_resize > (even though we can already blockfor other reasons there). This is > mainly responsible for the increased complexity

Re: [PATCH v3 4/8] block: truncate: Don't make backing file data visible

2019-11-25 Thread Max Reitz
On 22.11.19 17:05, Kevin Wolf wrote: > When extending the size of an image that has a backing file larger than > its old size, make sure that the backing file data doesn't become > visible in the guest, but the added area is properly zeroed out. > > Consider the following scenario where the

[PATCH] migration/ram: Yield periodically to the main loop

2019-11-25 Thread Yury Kotov
Usually, incoming migration coroutine yields to the main loop when it's IO-channel waits for data to receive. But there is a case when RAM migration and data receive have the same speed: VM with huge zeroed RAM. In this case, IO-channel won't read and thus the main loop is stuck and for example,

Re: [PATCH v2 12/20] nvme: bump supported specification version to 1.3

2019-11-25 Thread Beata Michalska
On Mon, 18 Nov 2019 at 09:48, Klaus Birkelund wrote: > > On Tue, Nov 12, 2019 at 03:05:06PM +, Beata Michalska wrote: > > Hi Klaus, > > > > On Tue, 15 Oct 2019 at 11:52, Klaus Jensen wrote: > > > > > > +static uint16_t nvme_identify_ns_descr_list(NvmeCtrl *n, NvmeCmd *c) > > > +{ > > > +

[Bug 1853781] Re: Baremetal kernel built from assembly runs multiple times

2019-11-25 Thread Philippe Mathieu-Daudé
You can look at hw/arm/raspi.c::write_smpboot(): While the first core start booting the kernel, the other cores keep spinning until the 1st core configured the mailboxes: static const uint32_t smpboot[] = { 0xe1a0e00f, /*mov lr, pc */ 0xe3a0fe00 + (BOARDSETUP_ADDR >> 4), /* mov

Re: [PATCH v17 03/14] util/cutils: refactor do_strtosz() to support suffixes list

2019-11-25 Thread Eduardo Habkost
On Mon, Nov 25, 2019 at 08:20:23AM +0100, Markus Armbruster wrote: > Tao Xu writes: > > > Add do_strtomul() to convert string according to different suffixes. > > > > Reviewed-by: Eduardo Habkost > > Signed-off-by: Tao Xu > > What's the actual change here? "Refactor" suggests the interfaces

Re: [PATCH v3 8/8] iotests: Test committing to short backing file

2019-11-25 Thread Max Reitz
On 22.11.19 17:05, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf > --- > tests/qemu-iotests/274| 152 + > tests/qemu-iotests/274.out| 203 ++ > tests/qemu-iotests/group | 1 + > tests/qemu-iotests/iotests.py | 2 +- > 4

Re: [PATCH v3 3/8] qcow2: Declare BDRV_REQ_NO_FALLBACK supported

2019-11-25 Thread Max Reitz
On 22.11.19 17:05, Kevin Wolf wrote: > In the common case, qcow2_co_pwrite_zeroes() already only modifies > metadata case, so we're fine with or without BDRV_REQ_NO_FALLBACK set. > > The only exception is when using an external data file, where the > request is passed down to the block driver of

[Bug 1848556] Re: qemu-img check failing on remote image in Eoan

2019-11-25 Thread Christian Ehrhardt 
Eoan - without fix -> hang With fix: qemu-img check http://10.193.37.117/cloud/eoan-server-cloudimg-amd64.img No errors were found on the image.

Re: [PATCH v3 2/8] block: Add no_fallback parameter to bdrv_co_truncate()

2019-11-25 Thread Max Reitz
On 22.11.19 17:05, Kevin Wolf wrote: > This adds a no_fallback parameter to bdrv_co_truncate(), bdrv_truncate() > and blk_truncate() in preparation for a fix that potentially needs to > zero-write the new area. no_fallback will use BDRV_REQ_NO_FALLBACK for > this operation and lets the truncate

[Bug 1853826] Re: ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Alex Bennée
Could you invoke one of the failing and passing cases with -d page and post the results please. ** Tags added: arm linux-user -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1853826 Title: ELF

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Philippe Mathieu-Daudé
On 11/25/19 11:12 AM, Marc-André Lureau wrote: Hi On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Markovic wrote: On Wednesday, November 20, 2019, Marc-André Lureau wrote: Signed-off-by: Marc-André Lureau --- hw/mips/mips_mipssim.c | 1 - 1 file changed, 1 deletion(-) diff --git

[Bug 1853826] [NEW] ELF loader fails to load shared object on ThunderX2 running RHEL7

2019-11-25 Thread Caroline Concatto
Public bug reported: Simple test: hello.c include int main(int argc, char* argv[]) { { printf("Hello World... \n"); } return 0; } when compiled with : *Compiler https://developer.arm.com/tools-and-software/server-and-hpc/arm-architecture-tools/arm-allinea-studio/download

Re: [PATCH 2/6] block: truncate: Don't make backing file data visible

2019-11-25 Thread Kevin Wolf
Am 20.11.2019 um 19:01 hat Vladimir Sementsov-Ogievskiy geschrieben: > 20.11.2019 17:03, Kevin Wolf wrote: > > When extending the size of an image that has a backing file larger than > > its old size, make sure that the backing file data doesn't become > > visible in the guest, but the added area

Re: [PATCH] target/arm: Honor HCR_EL2.TID3 trapping requirements

2019-11-25 Thread Marc Zyngier
On 2019-11-25 10:40, Will Deacon wrote: On Sat, Nov 23, 2019 at 11:56:18AM +, Marc Zyngier wrote: HCR_EL2.TID3 mandates that access from EL1 to a long list of id registers traps to EL2, and QEMU has so far ignored this requirement. This breaks (among other things) KVM guests that have

[PATCH-for-4.2] hw/mips: Deprecate the r4k machine

2019-11-25 Thread Philippe Mathieu-Daudé
The r4k machine was introduced in 2005 (6af0bf9c7) and its last logical change was in 2005 (9542611a6). After we can count 164 maintenance commits (QEMU API changes) with the exception of 1 fix in 2015 (memory leak, commit 3ad9fd5a). This machine was introduced as a proof of concept to run a MIPS

Re: [PATCH 0/6] Enable Travis builds on arm64, ppc64le and s390x

2019-11-25 Thread Alex Bennée
Alex Bennée writes: > Thomas Huth writes: > >> Travis recently added build hosts for arm64, ppc64le and s390x, so >> this is a welcome addition to our Travis testing matrix. >> >> Unfortunately, the builds are running in quite restricted LXD containers >> there, for example it is not possible

Re: [PATCH v2 0/5] hvf: stability fixes for HVF

2019-11-25 Thread Paolo Bonzini
On 24/11/19 21:05, Cameron Esfahani wrote: > The following patches fix stability issues with running QEMU on Apple > Hypervisor Framework (HVF): > - non-RAM, non-ROMD areas need to trap so accesses can be correctly > emulated. > - Current TSC synchronization implementation is insufficient: when

Re: [PATCH v2 5/5] hvf: save away type as well as vector so we can reinject them

2019-11-25 Thread Paolo Bonzini
On 24/11/19 21:05, Cameron Esfahani wrote: > Save away type as well as vector in hvf_store_events() so we can > correctly reinject both in hvf_inject_interrupts(). > > Make sure to clear ins_len and has_error_code when ins_len isn't > valid and error_code isn't set. Do you have a testcase for

Re: [PATCH v4 17/37] mips: inline serial_init()

2019-11-25 Thread Marc-André Lureau
Hi On Mon, Nov 25, 2019 at 2:12 PM Aleksandar Markovic wrote: > > > > On Wednesday, November 20, 2019, Marc-André Lureau > wrote: >> >> The function is specific to mipssim, let's inline it. >> >> Signed-off-by: Marc-André Lureau >> --- >> hw/char/serial.c | 16 >>

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Marc-André Lureau
Hi On Mon, Nov 25, 2019 at 2:07 PM Aleksandar Markovic wrote: > > > > On Wednesday, November 20, 2019, Marc-André Lureau > wrote: >> >> Signed-off-by: Marc-André Lureau >> --- >> hw/mips/mips_mipssim.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/hw/mips/mips_mipssim.c

Re: [PATCH v4 17/37] mips: inline serial_init()

2019-11-25 Thread Aleksandar Markovic
On Wednesday, November 20, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > The function is specific to mipssim, let's inline it. > > Signed-off-by: Marc-André Lureau > --- > hw/char/serial.c | 16 > hw/mips/mips_mipssim.c | 15 --- >

Re: [PATCH 0/4] fix & merge block_status_above and is_allocated_above

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
Ping? Hi! Why so silent? Postpone this to 5.0? This is fixing the same problem with block commit, like Kevin's series, just commit not to mid but to base.. 16.11.2019 19:34, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > I wanted to understand, what is the real difference between >

Re: [PATCH v4 18/37] mips: baudbase is 115200 by default

2019-11-25 Thread Aleksandar Markovic
On Wednesday, November 20, 2019, Marc-André Lureau < marcandre.lur...@redhat.com> wrote: > Signed-off-by: Marc-André Lureau > --- > hw/mips/mips_mipssim.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/hw/mips/mips_mipssim.c b/hw/mips/mips_mipssim.c > index bfafa4d7e9..3cd0e6eb33

[Bug 1852781] Re: qemu s390x on focal - applications breaking

2019-11-25 Thread Frank Heimes
** Tags added: qemu-20.04 -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1852781 Title: qemu s390x on focal - applications breaking Status in QEMU: Incomplete Status in Ubuntu on IBM z Systems:

Re: [PATCH v4 0/6] HPPA: i82596, PS/2 and graphics emulation

2019-11-25 Thread Richard Henderson
On 11/23/19 1:59 PM, Sven Schnelle wrote: > On Sun, Nov 03, 2019 at 09:56:01PM +0100, Sven Schnelle wrote: >> Hi, >> >> these series adds quite a lot to the HPPA emulation in QEMU: >> i82596 emulation from Helge, PS/2 and Artist graphics emulation. >> [..] > > Ping? :-) Version 1 missed the 4.2

Re: [PATCH v3 8/8] iotests: Test committing to short backing file

2019-11-25 Thread Vladimir Sementsov-Ogievskiy
22.11.2019 19:05, Kevin Wolf wrote: > Signed-off-by: Kevin Wolf Reviewed-by: Vladimir Sementsov-Ogievskiy Tested-by: Vladimir Sementsov-Ogievskiy -- Best regards, Vladimir

<    1   2   3   >