Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Andreas Färber
Am 25.09.2017 um 08:37 schrieb Peter Xu: > We have object_get_objects_root() to keep user created objects, however > no place for objects that will be used internally. Create such a > container for internal objects. > > CC: Andreas Färber > CC: Markus Armbruster > CC: Paolo Bonzini > Suggested

Re: [Qemu-devel] [PATCH 4/9] s390x: refactor error handling for SSCH and RSCH

2017-09-25 Thread Dong Jia Shi
* Cornelia Huck [2017-09-08 12:02:38 +0200]: > On Fri, 8 Sep 2017 11:41:00 +0800 > Dong Jia Shi wrote: > > > I think the difficult part is in the Qemu side. For either A or B, in > > Qemu, we'd need to return a cc0 to indicate the channel program is > > accepted successfully by the device, and

Re: [Qemu-devel] [PATCH v1 01/27] s390x: raise CPU hotplug irq after really hotplugged

2017-09-25 Thread Christian Borntraeger
On 09/18/2017 05:59 PM, David Hildenbrand wrote: > Let's move it into the machine, so we trigger the IRQ after setting > ms->possible_cpus (which SCLP uses to construct the list of > online CPUs). > > Signed-off-by: David Hildenbrand Makes sense Reviewed-by: Christian Borntraeger > --- > hw/s

Re: [Qemu-devel] [PATCH v2 3/4] iothread: export iothread_stop()

2017-09-25 Thread Fam Zheng
On Mon, 09/25 14:37, Peter Xu wrote: > So that internal iothread users can explicitly stop one iothread without > destroying it. > > Since at it, fix iothread_stop() to allow it to be called multiple > times. Before this patch we may call iothread_stop() more than once on > single iothread, while

Re: [Qemu-devel] [PULL 28/36] tests: Add ubuntu.i386 image

2017-09-25 Thread Gerd Hoffmann
Hi, > Mac OS X is built on top of Darwin. Darwin is completely open source > and free. There are no copyright issues because it is released under > the Apple Public Source License.  As far I know cocoa is not open source though. So, can you actually build qemu on darwin? And if so, it will pro

Re: [Qemu-devel] [PATCH 4/9] s390x: refactor error handling for SSCH and RSCH

2017-09-25 Thread Dong Jia Shi
* Cornelia Huck [2017-09-08 11:59:50 +0200]: > On Fri, 8 Sep 2017 11:21:57 +0200 > Halil Pasic wrote: > > > On 09/08/2017 05:41 AM, Dong Jia Shi wrote: > > > Let' me summarize here, in case I misunderstand things. Now we have > > > two ways to choose: > > > > > > A. Kernel: no change. > > >

Re: [Qemu-devel] [PATCH V2] add migration capability to bypass the shared memory

2017-09-25 Thread Zhang Haoyu
If hotplug memory during migration, the calculation of migration_dirty_pages maybe not correct, void migration_bitmap_extend(ram_addr_t old, ram_addr_t new) { ... migration_dirty_pages += new - old; call_rcu(old_bitmap, migration_bitmap_free, rcu); ... } Thanks, Zha

Re: [Qemu-devel] [PATCH v11 1/6] throttle: factor out duplicate code

2017-09-25 Thread Pradeep Jagadeesh
On 9/23/2017 12:33 PM, Manos Pitsidianakis wrote: On Fri, Sep 22, 2017 at 01:31:58PM +0200, Pradeep Jagadeesh wrote: On 9/18/2017 6:20 PM, Manos Pitsidianakis wrote: On Thu, Sep 14, 2017 at 06:40:05AM -0400, Pradeep Jagadeesh wrote: This patch factors out the duplicate throttle code that was s

[Qemu-devel] [PATCH] docker: Don't mount ccache db if NOUSER=1

2017-09-25 Thread Fam Zheng
With NOUSER=1 the container runs code as root, which may create privileged files that will not be be accssible next time. Skip ccache dir mount in this case. Signed-off-by: Fam Zheng --- tests/docker/Makefile.include | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests

Re: [Qemu-devel] [PATCH 01/34] hw: use "qemu/osdep.h" as first #include in source files

2017-09-25 Thread Cornelia Huck
On Fri, 22 Sep 2017 12:39:41 -0300 Philippe Mathieu-Daudé wrote: > applied using ./scripts/clean-includes > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/acpi/ipmi-stub.c | 1 + > hw/audio/fmopl.c| 1 - > hw/cpu/core.c | 1 + > hw/ppc/spapr_cp

Re: [Qemu-devel] [PATCH] pci: allow 32-bit PCI IO accesses to pass through the PCI bridge

2017-09-25 Thread Dr. David Alan Gilbert
* Marcel Apfelbaum (mar...@redhat.com) wrote: > On 23/09/2017 11:23, Mark Cave-Ayland wrote: > > On 22/09/17 23:18, Laszlo Ersek wrote: > > > > > On 09/22/17 14:18, Mark Cave-Ayland wrote: > > > > Whilst the underlying PCI bridge implementation supports 32-bit PCI IO > > > > accesses, unfortunatel

Re: [Qemu-devel] [PATCH 05/34] misc: remove duplicated includes

2017-09-25 Thread Cornelia Huck
On Fri, 22 Sep 2017 12:39:45 -0300 Philippe Mathieu-Daudé wrote: > exec: housekeeping (funny since 02d0e095031) > > applied using ./scripts/clean-includes > > Signed-off-by: Philippe Mathieu-Daudé > --- > accel/tcg/translate-all.c | 1 - > exec.c | 3 --- >

Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Peter Xu
On Mon, Sep 25, 2017 at 09:14:21AM +0200, Andreas Färber wrote: > Am 25.09.2017 um 08:37 schrieb Peter Xu: > > We have object_get_objects_root() to keep user created objects, however > > no place for objects that will be used internally. Create such a > > container for internal objects. > > > > C

Re: [Qemu-devel] [PATCH v1 02/27] s390x/cpumodel: fix max STFL(E) bit number

2017-09-25 Thread Christian Borntraeger
Makes sense. I asked myself if there is code outside that does not zero out 2048-16k so I looked into the kernel source and it looks like we always did the right thing (and zeroed out the response buffer), so this should not uncover any bugs. Reviewed-by: Christian Borntraeger On 09/18/2017 05:

[Qemu-devel] [PATCH] docker: Fix test-mingw

2017-09-25 Thread Fam Zheng
Feature "dtc" is explicitly required by test-mingw, but is not detected by the run script since we switched to archive-source.sh in b7f404201e4. Since it isn't available in the Fedora image which runs this test on patchew, the way we get dtc is still from submodule. archive-source.sh takes care of

[Qemu-devel] [PATCH] ppc/pnv: check for firmware file presence

2017-09-25 Thread Cédric Le Goater
and exit before uslessly trying to load it if the file does not exists. Issue dicovered by Coverity Scan. Signed-off-by: Cédric Le Goater --- hw/ppc/pnv.c | 4 1 file changed, 4 insertions(+) diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c index 47221158d415..7728eece2eec 100644 --- a/hw/ppc/pnv

Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Manos Pitsidianakis
On Mon, Sep 25, 2017 at 04:14:26PM +0800, Peter Xu wrote: On Mon, Sep 25, 2017 at 09:14:21AM +0200, Andreas Färber wrote: Am 25.09.2017 um 08:37 schrieb Peter Xu: > We have object_get_objects_root() to keep user created objects, however > no place for objects that will be used internally. Creat

Re: [Qemu-devel] [PATCH v5] vl: exit if maxcpus is negative

2017-09-25 Thread seeteena
Hi Philippe, I have not seen patch went upstream.. On 09/04/2017 09:12 PM, Philippe Mathieu-Daudé wrote: On 09/04/2017 04:43 AM, Seeteena Thoufeek wrote: ---Steps to Reproduce--- When passed a negative number to 'maxcpus' parameter, Qemu aborts with a core dump. Run the following command wi

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc/pnv: check for firmware file presence

2017-09-25 Thread Thomas Huth
On 25.09.2017 10:33, Cédric Le Goater wrote: > and exit before uslessly trying to load it if the file does s/uslessly/uselessly/ > not exists. > > Issue dicovered by Coverity Scan. /dicovered/discovered/ > Signed-off-by: Cédric Le Goater > --- > hw/ppc/pnv.c | 4 > 1 file changed, 4 ins

Re: [Qemu-devel] [PULL 28/36] tests: Add ubuntu.i386 image

2017-09-25 Thread Daniel P. Berrange
On Mon, Sep 25, 2017 at 09:31:15AM +0200, Gerd Hoffmann wrote: > Hi, > > > Mac OS X is built on top of Darwin. Darwin is completely open source > > and free. There are no copyright issues because it is released under > > the Apple Public Source License.  > > As far I know cocoa is not open sour

Re: [Qemu-devel] [Qemu-ppc] [PATCH v5] vl: exit if maxcpus is negative

2017-09-25 Thread Thomas Huth
On 25.09.2017 10:43, seeteena wrote: > Hi Philippe, > > I have not seen patch went upstream.. You need to get the attention of a maintainer who could pick up the patch, e.g. by putting them on CC:. See the MAINTAINERS file for who is responsible for the various parts of QEMU. I've put Eduardo (Nu

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc/pnv: check for firmware file presence

2017-09-25 Thread Greg Kurz
On Mon, 25 Sep 2017 10:46:13 +0200 Thomas Huth wrote: > On 25.09.2017 10:33, Cédric Le Goater wrote: > > and exit before uslessly trying to load it if the file does > > s/uslessly/uselessly/ > > > not exists. > > > > Issue dicovered by Coverity Scan. > > /dicovered/discovered/ > Mention

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc/pnv: check for firmware file presence

2017-09-25 Thread Cédric Le Goater
On 09/25/2017 10:46 AM, Thomas Huth wrote: > On 25.09.2017 10:33, Cédric Le Goater wrote: >> and exit before uslessly trying to load it if the file does > > s/uslessly/uselessly/ > >> not exists. >> >> Issue dicovered by Coverity Scan. > > /dicovered/discovered/ arg. Sorry about that. >> Signe

Re: [Qemu-devel] [PULL 28/36] tests: Add ubuntu.i386 image

2017-09-25 Thread Daniel P. Berrange
On Fri, Sep 22, 2017 at 04:26:40PM -0400, Programmingkid wrote: > > > On Sep 22, 2017, at 9:18 AM, Daniel P. Berrange wrote: > > > > On Fri, Sep 22, 2017 at 08:44:05PM +0800, Fam Zheng wrote: > >> On Fri, 09/22 08:10, Programmingkid wrote: > >>> Could a Darwin test be added? Both x86 and PowerPC

[Qemu-devel] [PATCH v2] ppc/pnv: check for OPAL firmware file presence

2017-09-25 Thread Cédric Le Goater
and exit before uselessly trying to load it if the file does not exists. Issue discovered by Coverity Scan. Signed-off-by: Cédric Le Goater --- Changes since v1: - fixed spelling - improved OPAL naming by adding firmware hw/ppc/pnv.c | 6 +- 1 file changed, 5 insertions(+), 1 deletio

Re: [Qemu-devel] [Qemu-ppc] [PATCH] ppc/pnv: check for firmware file presence

2017-09-25 Thread Cédric Le Goater
On 09/25/2017 10:52 AM, Greg Kurz wrote: > On Mon, 25 Sep 2017 10:46:13 +0200 > Thomas Huth wrote: > >> On 25.09.2017 10:33, Cédric Le Goater wrote: >>> and exit before uslessly trying to load it if the file does >> >> s/uslessly/uselessly/ >> >>> not exists. >>> >>> Issue dicovered by Coverity

Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Andreas Färber
Hi, Am 25.09.2017 um 10:14 schrieb Peter Xu: > On Mon, Sep 25, 2017 at 09:14:21AM +0200, Andreas Färber wrote: >> Am 25.09.2017 um 08:37 schrieb Peter Xu: >>> We have object_get_objects_root() to keep user created objects, however >>> no place for objects that will be used internally. Create such

Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Daniel P. Berrange
On Mon, Sep 25, 2017 at 09:14:21AM +0200, Andreas Färber wrote: > Am 25.09.2017 um 08:37 schrieb Peter Xu: > > We have object_get_objects_root() to keep user created objects, however > > no place for objects that will be used internally. Create such a > > container for internal objects. > > > > C

Re: [Qemu-devel] [PATCH v2] ppc/pnv: check for OPAL firmware file presence

2017-09-25 Thread Thomas Huth
On 25.09.2017 10:58, Cédric Le Goater wrote: > and exit before uselessly trying to load it if the file does not > exists. > > Issue discovered by Coverity Scan. > > Signed-off-by: Cédric Le Goater > --- > > Changes since v1: > > - fixed spelling > - improved OPAL naming by adding firmware

Re: [Qemu-devel] [PATCH 04/34] misc: remove headers implicitly included

2017-09-25 Thread Stefan Hajnoczi
On Fri, Sep 22, 2017 at 12:39:44PM -0300, Philippe Mathieu-Daudé wrote: > applied using ./scripts/clean-includes > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/audio/fmopl.h | 1 - > bsd-user/main.c | 1 - > chardev/wctablet.c | 4 > hw/scsi/vhost-us

Re: [Qemu-devel] [PATCH v2] docker: add installation to build tests

2017-09-25 Thread Paolo Bonzini
On 25/09/2017 05:09, Fam Zheng wrote: > On Fri, 09/22 17:49, Paolo Bonzini wrote: >> diff --git a/tests/docker/common.rc b/tests/docker/common.rc >> index 6865689..1522aab 100755 >> --- a/tests/docker/common.rc >> +++ b/tests/docker/common.rc >> @@ -36,3 +36,11 @@ build_qemu() >> $QEMU_SRC/con

Re: [Qemu-devel] [[PATCH] dma/i82374: avoid double creation of i82374 device

2017-09-25 Thread Paolo Bonzini
On 24/09/2017 23:02, Michael Tokarev wrote: > 15.09.2017 12:06, Eduardo Otubo wrote: >> QEMU fails when used with the following command line: >> >> ./ppc64-softmmu/qemu-system-ppc64 -S -machine 40p,accel=tcg -device i82374 >> qemu-system-ppc64: hw/isa/isa-bus.c:110: isa_bus_dma: Assertion >> `

Re: [Qemu-devel] [PATCH v1 02/27] s390x/cpumodel: fix max STFL(E) bit number

2017-09-25 Thread Thomas Huth
On 18.09.2017 17:59, David Hildenbrand wrote: > Not that it would matter in the near future, but it is actually 2048 > bytes, therefore 16384 possible bits. > > Signed-off-by: David Hildenbrand > --- > target/s390x/cpu_features.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff

Re: [Qemu-devel] [[PATCH] dma/i82374: avoid double creation of i82374 device

2017-09-25 Thread Eduardo Otubo
On Mon, Sep 25, 2017 at 11:11:37AM +0200, Paolo Bonzini wrote: > On 24/09/2017 23:02, Michael Tokarev wrote: > > 15.09.2017 12:06, Eduardo Otubo wrote: > >> QEMU fails when used with the following command line: > >> > >> ./ppc64-softmmu/qemu-system-ppc64 -S -machine 40p,accel=tcg -device > >> i8

Re: [Qemu-devel] [PATCH] remove trailing whitespace from qemu-options.hx

2017-09-25 Thread Stefan Hajnoczi
On Sat, Sep 23, 2017 at 07:33:34PM +0300, Michael Tokarev wrote: > Remove trailing whitespace in qemu-options documentation, as it causes > reproducibility issues depending on the echo implementation used by > the Makefile. > > Reported-By: Vagrant Cascadian > Signed-off-by: Michael Tokarev > --

Re: [Qemu-devel] [Qemu-block] [PATCH] block/qcow2-bitmap: fix use of uninitialized pointer

2017-09-25 Thread Stefan Hajnoczi
On Fri, Sep 22, 2017 at 05:43:53PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Without initialization to zero dirty_bitmap field may be not zero > for a bitmap which should not be stored and > qcow2_store_persistent_dirty_bitmaps will erroneously call > store_bitmap for it which leads to SYGSEGV o

Re: [Qemu-devel] [[PATCH] dma/i82374: avoid double creation of i82374 device

2017-09-25 Thread Paolo Bonzini
On 25/09/2017 11:26, Eduardo Otubo wrote: > On Mon, Sep 25, 2017 at 11:11:37AM +0200, Paolo Bonzini wrote: >> On 24/09/2017 23:02, Michael Tokarev wrote: >>> 15.09.2017 12:06, Eduardo Otubo wrote: QEMU fails when used with the following command line: ./ppc64-softmmu/qemu-system-ppc

Re: [Qemu-devel] [PATCH 04/18] block/mirror: Pull out mirror_perform()

2017-09-25 Thread Vladimir Sementsov-Ogievskiy
13.09.2017 21:18, Max Reitz wrote: When converting mirror's I/O to coroutines, we are going to need a point where these coroutines are created. mirror_perform() is going to be that point. Signed-off-by: Max Reitz Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/mirror.c | 53 +++

[Qemu-devel] [PATCH] spapr: move registration of "host" CPU core type to machine code

2017-09-25 Thread Greg Kurz
The CPU core abstraction belongs to the machine code. This also gets rid of some code duplication. Signed-off-by: Greg Kurz --- hw/ppc/spapr_cpu_core.h is also included elsewhere in target/ppc/kvm.c but this is already handled by the following cleanup patch: https://patchwork.ozlabs.org/patch/8

Re: [Qemu-devel] [PATCH v2 1/4] qom: provide root container for internal objs

2017-09-25 Thread Stefan Hajnoczi
On Mon, Sep 25, 2017 at 11:34:58AM +0300, Manos Pitsidianakis wrote: > On Mon, Sep 25, 2017 at 04:14:26PM +0800, Peter Xu wrote: > > On Mon, Sep 25, 2017 at 09:14:21AM +0200, Andreas Färber wrote: > > > Am 25.09.2017 um 08:37 schrieb Peter Xu: > > > > We have object_get_objects_root() to keep user

[Qemu-devel] [Bug 1719282] [NEW] Unable to boot after drive-mirror

2017-09-25 Thread Farid Zarazvand
Public bug reported: Hi, I am using "drive-mirror" qmp block-job command to transfer VM disk image to other path (different physical disk on host). Unfortunately after shutting down and starting from new image, VM is unable to boot and qrub enters rescue mode displaying following error: ``` erro

Re: [Qemu-devel] [PATCH v2 3/4] iothread: export iothread_stop()

2017-09-25 Thread Stefan Hajnoczi
On Mon, Sep 25, 2017 at 02:37:28PM +0800, Peter Xu wrote: > So that internal iothread users can explicitly stop one iothread without > destroying it. > > Since at it, fix iothread_stop() to allow it to be called multiple > times. Before this patch we may call iothread_stop() more than once on > s

Re: [Qemu-devel] [PATCH v2 4/4] iothread: delay the context release to finalize

2017-09-25 Thread Stefan Hajnoczi
On Mon, Sep 25, 2017 at 02:37:29PM +0800, Peter Xu wrote: > When gcontext is used with iothread, the context will be destroyed > during iothread_stop(). That's not good since sometimes we would like > to keep the resources until iothread is destroyed, but we may want to > stop the thread before th

Re: [Qemu-devel] [Qemu-block] [PATCH v3 1/3] block: add bdrv_co_drain_end callback

2017-09-25 Thread Stefan Hajnoczi
On Sat, Sep 23, 2017 at 02:14:09PM +0300, Manos Pitsidianakis wrote: > BlockDriverState has a bdrv_co_drain() callback but no equivalent for > the end of the drain. The throttle driver (block/throttle.c) needs a way > to mark the end of the drain in order to toggle io_limits_disabled > correctly, t

Re: [Qemu-devel] [Qemu-block] [PATCH v3 2/3] block: rename bdrv_co_drain to bdrv_co_drain_begin

2017-09-25 Thread Stefan Hajnoczi
On Sat, Sep 23, 2017 at 02:14:10PM +0300, Manos Pitsidianakis wrote: > Reviewed-by: Stefan Hajnoczi > Reviewed-by: Fam Zheng > Signed-off-by: Manos Pitsidianakis > --- > include/block/block_int.h | 4 ++-- > block/io.c| 4 ++-- > block/qed.c | 6 +++--- > 3 files c

Re: [Qemu-devel] [PATCH/RFC 2/3] s390x/ais: enable ais when migration is available

2017-09-25 Thread Cornelia Huck
On Fri, 22 Sep 2017 16:27:00 +0200 Halil Pasic wrote: > One thing I would find very helpful is what do we expect to work and not > work for which version. Kind of a matrix. For instance should vfio pci > work for versions prior 2.11. I think in the not so distant past we > changed how SIC works (

Re: [Qemu-devel] [PATCH v1 04/27] s390x: introduce and use S390_MAX_CPUS

2017-09-25 Thread Thomas Huth
On 18.09.2017 17:59, David Hildenbrand wrote: > Will be handy in the next patches. > > Signed-off-by: David Hildenbrand > --- > hw/s390x/s390-virtio-ccw.c | 2 +- > target/s390x/cpu.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/hw/s390x/s390-virtio-ccw.c b

Re: [Qemu-devel] [PATCH/RFC 2/3] s390x/ais: enable ais when migration is available

2017-09-25 Thread Christian Borntraeger
On 09/25/2017 12:07 PM, Cornelia Huck wrote: > On Fri, 22 Sep 2017 16:27:00 +0200 > Halil Pasic wrote: > >> One thing I would find very helpful is what do we expect to work and not >> work for which version. Kind of a matrix. For instance should vfio pci >> work for versions prior 2.11. I think

Re: [Qemu-devel] [PATCH v2] qdev: Mark devices as non-hotpluggable by default

2017-09-25 Thread Marcel Apfelbaum
On 22/09/2017 12:16, Thomas Huth wrote: Historically we've marked all devices as hotpluggable by default. However, most devices are not hotpluggable, and you also need a HotplugHandler to support these devices. So if the user tries to "device_add" or "device_del" such a non-hotpluggable device du

Re: [Qemu-devel] [PATCH v1 09/27] target/s390x: factor out handling of WAIT PSW into handle_wait()

2017-09-25 Thread Thomas Huth
On 18.09.2017 17:59, David Hildenbrand wrote: > This will now also detect crashes under TCG. We can directly use > cpu->env.psw.addr instead of kvm_run, as we do a > cpu_synchronize_state(). > > Signed-off-by: David Hildenbrand > --- > target/s390x/helper.c | 28 ++-- >

[Qemu-devel] [PATCH 0/2] s390/z14: extended TOD-clock support

2017-09-25 Thread Christian Borntraeger
I still have this patch on my queue as the last remaining z14 item. Since I have already rebase it several time, its time for some additional review. Collin L. Walling (2): linux-headers: Update linux headers for extended TOD-Clock s390/kvm: Support for get/set of extended TOD-Clock for gues

[Qemu-devel] [PATCH 1/2] linux-headers: Update linux headers for extended TOD-Clock

2017-09-25 Thread Christian Borntraeger
From: "Collin L. Walling" Conny: to be replaced with 4.14-rc*. Adds KVM_S390_VM_TOD_EXT attribute for the extended TOD-Clock attribute and kvm_s390_vm_tod_clock struct for TOD-Clock data. Signed-off-by: Collin L. Walling --- linux-headers/asm-s390/kvm.h | 6 ++ 1 file changed, 6 insertion

[Qemu-devel] [PATCH 2/2] s390/kvm: Support for get/set of extended TOD-Clock for guest

2017-09-25 Thread Christian Borntraeger
From: "Collin L. Walling" Provides an interface for getting and setting the guest's extended TOD-Clock via a single ioctl to kvm. If the ioctl fails because it is not support by kvm, then we fall back to the old style of retrieving the clock via two ioctls. If kvm fails to set a nonzero epoch in

Re: [Qemu-devel] [PATCH v1 10/27] s390x/kvm: pass ipb directly into handle_sigp()

2017-09-25 Thread Thomas Huth
On 18.09.2017 17:59, David Hildenbrand wrote: > No need to pass kvm_run. > > Signed-off-by: David Hildenbrand > --- > target/s390x/kvm.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c > index 14f864697d..da3f7e9895 100644 >

Re: [Qemu-devel] [PATCH v1 15/27] s390x/kvm: drop two debug prints

2017-09-25 Thread Thomas Huth
On 18.09.2017 18:00, David Hildenbrand wrote: > Preparation for moving it out of kvm.c. > > Signed-off-by: David Hildenbrand > --- > target/s390x/kvm.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c > index 01c4125d21..d759edf1c8 100644 > --- a

Re: [Qemu-devel] [PATCH v6 0/7] KASLR kernel dump support

2017-09-25 Thread Marc-André Lureau
ping On Mon, Sep 11, 2017 at 6:59 PM, Marc-André Lureau wrote: > Recent linux kernels enable KASLR to randomize phys/virt memory > addresses. This series aims to provide enough information in qemu > dumps so that crash utility can work with randomized kernel too (it > hasn't been tested on other

Re: [Qemu-devel] [PATCH] dma/i82374: avoid double creation of i82374 device

2017-09-25 Thread Michael Tokarev
25.09.2017 12:26, Eduardo Otubo wrote: > On Mon, Sep 25, 2017 at 11:11:37AM +0200, Paolo Bonzini wrote: >> On 24/09/2017 23:02, Michael Tokarev wrote: >>> 15.09.2017 12:06, Eduardo Otubo wrote: QEMU fails when used with the following command line: ./ppc64-softmmu/qemu-system-ppc64

Re: [Qemu-devel] [PATCH 4/9] s390x: refactor error handling for SSCH and RSCH

2017-09-25 Thread Halil Pasic
On 09/25/2017 09:31 AM, Dong Jia Shi wrote: > * Cornelia Huck [2017-09-08 11:59:50 +0200]: > >> On Fri, 8 Sep 2017 11:21:57 +0200 >> Halil Pasic wrote: >> >>> On 09/08/2017 05:41 AM, Dong Jia Shi wrote: Let' me summarize here, in case I misunderstand things. Now we have two ways to c

[Qemu-devel] [PATCH v3] spapr: fix the value of SDR1 in kvmppc_put_books_sregs()

2017-09-25 Thread Greg Kurz
When running with KVM PR, if a new HPT is allocated we need to inform KVM about the HPT address and size. This is currently done by hacking the value of SDR1 and pushing it to KVM in several places. Also, migration breaks the guest since it is very unlikely the HPT has the same address in source a

Re: [Qemu-devel] [PATCH v2] docker: add installation to build tests

2017-09-25 Thread Fam Zheng
On Mon, 09/25 11:11, Paolo Bonzini wrote: > On 25/09/2017 05:09, Fam Zheng wrote: > > On Fri, 09/22 17:49, Paolo Bonzini wrote: > >> diff --git a/tests/docker/common.rc b/tests/docker/common.rc > >> index 6865689..1522aab 100755 > >> --- a/tests/docker/common.rc > >> +++ b/tests/docker/common.rc >

Re: [Qemu-devel] [RFC v2 30/32] vhost: Merge neighbouring hugepage regions where appropriate

2017-09-25 Thread Dr. David Alan Gilbert
* Igor Mammedov (imamm...@redhat.com) wrote: > On Thu, 24 Aug 2017 20:27:28 +0100 > "Dr. David Alan Gilbert (git)" wrote: > > > From: "Dr. David Alan Gilbert" > > > > Where two regions are created with a gap such that when aligned > > to hugepage boundaries, the two regions overlap, merge them.

Re: [Qemu-devel] [PATCH] dma/i82374: avoid double creation of i82374 device

2017-09-25 Thread Paolo Bonzini
On 25/09/2017 12:54, Michael Tokarev wrote: >> Yes, that's correct. I can revert this patch with the error >> propagation patch as well, if you guys don't mind. > Hmm. After reading the original discussion I concluded this patch > is okay. I can remove it right now before the series has been > app

[Qemu-devel] [PATCH v2 2/6] migration: check pre_save return in vmstate_save_state

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Check the return value of pre_save state and fail vmstate_save_state if the pre_save failed. Signed-off-by: Dr. David Alan Gilbert --- include/migration/vmstate.h | 4 ++-- migration/trace-events | 1 + migration/vmstate.c | 12 ++-- 3 file

[Qemu-devel] [PATCH v2 3/6] migration: Check field save returns

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Check the return values from vmstate_save_state for fields and also the return values from 'put' for fields that use that. Signed-off-by: Dr. David Alan Gilbert --- migration/vmstate.c | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-) diff -

[Qemu-devel] [PATCH v2 0/6] migration: let pre_save fail

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" At the moment the pre-save method on VMStateDescription returns void which means there's no sane way of a pre_save routine failing. There are quite a few pre_save's that abort or do other nasty things, and it would be better if they could fail cleanly. This patch

[Qemu-devel] [PATCH v2 1/6] migration: pre_save return int

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Modify the pre_save method on VMStateDescription to return an int rather than void so that it potentially can fail. Changed zillions of devices to make them return 0; the only case I've made it return non-0 is hw/intc/s390_flic_kvm.c that already had an error_repor

[Qemu-devel] [PATCH v2 5/6] migration: Route errors up through vmstate_save

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Route the errors from vsmtate_save_state back up through vmstate_save and out to the normal device state path. That's the normal error path done. Signed-off-by: Dr. David Alan Gilbert --- migration/savevm.c | 19 ++- 1 file changed, 14 insertions(

[Qemu-devel] [PATCH v2 4/6] migration: wire vmstate_save_state errors up to vmstate_subsection_save

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Route the errors from vmstate_subsection_save up through vmstate_subsection_save (and back down, all rather recursive). Signed-off-by: Dr. David Alan Gilbert --- migration/vmstate.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff

[Qemu-devel] [PATCH v2 6/6] migration: Route more error paths

2017-09-25 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" vmstate_save is called in a few places, and vmstate_save_state is called in lots of places. Route error returns from the easier cases back up; there are lots of more complex cases where their own error paths need fixing. Signed-off-by: Dr. David Alan Gilbert ---

Re: [Qemu-devel] [RFC 5/6] linux-user: fix 64bit versions of sparc and mips

2017-09-25 Thread Carlo Arenas
On Fri, Sep 22, 2017 at 10:01 AM, Laurent Vivier wrote: > Le 22/09/2017 à 16:02, Carlo Marcelo Arenas Belón a écrit : > > Signed-off-by: Carlo Marcelo Arenas Belón > > --- > > linux-user/mips64/sockbits.h | 1 + > > linux-user/socket.h | 4 ++-- > > linux-user/sparc64/sockbits.h | 1

Re: [Qemu-devel] [PATCH/RFC 2/3] s390x/ais: enable ais when migration is available

2017-09-25 Thread Cornelia Huck
On Mon, 25 Sep 2017 12:12:49 +0200 Christian Borntraeger wrote: > On 09/25/2017 12:07 PM, Cornelia Huck wrote: > > On Fri, 22 Sep 2017 16:27:00 +0200 > > Halil Pasic wrote: > > > >> One thing I would find very helpful is what do we expect to work and not > >> work for which version. Kind of a

Re: [Qemu-devel] [PATCH/RFC 2/3] s390x/ais: enable ais when migration is available

2017-09-25 Thread Christian Borntraeger
On 09/25/2017 01:45 PM, Cornelia Huck wrote: > On Mon, 25 Sep 2017 12:12:49 +0200 > Christian Borntraeger wrote: > >> On 09/25/2017 12:07 PM, Cornelia Huck wrote: >>> On Fri, 22 Sep 2017 16:27:00 +0200 >>> Halil Pasic wrote: >>> One thing I would find very helpful is what do we expect to

Re: [Qemu-devel] [PATCH v2] qdev: Mark devices as non-hotpluggable by default

2017-09-25 Thread Cornelia Huck
On Fri, 22 Sep 2017 11:16:34 +0200 Thomas Huth wrote: > Historically we've marked all devices as hotpluggable by default. However, > most devices are not hotpluggable, and you also need a HotplugHandler to > support these devices. So if the user tries to "device_add" or "device_del" > such a non-

Re: [Qemu-devel] [RFC 6/6] linux-user: update default socket.h

2017-09-25 Thread Carlo Arenas
On Fri, Sep 22, 2017 at 10:04 AM, Laurent Vivier wrote: > And you should move powerpc bits to linux-user/ppc/sockbits. PPC is IMHO a special case, since it is kept together with the generic header in the linux kernel (except for a similar exception to those few values that differ) as you can se

Re: [Qemu-devel] [PATCH v7 5/8] tmp backend: Add new api to read backend TpmInfo

2017-09-25 Thread Valluri, Amarnath
On Fri, 2017-09-22 at 17:35 +0200, Marc-André Lureau wrote: > Hi > > On Fri, Sep 22, 2017 at 2:33 PM, Amarnath Valluri > wrote: > > > > TPM configuration options are backend implementation details and > > shall not be > > part of base TPMBackend object, and these shall not be accessed > > direct

Re: [Qemu-devel] [PATCH V2] add migration capability to bypass the shared memory

2017-09-25 Thread Zhang Haoyu
If hotplug memory during migration, the calculation of migration_dirty_pages maybe incorrect, should fixed as below, -void migration_bitmap_extend(ram_addr_t old, ram_addr_t new) +void migration_bitmap_extend(RAMBlock *block, ram_addr_t old, ram_addr_t new) { /* called in qemu main thread, so

Re: [Qemu-devel] [PULL 1/2] xen-disk: use g_new0 to fix build

2017-09-25 Thread Olaf Hering
On Wed, Sep 20, Stefano Stabellini wrote: > From: Olaf Hering > g_malloc0_n is available since glib-2.24. To allow build with older glib > versions use the generic g_new0, which is already used in many other > places in the code. > Fixes commit 3284fad728 ("xen-disk: add support for multi-page sh

[Qemu-devel] [PATCH 3/5] qemu-iotests: Allow QMP pretty printing in common.qemu

2017-09-25 Thread Kevin Wolf
QMP responses to certain commands can become quite long, which doesn't only make reading them hard, but also means that the maximum line length in patch emails can be exceeded. Allow tests to switch to QMP pretty printing, which results in more, but shorter lines. We also need to make sure to keep

[Qemu-devel] [PATCH 2/5] commit: Support multiple roots above top node

2017-09-25 Thread Kevin Wolf
This changes the commit block job to support operation in a graph where there is more than a single active layer that references the top node. This involves inserting the commit filter node not only on the path between the given active node and the top node, but between the top node and all of its

[Qemu-devel] [PATCH 0/5] commit: Support multiple roots above top node

2017-09-25 Thread Kevin Wolf
This is a step towards making the commit job flexible enough that it can work with any kind of block graph. Currently, it requires that not only the top and base node of the commit operation are specified, but also the active layer of the backing file chain. Of course, the assumption that a single

[Qemu-devel] [PATCH 1/5] block: Introduce BdrvChildRole.update_filename

2017-09-25 Thread Kevin Wolf
There is no good reason for bdrv_drop_intermediate() to know the active layer above the subchain it is operating on - even more so, because the assumption that there is a single active layer above it is not generally true. In order to prepare removal of the active parameter, use a BdrvChildRole ca

[Qemu-devel] [PATCH 5/5] commit: Remove overlay_bs

2017-09-25 Thread Kevin Wolf
We don't need to make any assumptions about the graph layout above the top node of the commit operation any more. Remove the use of bdrv_find_overlay() and related variables from the commit job code. bdrv_drop_intermediate() doesn't use the 'active' parameter any more, so we can just drop it. The

[Qemu-devel] [PATCH 4/5] qemu-iotests: Test commit block job where top has two parents

2017-09-25 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/qemu-iotests/191 | 152 + tests/qemu-iotests/191.out | 827 + tests/qemu-iotests/group | 1 + 3 files changed, 980 insertions(+) create mode 100755 tests/qemu-iotests/191 create mode 100644 tests/qem

Re: [Qemu-devel] [RFC 1/6] linux-user: update hppa sockbits

2017-09-25 Thread Carlo Arenas
On Fri, Sep 22, 2017 at 9:13 AM, Laurent Vivier wrote: > Le 22/09/2017 à 16:02, Carlo Marcelo Arenas Belón a écrit : > > updated to match arch/parisc/include/uapi/asm/socket.h from linux 4.14 > > I think it's not a good idea to change indentation, by adding spaces you > hide the real changes that

Re: [Qemu-devel] [PATCH v1 18/27] s390x/tcg: implement SIGP SENSE RUNNING STATUS

2017-09-25 Thread Thomas Huth
On 18.09.2017 18:00, David Hildenbrand wrote: > Preparation for TCG, for KVM is this is completely handled in the > kernel. > > Signed-off-by: David Hildenbrand > --- > target/s390x/cpu.h | 2 ++ > target/s390x/sigp.c | 25 + > 2 files changed, 27 insertions(+) > > dif

Re: [Qemu-devel] [PATCH v1 18/27] s390x/tcg: implement SIGP SENSE RUNNING STATUS

2017-09-25 Thread David Hildenbrand
On 25.09.2017 14:47, Thomas Huth wrote: > On 18.09.2017 18:00, David Hildenbrand wrote: >> Preparation for TCG, for KVM is this is completely handled in the >> kernel. >> >> Signed-off-by: David Hildenbrand >> --- >> target/s390x/cpu.h | 2 ++ >> target/s390x/sigp.c | 25 +++

Re: [Qemu-devel] [PATCH 2/2] s390/kvm: Support for get/set of extended TOD-Clock for guest

2017-09-25 Thread Cornelia Huck
On Mon, 25 Sep 2017 12:23:02 +0200 Christian Borntraeger wrote: > From: "Collin L. Walling" > > Provides an interface for getting and setting the guest's extended > TOD-Clock via a single ioctl to kvm. If the ioctl fails because it > is not support by kvm, then we fall back to the old style of

Re: [Qemu-devel] [PATCH v1 06/27] s390x/tcg: injection of emergency signals and extarnal calls

2017-09-25 Thread David Hildenbrand
> @@ -248,6 +249,19 @@ static void do_ext_interrupt(CPUS390XState *env) > lowcore->ext_int_code = cpu_to_be16(EXT_CPU_TIMER); > lowcore->cpu_addr = 0; > env->pending_int &= ~INTERRUPT_EXT_CPU_TIMER; > +} else if (env->pending_int & INTERRUPT_EMERGENCY_SIGNAL) { > +

Re: [Qemu-devel] [PATCH v2 1/6] migration: pre_save return int

2017-09-25 Thread Richard Henderson
On 09/25/2017 06:29 AM, Dr. David Alan Gilbert (git) wrote: > Modify the pre_save method on VMStateDescription to return an int > rather than void so that it potentially can fail. What does the int value signify? Why not a bool? r~

Re: [Qemu-devel] ping Re: [PATCH v7 03/16] migration: split common postcopy out of ram postcopy

2017-09-25 Thread Kevin Wolf
Am 20.09.2017 um 13:45 hat Juan Quintela geschrieben: > "Dr. David Alan Gilbert" wrote: > > * Vladimir Sementsov-Ogievskiy (vsement...@virtuozzo.com) wrote: > >> ping for 1-3 > >> Can we merge them? > > > > I see all of them have R-b's; so lets try and put them in the next > > migration merge. > >

Re: [Qemu-devel] [PATCH v2 1/6] migration: pre_save return int

2017-09-25 Thread Dr. David Alan Gilbert
* Richard Henderson (r...@twiddle.net) wrote: > On 09/25/2017 06:29 AM, Dr. David Alan Gilbert (git) wrote: > > Modify the pre_save method on VMStateDescription to return an int > > rather than void so that it potentially can fail. > > What does the int value signify? 0 is success, anything else

Re: [Qemu-devel] [PATCH v2 1/6] migration: pre_save return int

2017-09-25 Thread Richard Henderson
On 09/25/2017 06:25 AM, Dr. David Alan Gilbert wrote: >> Why not a bool? > > Consistency with pre_load, post_load, put and get methods > that are already int. Fair enough, thanks. r~

Re: [Qemu-devel] [PATCH v2] qdev: Mark devices as non-hotpluggable by default

2017-09-25 Thread Eduardo Habkost
On Mon, Sep 25, 2017 at 01:53:16PM +0200, Cornelia Huck wrote: > On Fri, 22 Sep 2017 11:16:34 +0200 > Thomas Huth wrote: > > > Historically we've marked all devices as hotpluggable by default. However, > > most devices are not hotpluggable, and you also need a HotplugHandler to > > support these

[Qemu-devel] [PULL 0/4] NBD patches for 2017-09-25

2017-09-25 Thread Eric Blake
The following changes since commit 460b6c8e581aa06b86f59eebd9e52edfe7adf417: Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging (2017-09-23 12:55:40 +0100) are available in the git repository at: git://repo.or.cz/qemu/ericb.git tags/pull-nbd-2017-09-25 for you to

Re: [Qemu-devel] [PATCH] spapr: move registration of "host" CPU core type to machine code

2017-09-25 Thread Igor Mammedov
On Mon, 25 Sep 2017 11:47:33 +0200 Greg Kurz wrote: > The CPU core abstraction belongs to the machine code. This also gets > rid of some code duplication. > > Signed-off-by: Greg Kurz > --- > > hw/ppc/spapr_cpu_core.h is also included elsewhere in target/ppc/kvm.c > but this is already handled

[Qemu-devel] [PULL 2/4] block/nbd-client: refactor nbd_co_receive_reply

2017-09-25 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy "NBDReply *reply" parameter of nbd_co_receive_reply is used only to pass return value for nbd_co_request (reply.error). Remove it and use function return value instead. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-Id: <201709201

[Qemu-devel] [PULL 1/4] nbd-client: Use correct macro parenthesization

2017-09-25 Thread Eric Blake
If 'bs' is a complex expression, we were only casting the front half rather than the full expression. Luckily, none of the callers were passing bad arguments, but it's better to be robust up front. Signed-off-by: Eric Blake Message-Id: <20170918214649.17550-1-ebl...@redhat.com> Reviewed-by: Phil

[Qemu-devel] [PULL 4/4] block/nbd-client: nbd_co_send_request: fix return code

2017-09-25 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy It's incorrect to return success rc >= 0 if we skip qio_channel_writev_all() call due to s->quit. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake Message-Id: <20170920124507.18841-4-vsement...@virtuozzo.com> Signed-off-by: Eric Blake ---

Re: [Qemu-devel] [PATCH v9 05/20] dirty-bitmap: Avoid size query failure during truncate

2017-09-25 Thread Eric Blake
On 09/23/2017 07:04 AM, Vladimir Sementsov-Ogievskiy wrote: > 19.09.2017 23:18, Eric Blake wrote: >> We've previously fixed several places where we failed to account >> for possible errors from bdrv_nb_sectors().  Fix another one by >> making bdrv_dirty_bitmap_truncate() take the new size from the

[Qemu-devel] [PULL 3/4] block/nbd-client: simplify check in nbd_co_receive_reply

2017-09-25 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy If we are woken up from while() loop in nbd_read_reply_entry handles must be equal. If we are woken up from nbd_recv_coroutines_wake_all s->quit must be true, so we do not need checking handles equality. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by:

  1   2   3   4   >