[Qemu-devel] [PULL 18/21] tests/docker: update our Travis image

2019-01-14 Thread Alex Bennée
We are now using Xenial based images on Travis so we should make the same one available as our qemu:travis docker image. Signed-off-by: Alex Bennée diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfiles/travis.docker index 46cf367488..e72dc85ca7 100644 --- a/tests/docker

Re: [Qemu-devel] Remaining CI failures

2019-01-14 Thread Daniel P . Berrangé
On Mon, Jan 14, 2019 at 10:02:06AM -0500, Emilio G. Cota wrote: > On Fri, Jan 11, 2019 at 19:10:07 +, Alex Bennée wrote: > > So trying to narrow down the remaining failures in the CI system. There > > is one with a patch in flight (use g_usleep instead of sleep) but there > > remains two failur

Re: [Qemu-devel] [PATCH v2] configure: Only build the s390-ccw bios if the compiler supports -march=z900

2019-01-14 Thread Cornelia Huck
On Mon, 14 Jan 2019 13:52:26 +0100 Thomas Huth wrote: > We want to build our s390-ccw bios with -march=z900 so that it also > works with the oldest s390x CPU that we support with TCG. However, > Clang on s390x does not support -march=z900 anymore, so we can not > use this compiler to build the s3

Re: [Qemu-devel] [PATCH v2] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Daniel P . Berrangé
On Mon, Jan 14, 2019 at 03:49:48PM +0100, Thomas Huth wrote: > The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad > "inline" prototype definitions which GCC refuses to compile in its > gnu99 mode: > > In file included from block/iscsi.c:52:0: > /usr/include/iscsi/scsi-lowlevel.h:810:

[Qemu-devel] [PULL 16/21] docker: Use a stable snapshot for Debian Sid

2019-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé The Debian Sid repository is not garanteed to be stable, as his 'unstable' name suggest :) To allow quick testing, packages are pushed various time a day, which my be annoying when trying to use it for stable development (which is not recommended, but Sid provides edg

[Qemu-devel] [PULL 21/21] Revert "tests: Disable qht-bench parallel test when using gprof"

2019-01-14 Thread Alex Bennée
This reverts commit ce2eefd7c21697fee87a0686353de881081d22c6. The underlying cause was fixed with eb4f8e100f. Signed-off-by: Alex Bennée diff --git a/configure b/configure index 4ea3f14883..f59d484f7a 100755 --- a/configure +++ b/configure @@ -7487,7 +7487,6 @@ alpha) esac if test "$gprof" =

[Qemu-devel] [PULL 17/21] travis: bump to Xenial baseline

2019-01-14 Thread Alex Bennée
Travis is slowly catching up. Move to Xenial based images for our current builds. These are now all proper VMs. Signed-off-by: Alex Bennée diff --git a/.travis.yml b/.travis.yml index 79da3a495a..93fd0164a0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,8 @@ - -dist: trusty +# The current

[Qemu-devel] [Bug 1811499] Re: qemu/net/colo-compare.c:288: possible pointless code duplication ?

2019-01-14 Thread Zhang Chen
Have fixed in this patch. https://lists.nongnu.org/archive/html/qemu-devel/2019-01/msg02859.html Thanks Zhang Chen -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1811499 Title: qemu/net/colo-compar

[Qemu-devel] [PULL 13/21] travis: stop using container based envs

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The Travis container based envs are deprecated: https://docs.travis-ci.com/user/reference/trusty/ "Container-based infrastructure is currently being deprecated. Please remove any sudo: false keys in your .travis.yml file to use the default fully-virtualized Li

[Qemu-devel] [PULL 11/21] travis: use homebrew addon for MacOSX

2019-01-14 Thread Alex Bennée
Rather than poking homebrew manually we can specify the packages needed via the homebrew addon. These are only installed on MacOS based builds. Signed-off-by: Alex Bennée Reviewed-by: Daniel P. Berrangé diff --git a/.travis.yml b/.travis.yml index fa70429459..2ef7997d25 100644 --- a/.travis.yml

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Philippe Mathieu-Daudé
On 1/14/19 3:36 PM, Thomas Huth wrote: > On 2019-01-14 15:31, Philippe Mathieu-Daudé wrote: >> On 1/14/19 2:46 PM, Thomas Huth wrote: >>> The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad >>> "inline" prototype definitions which GCC refuses to compile in its >>> gnu99 mode: >>> >>> I

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Daniel P . Berrangé
On Mon, Jan 14, 2019 at 03:53:48PM +0100, Thomas Huth wrote: > On 2019-01-14 15:50, Eric Blake wrote: > > On 1/14/19 8:31 AM, Daniel P. Berrangé wrote: > > > >>> > >>> Can we suppress the warnings with #pragma instead ? > >>> That would avoid compiling the .o file with different > >>> C semantics.

[Qemu-devel] [PULL 10/21] travis: don't clone git submodules upfront

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The configure script & Makefile are already capable of figuring out which git submodules are required for a given build platform, and cloning them at the right time. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée diff --git a/.travis.yml b/.travis.yml in

[Qemu-devel] [PULL 14/21] travis: run tests in verbose mode

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé Travis sometimes fails a build because it produces no console output for over 10 minutes. If this is due to a genuine hang, it would be useful to have used verbose test output to see where it failed. If this is just due to tests being very slow, having verbose output migh

Re: [Qemu-devel] [PATCH] hw/rdma: Verify that ptr is not NULL before freeing

2019-01-14 Thread Philippe Mathieu-Daudé
Hi Yuval, On 1/14/19 3:10 PM, Yuval Shaia wrote: > Make sure objects are not NULL before calling to non-nulll-safe null > destructors. > > Signed-off-by: Yuval Shaia > --- > hw/rdma/rdma_backend.c | 6 -- > hw/rdma/rdma_rm.c | 7 ++- > 2 files changed, 10 insertions(+), 3 deletio

Re: [Qemu-devel] Remaining CI failures

2019-01-14 Thread Emilio G. Cota
On Fri, Jan 11, 2019 at 19:10:07 +, Alex Bennée wrote: > So trying to narrow down the remaining failures in the CI system. There > is one with a patch in flight (use g_usleep instead of sleep) but there > remains two failure modes, both erratic. > > tests/qht-par: > > I can trigger this on my

[Qemu-devel] [PULL 07/21] travis: add whitespace between each major section & matrix entry

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé Improve the readability of the travis config by adding two blank lines between each major section and matrix entry. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée diff --git a/.travis.yml b/.travis.yml index d472fd650b..bb43792627 100644 --- a/.travis.ym

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Eric Blake
On 1/14/19 8:53 AM, Thomas Huth wrote: > On 2019-01-14 15:50, Eric Blake wrote: >> On 1/14/19 8:31 AM, Daniel P. Berrangé wrote: >> Can we suppress the warnings with #pragma instead ? That would avoid compiling the .o file with different C semantics. >>> >>> IIUC this is a built

Re: [Qemu-devel] [PATCH v2 11/13] spapr_irq: Allow synchronization of a single irq state to KVM

2019-01-14 Thread Greg Kurz
On Mon, 14 Jan 2019 09:19:50 +0100 Cédric Le Goater wrote: > On 1/11/19 10:04 PM, Greg Kurz wrote: > > When using the in-kernel interrupt controller, the state of all irqs is > > synchronized to KVM at machine reset time. In the case of PHB hotplug, we > > will need to synchronize LSIs manually.

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Eric Blake
On 1/14/19 8:31 AM, Daniel P. Berrangé wrote: >> >> Can we suppress the warnings with #pragma instead ? >> That would avoid compiling the .o file with different >> C semantics. > > IIUC this is a built-in warning you can't disable, except by changing > the compilation mode to have gnu89 inline se

[Qemu-devel] [PULL 15/21] travis: remove matrix settings that duplicate global settings

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The global defaults request "trusty" and "gcc", so matrix entries do not need to repeat this. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/.travis.yml b/.travis.yml index 39dbda7a0b..79da3a495a 100644 -

[Qemu-devel] [PULL 19/21] tests/docker: remove SID_AGE test hack

2019-01-14 Thread Alex Bennée
Now we are using "named" snapshots of debian-sid we can rely on the existing checksum mechanism for detecting changes. Signed-off-by: Alex Bennée diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 9467e9d088..7032c68895 100644 --- a/tests/docker/Makefile.include +++

[Qemu-devel] [PULL 09/21] travis: standardize the syntax used for env variables

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé Matrix entries are defining env variables using two different syntax styles: - env: FOO=bar WIZZ=bang and - env: - FOO=bar - WIZZ=bang Switch everything to use the latter style as the more normal indentation approach. Signed-off-by: Dani

[Qemu-devel] [PULL 00/21] misc testing fixes for Travis and docker

2019-01-14 Thread Alex Bennée
The following changes since commit 7260438b7056469610ee166f7abe9ff8a26b8b16: Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-3.2-part2' into staging (2019-01-14 11:41:43 +) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-testing-n

Re: [Qemu-devel] [PATCH v5 05/11] iotests: allow resume_drive by node name

2019-01-14 Thread Max Reitz
On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: > After node graph changes, we may not be able to resume_drive by device > name (backing files are not recursively searched). So, lets allow to > resume by node-name. Set constant name for breakpoints, to avoid > introducing extra parameters.

[Qemu-devel] [PULL 12/21] travis: stop redefining the script commands

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé One of the matrix entries redefines the script command in order to add the ${MAKEFLAGS} variable. Ideally ${MAKEFLAGS} would be referenced by the definition of the ${TEST_CMD} env variable, but this isn't possible in travis. ${MAKEFLAGS} exists to eliminate duplication of

[Qemu-devel] [PULL 04/21] tests: update Fedora dockerfile to use Fedora 29

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé Fedora 29 is the current newest release, so switch to using that from the current Fedora 28. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée diff --git a/tests/docker/dockerfiles/fedora.docker b/tests/docker/dockerfiles/fedora.docker index 1d0e3dc4ec..69

[Qemu-devel] [PULL 08/21] travis: define all the build matrix entries in one place

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The current build matrix is constructed from entries listed under the environment variable config section, as well as the general purpose build matrix section. Move everything under the general purpose section so it is clear at a glance what is in the matrix. Signed-off-

[Qemu-devel] [PULL 1/5] i386/kvm: expose HV_CPUID_ENLIGHTMENT_INFO.EAX and HV_CPUID_NESTED_FEATURES.EAX as feature words

2019-01-14 Thread Eduardo Habkost
From: Vitaly Kuznetsov It was found that QMP users of QEMU (e.g. libvirt) may need HV_CPUID_ENLIGHTMENT_INFO.EAX/HV_CPUID_NESTED_FEATURES.EAX information. In particular, 'hv_tlbflush' and 'hv_evmcs' enlightenments are only exposed in HV_CPUID_ENLIGHTMENT_INFO.EAX. HV_CPUID_NESTED_FEATURES.EAX is

[Qemu-devel] [PULL 02/21] tests: run ldconfig after installing extra software

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The docker file builds and installs software into /usr/local but does not run ldconfig. As a result QEMU links to libvirglrenderer.so, but then crashes in "make check" unable to find the library. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Reviewed-by:

[Qemu-devel] [PULL 20/21] tests: use g_usleep instead of rem = sleep(time)

2019-01-14 Thread Alex Bennée
Relying on sleep to always return having slept isn't safe as a signal may have occurred. If signals are constantly incoming the program will never reach its termination condition. This is believed to be the mechanism causing time outs for qht-test in Travis. The glib g_usleep() deals with all of t

[Qemu-devel] [PULL 06/21] tests: use in-place sed magic for enabling deb-src in travis image

2019-01-14 Thread Alex Bennée
This avoids potential problems with duplicates. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/docker/dockerfiles/travis.docker b/tests/docker/dockerfiles/travis.docker index 03ebfb0ef2..46cf367488 100644 --- a/tests/docker/dockerfiles/travis.docker +++ b/tes

[Qemu-devel] [PULL 4/5] x86: host-phys-bits-limit option

2019-01-14 Thread Eduardo Habkost
Some downstream distributions of QEMU set host-phys-bits=on by default. This worked very well for most use cases, because phys-bits really didn't have huge consequences. The only difference was on the CPUID data seen by guests, and on the handling of reserved bits. This changed in KVM commit 855f

[Qemu-devel] [PULL 01/21] docker: Use stable git tag for virglrenderer

2019-01-14 Thread Alex Bennée
From: Philippe Mathieu-Daudé Use a stable tag instead of some random commit from mainstream development, to avoid unexpected build failures. This fixes: CC virglrenderer.lo virglrenderer.c: In function 'virgl_has_gl_colorspace': virglrenderer.c:208:11: error: implicit declaration

[Qemu-devel] [PULL 05/21] tests: update Fedora i386 cross image to Fedora 29

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé Using the "latest" tag is not a good idea because this changes what release it points to every 6 months. Together with caching of docker builds this can cause confusion where CI has cached & built with Fedora N, while a developer tries to reproduce a CI problem with Fedor

[Qemu-devel] [PULL 03/21] tests: remove obsolete 'debian' dockerfile

2019-01-14 Thread Alex Bennée
From: Daniel P. Berrangé The 'debian' dockerfile was deprecated in favour of versioned dockerfiles in July 2017. That is enough time for developers to be warned about the rename. Signed-off-by: Daniel P. Berrangé Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/tes

[Qemu-devel] [PULL 3/5] target/i386: Disable MPX support on named CPU models

2019-01-14 Thread Eduardo Habkost
From: Paolo Bonzini MPX support is being phased out by Intel; GCC has dropped it, Linux is also going to do that. Even though KVM will have special code to support MPX after the kernel proper stops enabling it in XCR0, we probably also want to deprecate that in a few years. As a start, do not e

Re: [Qemu-devel] [PULL 0/2] Work around test-qht-par + gprof issues

2019-01-14 Thread Alex Bennée
Peter Maydell writes: > On Fri, 11 Jan 2019 at 18:25, Eduardo Habkost wrote: >> >> The following changes since commit e53f7796fbe71a5c7c24ffebf04b4aa9a759da36: >> >> Merge remote-tracking branch >> 'remotes/ehabkost/tags/machine-next-pull-request' into staging (2019-01-11 >> 13:35:48 +

Re: [Qemu-devel] [PATCH v5 03/11] block: improve should_update_child

2019-01-14 Thread Max Reitz
On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: > As it already said in the comment, we don't want to create loops in > parent->child relations. So, when we try to append @to to @c, we should > check that @c is not in @to children subtree, and we should check it > recursively, not only the f

[Qemu-devel] [RFC PATCH] gcov: move gmon.h include

2019-01-14 Thread Alex Bennée
This got missed when preexit_cleanup got moved into it's own file and is apparently can get included as a side-effect so is only noticeable on some systems. Signed-off-by: Alex Bennée --- linux-user/exit.c| 3 +++ linux-user/syscall.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-)

Re: [Qemu-devel] [PATCH v16 5/6] acpi: add ACPI memory clear interface

2019-01-14 Thread Michael S. Tsirkin
On Mon, Jan 14, 2019 at 02:23:16PM +0400, Marc-André Lureau wrote: > Hi > > On Mon, Jan 14, 2019 at 2:17 PM Igor Mammedov wrote: > > > > On Wed, 9 Jan 2019 23:31:14 +0400 > > Marc-André Lureau wrote: > > > > > The interface is described in the "TCG Platform Reset Attack > > > Mitigation Specifi

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Philippe Mathieu-Daudé
On 1/14/19 2:46 PM, Thomas Huth wrote: > The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad > "inline" prototype definitions which GCC refuses to compile in its > gnu99 mode: > > In file included from block/iscsi.c:52:0: > /usr/include/iscsi/scsi-lowlevel.h:810:13: error: inline func

Re: [Qemu-devel] [PATCH v5 01/11] block/backup: simplify backup_incremental_init_copy_bitmap

2019-01-14 Thread Vladimir Sementsov-Ogievskiy
14.01.2019 17:13, Max Reitz wrote: > On 14.01.19 15:01, Vladimir Sementsov-Ogievskiy wrote: >> 14.01.2019 16:10, Max Reitz wrote: >>> On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: Simplify backup_incremental_init_copy_bitmap using the function bdrv_dirty_bitmap_next_dirty_area. >

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Thomas Huth
On 2019-01-14 15:50, Eric Blake wrote: > On 1/14/19 8:31 AM, Daniel P. Berrangé wrote: > >>> >>> Can we suppress the warnings with #pragma instead ? >>> That would avoid compiling the .o file with different >>> C semantics. >> >> IIUC this is a built-in warning you can't disable, except by changin

[Qemu-devel] [PATCH v2 1/6] block: Acquire the AioContext in virtio_blk_device_realize()

2019-01-14 Thread Alberto Garcia
This fixes a crash when adding a virtio-blk device with a drive that is using an iothread. Test case included. Signed-off-by: Alberto Garcia --- hw/block/virtio-blk.c | 22 - tests/qemu-iotests/236 | 78 ++ tests/qemu-iotests/236.o

Re: [Qemu-devel] [PATCH v2 1/2] throttle-groups: fix restart coroutine iothread race

2019-01-14 Thread Alberto Garcia
On Mon 14 Jan 2019 02:32:56 PM CET, Stefan Hajnoczi wrote: > The following QMP command leads to a crash when iothreads are used: > > { 'execute': 'device_del', 'arguments': {'id': 'data'} } > > The backtrace involves the queue restart coroutine where > tgm->throttle_state is a NULL pointer becaus

[Qemu-devel] [PATCH v2] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Thomas Huth
The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad "inline" prototype definitions which GCC refuses to compile in its gnu99 mode: In file included from block/iscsi.c:52:0: /usr/include/iscsi/scsi-lowlevel.h:810:13: error: inline function ‘scsi_set_uint16’ declared but never defined [

[Qemu-devel] [PATCH v2 4/6] block: Acquire the AioContext in nvme_realize()

2019-01-14 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- hw/block/nvme.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/block/nvme.c b/hw/block/nvme.c index 7c8c63e8f5..72e94aff86 100644 --- a/hw/block/nvme.c +++ b/hw/block/nvme.c @@ -1203,6 +1203,7 @@ static void nvme_realize(PCI

[Qemu-devel] [PULL 2/5] target-i386: Reenable RDTSCP support on Opteron_G[345] CPU models CPU models

2019-01-14 Thread Eduardo Habkost
From: Borislav Petkov The missing functionality was added ~3 years ago with the Linux commit 46896c73c1a4 ("KVM: svm: add support for RDTSCP") so reenable RDTSCP support on those CPU models. Opteron_G2 - being family 15, model 6, doesn't have RDTSCP support (the real hardware doesn't have it

[Qemu-devel] [PULL 0/5] x86 queue, 2019-01-14

2019-01-14 Thread Eduardo Habkost
The following changes since commit 7260438b7056469610ee166f7abe9ff8a26b8b16: Merge remote-tracking branch 'remotes/palmer/tags/riscv-for-master-3.2-part2' into staging (2019-01-14 11:41:43 +) are available in the Git repository at: git://github.com/ehabkost/qemu.git tags/x86-next-pull-r

Re: [Qemu-devel] [PATCH] throttle-groups: fix restart coroutine iothread race

2019-01-14 Thread Alberto Garcia
On Mon 14 Jan 2019 02:35:53 PM CET, Stefan Hajnoczi wrote: > On Fri, Jan 11, 2019 at 03:14:08PM +0100, Alberto Garcia wrote: >> On Fri 11 Jan 2019 02:24:16 PM CET, Kevin Wolf wrote: >> >> >> The following QMP command leads to a crash when iothreads are used: >> >> >> >> >> >> { 'execute': 'device

[Qemu-devel] [PATCH v2 5/6] block: Acquire the AioContext in ide_dev_initfn()

2019-01-14 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- hw/ide/qdev.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index 573b022e1e..f355f2a352 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -160,6 +160,7 @@ static void ide_dev_initfn(IDEDevice

[Qemu-devel] [PULL 5/5] i386/kvm: add a comment explaining why .feat_names are commented out for Hyper-V feature bits

2019-01-14 Thread Eduardo Habkost
From: Vitaly Kuznetsov Hyper-V .feat_names are, unlike hardware features, commented out and it is not obvious why we do that. Document the current status quo. Signed-off-by: Vitaly Kuznetsov Message-Id: <20181221141604.16935-1-vkuzn...@redhat.com> Signed-off-by: Eduardo Habkost --- target/i38

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Thomas Huth
On 2019-01-14 15:31, Daniel P. Berrangé wrote: > On Mon, Jan 14, 2019 at 01:52:01PM +, Peter Maydell wrote: >> On Mon, 14 Jan 2019 at 13:47, Thomas Huth wrote: >>> >>> The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad >>> "inline" prototype definitions which GCC refuses to compi

Re: [Qemu-devel] [PATCH] i386/kvm: expose HV_CPUID_ENLIGHTMENT_INFO.EAX and HV_CPUID_NESTED_FEATURES.EAX as feature words

2019-01-14 Thread Eduardo Habkost
On Mon, Jan 14, 2019 at 11:54:30AM +0100, Vitaly Kuznetsov wrote: > Vitaly Kuznetsov writes: > > > Eduardo Habkost writes: > > > >> On Wed, Dec 19, 2018 at 06:25:06PM +0100, Vitaly Kuznetsov wrote: > >>> Eduardo Habkost writes: > >>> > >>> > On Mon, Dec 03, 2018 at 03:17:06PM +0100, Vitaly Kuz

Re: [Qemu-devel] [PATCH v5 01/11] block/backup: simplify backup_incremental_init_copy_bitmap

2019-01-14 Thread Max Reitz
On 14.01.19 15:01, Vladimir Sementsov-Ogievskiy wrote: > 14.01.2019 16:10, Max Reitz wrote: >> On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: >>> Simplify backup_incremental_init_copy_bitmap using the function >>> bdrv_dirty_bitmap_next_dirty_area. >>> >>> Note: move to job->len instead of

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Thomas Huth
On 2019-01-14 15:31, Philippe Mathieu-Daudé wrote: > On 1/14/19 2:46 PM, Thomas Huth wrote: >> The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad >> "inline" prototype definitions which GCC refuses to compile in its >> gnu99 mode: >> >> In file included from block/iscsi.c:52:0: >> /us

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Daniel P . Berrangé
On Mon, Jan 14, 2019 at 01:52:01PM +, Peter Maydell wrote: > On Mon, 14 Jan 2019 at 13:47, Thomas Huth wrote: > > > > The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad > > "inline" prototype definitions which GCC refuses to compile in its > > gnu99 mode: > > > > In file included

[Qemu-devel] [PATCH v2 6/6] block: Acquire the AioContext in usb_msd_storage_realize()

2019-01-14 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- hw/usb/dev-storage.c | 5 + 1 file changed, 5 insertions(+) diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c index cd5551d94f..fa6e552f0f 100644 --- a/hw/usb/dev-storage.c +++ b/hw/usb/dev-storage.c @@ -593,13 +593,18 @@ static void usb_msd_storage_r

[Qemu-devel] [PATCH] net/colo-compare.c: Remove duplicated code

2019-01-14 Thread Zhang Chen
From: Zhang Chen Fix duplicated code: https://bugs.launchpad.net/qemu/+bug/1811499 Signed-off-by: Zhang Chen --- net/colo-compare.c | 8 1 file changed, 8 deletions(-) diff --git a/net/colo-compare.c b/net/colo-compare.c index 9156ab3349..fa3fd0632d 100644 --- a/net/colo-compare.c ++

Re: [Qemu-devel] [PATCH v5 04/11] iotests: handle -f argument correctly for qemu_io_silent

2019-01-14 Thread Max Reitz
On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: > Correctly rewrite default argument. After the patch, the function can > be used for other (not only default test-chosen) image format. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > tests/qemu-iotests/iotests.py | 7 ++- > 1 f

Re: [Qemu-devel] [PATCH] net/colo-compare.c: Remove duplicated code

2019-01-14 Thread Thomas Huth
On 2019-01-14 15:05, Zhang Chen wrote: > From: Zhang Chen > > Fix duplicated code: > https://bugs.launchpad.net/qemu/+bug/1811499 > > Signed-off-by: Zhang Chen > --- > net/colo-compare.c | 8 > 1 file changed, 8 deletions(-) > > diff --git a/net/colo-compare.c b/net/colo-compare.c >

Re: [Qemu-devel] [RFC PATCH] tests: use g_usleep instead of rem = sleep(time)

2019-01-14 Thread Emilio G. Cota
On Mon, Jan 14, 2019 at 10:46:41 +, Alex Bennée wrote: > Relying on sleep to always return having slept isn't safe as a signal > may have occurred. If signals are constantly incoming the program will > never reach it's termination condition. This is believed to be the > mechanism causing time o

[Qemu-devel] [PULL 21/25] Remove broken Xen PV domain builder

2019-01-14 Thread Anthony PERARD
It is broken since Xen 4.9 [1] and it will not build in Xen 4.12. Also, it is not built by default since QEMU 2.6. [1] https://lists.xenproject.org/archives/html/xen-devel/2018-09/msg00313.html Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- configure | 17 --

[Qemu-devel] [PATCH v2 0/6] Acquire the AioContext during _realize()

2019-01-14 Thread Alberto Garcia
This series acquires the AioContext in the _realize() functions of several devices before making use of their block backends. This fixes at least a couple of crashes (in virtio-blk and scsi). The other devices don't currently support iothreads so there's no crashes. Berto v2: - Patch 1: include a

[Qemu-devel] [PATCH v2 2/6] block: Acquire the AioContext in scsi_*_realize()

2019-01-14 Thread Alberto Garcia
This fixes a crash when adding a virtio-scsi device with a drive that is using an iothread. Test case included. Signed-off-by: Alberto Garcia --- hw/scsi/scsi-disk.c| 23 --- tests/qemu-iotests/236 | 43 +++ tests/qemu-iotes

[Qemu-devel] [PATCH] hw/rdma: Verify that ptr is not NULL before freeing

2019-01-14 Thread Yuval Shaia
Make sure objects are not NULL before calling to non-nulll-safe destructors. Signed-off-by: Yuval Shaia --- hw/rdma/rdma_backend.c | 6 -- hw/rdma/rdma_rm.c | 7 ++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/hw/rdma/rdma_backend.c b/hw/rdma/rdma_backend.c index

[Qemu-devel] [PULL 18/25] xen: automatically create XenBlockDevice-s

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This patch adds create and destroy function for XenBlockDevice-s so that they can be created automatically when the Xen toolstack instantiates a new PV backend via xenstore. When the XenBlockDevice is created this way it is also necessary to create a 'drive' which matches the c

[Qemu-devel] [PATCH v2 3/6] block: Acquire the AioContext in floppy_drive_realize()

2019-01-14 Thread Alberto Garcia
Signed-off-by: Alberto Garcia --- hw/block/fdc.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/hw/block/fdc.c b/hw/block/fdc.c index 6f19f127a5..d9bc80de83 100644 --- a/hw/block/fdc.c +++ b/hw/block/fdc.c @@ -512,6 +512,7 @@ static void floppy_drive_realize(

Re: [Qemu-devel] [PATCH v5 02/11] block/backup: move to copy_bitmap with granularity

2019-01-14 Thread Max Reitz
On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: > We are going to share this bitmap between backup and backup-top filter > driver, so let's share something more meaningful. It also simplifies > some calculations. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > block/backup.c | 48

Re: [Qemu-devel] [PATCH v2 3/3] ui/console: Remove PixelFormat from qemu/typedefs.h

2019-01-14 Thread Gerd Hoffmann
On Mon, Jan 14, 2019 at 02:08:29PM +0100, Philippe Mathieu-Daudé wrote: > Header files requiring PixelFormat already include "ui/qemu-pixman.h". > > To clean "qemu/typedefs.h", move the declaration to "ui/qemu-pixman.h" > (removing the forward declaration). Acked-by: Gerd Hoffmann > > Suggeste

[Qemu-devel] [PULL 17/25] xen: add a mechanism to automatically create XenDevice-s...

2019-01-14 Thread Anthony PERARD
From: Paul Durrant ...that maintains compatibility with existing Xen toolstacks. Xen toolstacks instantiate PV backends by simply writing information into xenstore and expecting a backend implementation to be watching for this. This patch adds a new 'xen-backend' module to allow individual XenD

Re: [Qemu-devel] [PATCH v2 1/3] hw/nvram/fw_cfg: Remove various typedefs from "qemu/typedefs.h"

2019-01-14 Thread Laszlo Ersek
Hi Phil, On 01/14/19 14:08, Philippe Mathieu-Daudé wrote: > There are only three include files requiring these typedefs, let them > include "hw/nvram/fw_cfg.h" directly to simplify "qemu/typedefs.h". > > To clean "qemu/typedefs.h", move the declarations to "hw/nvram/fw_cfg.h". > Reorder two functi

Re: [Qemu-devel] [PATCH v2 2/3] ui/console: Remove MouseTransformInfo from qemu/typedefs.h

2019-01-14 Thread Gerd Hoffmann
On Mon, Jan 14, 2019 at 02:08:28PM +0100, Philippe Mathieu-Daudé wrote: > Header files requiring MouseTransformInfo already include "ui/console.h". > > To clean "qemu/typedefs.h", move the declaration to "ui/console.h" > (removing the forward declaration). Acked-by: Gerd Hoffmann > > Signed-of

[Qemu-devel] [PULL 23/25] xen-block: improve batching behaviour

2019-01-14 Thread Anthony PERARD
From: Tim Smith When I/O consists of many small requests, performance is improved by batching them together in a single io_submit() call. When there are relatively few requests, the extra overhead is not worth it. This introduces a check to start batching I/O requests via blk_io_plug()/ blk_io_un

Re: [Qemu-devel] [PATCH 17/17] tests/tcg/aarch64: Add mte smoke tests

2019-01-14 Thread Alex Bennée
Richard Henderson writes: > ??? Requires a quite recent aarch64 assembler. Use .inst instead? How recent? Given buster is nearing release we could start using it as a basis for the ARM cross compiler images. That is shipping gcc 8.2.0 as of now. > > Signed-off-by: Richard Henderson > --- >

[Qemu-devel] [PULL 22/25] xen: Replace few mentions of xend by libxl

2019-01-14 Thread Anthony PERARD
xend have been replaced by libxenlight (libxl) for many Xen releases now. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xenpv/xen_machine_pv.c | 2 +- include/hw/xen/xen.h | 2 +- qemu-options.hx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff

Re: [Qemu-devel] [PATCH v5 01/11] block/backup: simplify backup_incremental_init_copy_bitmap

2019-01-14 Thread Vladimir Sementsov-Ogievskiy
14.01.2019 16:10, Max Reitz wrote: > On 29.12.18 13:20, Vladimir Sementsov-Ogievskiy wrote: >> Simplify backup_incremental_init_copy_bitmap using the function >> bdrv_dirty_bitmap_next_dirty_area. >> >> Note: move to job->len instead of bitmap size: it should not matter but >> less code. >> >> Sign

[Qemu-devel] [PULL 13/25] xen: remove 'XenBlkDev' and 'blkdev' names from dataplane/xen-block

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This is a purely cosmetic patch that substitutes the old 'struct XenBlkDev' name with 'XenBlockDataPlane' and 'blkdev' field/variable names with 'dataplane', and then does necessary fix-up to adhere to coding style. No functional change. Signed-off-by: Paul Durrant Acked-by:

Re: [Qemu-devel] [PATCH] s390x/vfio-ap: Implement hot plug/unplug of vfio-ap device

2019-01-14 Thread Cornelia Huck
On Thu, 10 Jan 2019 11:22:48 -0500 Tony Krowiak wrote: > >>> Can you extend this patch description a little bit, including what we > >>> discussed here? > >> > >> Maybe a short comment that explains why qdev_simple_device_unplug_cb() > >> is appropriate as well (i.e. hits that closing the mdev'

[Qemu-devel] [PULL 12/25] xen: add header and build dataplane/xen-block.c

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This patch adds the transformations necessary to get dataplane/xen-block.c to build against the new XenBus/XenDevice framework. MAINTAINERS is also updated due to the introduction of dataplane/xen-block.h. NOTE: Existing data structure names are retained for the moment. These

[Qemu-devel] [PATCH v2 1/2] throttle-groups: fix restart coroutine iothread race

2019-01-14 Thread Stefan Hajnoczi
The following QMP command leads to a crash when iothreads are used: { 'execute': 'device_del', 'arguments': {'id': 'data'} } The backtrace involves the queue restart coroutine where tgm->throttle_state is a NULL pointer because throttle_group_unregister_tgm() has already been called: (gdb) b

[Qemu-devel] [PULL 14/25] xen: remove 'ioreq' struct/varable/field names from dataplane/xen-block.c

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This is a purely cosmetic patch that purges the name 'ioreq' from struct, variable and field names. (This name has been problematic for a long time as 'ioreq' is the name used for generic I/O requests coming from Xen). The patch replaces 'struct ioreq' with a new 'XenBlockReque

[Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Thomas Huth
The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad "inline" prototype definitions which GCC refuses to compile in its gnu99 mode: In file included from block/iscsi.c:52:0: /usr/include/iscsi/scsi-lowlevel.h:810:13: error: inline function ‘scsi_set_uint16’ declared but never defined [

[Qemu-devel] [PULL 11/25] xen: remove unnecessary code from dataplane/xen-block.c

2019-01-14 Thread Anthony PERARD
From: Paul Durrant Not all of the code duplicated from xen_disk.c is required as the basis for the new dataplane implementation so this patch removes extraneous code, along with the legacy #includes and calls to the legacy xen_pv_printf() function. Error messages are changed to be reported using

[Qemu-devel] [PULL 20/25] xen: remove the legacy 'xen_disk' backend

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This backend has now been replaced by the 'xen-qdisk' XenDevice. Signed-off-by: Paul Durrant Acked-by: Anthony Perard Signed-off-by: Anthony PERARD --- hw/block/Makefile.objs |1 - hw/block/xen_disk.c| 1011 2 files changed,

[Qemu-devel] [PULL 04/25] xen: introduce new 'XenBus' and 'XenDevice' object hierarchy

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This patch adds the basic boilerplate for a 'XenBus' object that will act as a parent to 'XenDevice' PV backends. A new 'XenBridge' object is also added to connect XenBus to the system bus. The XenBus object is instantiated by a new xen_bus_init() function called from the same

[Qemu-devel] [PULL 01/25] hw/xen/xen_pt_graphics: Don't trust the BIOS ROM contents so much

2019-01-14 Thread Anthony PERARD
From: Peter Maydell Coverity (CID 796599) points out that xen_pt_setup_vga() trusts the rom->size field in the BIOS ROM from a PCI passthrough VGA device, and uses it as an index into the memory which contains the BIOS image. A corrupt BIOS ROM could therefore cause us to index off the end of the

[Qemu-devel] [PULL 16/25] xen: add implementations of xen-block connect and disconnect functions...

2019-01-14 Thread Anthony PERARD
From: Paul Durrant ...and wire in the dataplane. This patch adds the remaining code to make the xen-block XenDevice functional. The parameters that a block frontend expects to find are populated in the backend xenstore area, and the 'ring-ref' and 'event-channel' values specified in the frontend

[Qemu-devel] [PULL 25/25] xen-block: avoid repeated memory allocation

2019-01-14 Thread Anthony PERARD
From: Tim Smith The xen-block dataplane currently allocates memory to hold the data for each request as that request is used, and frees it afterwards. Because it requires page-aligned blocks, this interacts poorly with non-page- aligned allocations and balloons the heap. Instead, allocate the ma

[Qemu-devel] [PULL 02/25] xen/pt: allow passthrough of devices with bogus interrupt pin

2019-01-14 Thread Anthony PERARD
From: Zhao Yan For some pci device, even its PCI_INTERRUPT_PIN is not 0, it actually doesn't support INTx mode, so its machine irq read from host sysfs is 0. In that case, report PCI_INTERRUPT_PIN as 0 to guest and let passthrough continue. Reviewed-by: Roger Pau Monné Signed-off-by: Zhao Yan

[Qemu-devel] [PULL 08/25] xen: add grant table interface for XenDevice-s

2019-01-14 Thread Anthony PERARD
From: Paul Durrant The legacy PV backend infrastructure provides functions to map, unmap and copy pages granted by frontends. Similar functionality will be required by XenDevice implementations so this patch adds the necessary support. Signed-off-by: Paul Durrant Reviewed-by: Anthony Perard Si

[Qemu-devel] [PULL 10/25] xen: duplicate xen_disk.c as basis of dataplane/xen-block.c

2019-01-14 Thread Anthony PERARD
From: Paul Durrant The new xen-block XenDevice implementation requires the same core dataplane as the legacy xen_disk implementation it will eventually replace. This patch therefore copies the legacy xen_disk.c source module into a new dataplane/xen-block.c source module as the basis for the new

[Qemu-devel] [PULL 24/25] xen-block: improve response latency

2019-01-14 Thread Anthony PERARD
From: Tim Smith If the I/O ring is full, the guest cannot send any more requests until some responses are sent. Only sending all available responses just before checking for new work does not leave much time for the guest to supply new work, so this will cause stalls if the ring gets full. Also,

[Qemu-devel] [PULL 03/25] xen: re-name XenDevice to XenLegacyDevice...

2019-01-14 Thread Anthony PERARD
From: Paul Durrant ...and xen_backend.h to xen-legacy-backend.h Rather than attempting to convert the existing backend infrastructure to be QOM compliant (which would be hard to do in an incremental fashion), subsequent patches will introduce a completely new framework for Xen PV backends. Hence

Re: [Qemu-devel] [PATCH] configure: Work-around a bug in libiscsi 1.9.0 when used in gnu99 mode

2019-01-14 Thread Peter Maydell
On Mon, 14 Jan 2019 at 13:47, Thomas Huth wrote: > > The header "scsi-lowlevel.h" of libiscsi 1.9.0 contains some bad > "inline" prototype definitions which GCC refuses to compile in its > gnu99 mode: > > In file included from block/iscsi.c:52:0: > /usr/include/iscsi/scsi-lowlevel.h:810:13: error:

Re: [Qemu-devel] [RFC PATCH] tests: use g_usleep instead of rem = sleep(time)

2019-01-14 Thread Peter Maydell
On Mon, 14 Jan 2019 at 11:07, Alex Bennée wrote: > > Relying on sleep to always return having slept isn't safe as a signal > may have occurred. If signals are constantly incoming the program will > never reach it's termination condition. This is believed to be the > mechanism causing time outs for

[Qemu-devel] [PULL 15/25] xen: purge 'blk' and 'ioreq' from function names in dataplane/xen-block.c

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This is a purely cosmetic patch that purges remaining use of 'blk' and 'ioreq' in local function names, and then makes sure all functions are prefixed with 'xen_block_'. No functional change. Signed-off-by: Paul Durrant Acked-by: Anthony Perard Signed-off-by: Anthony PERARD

[Qemu-devel] [PULL 07/25] xen: add xenstore watcher infrastructure

2019-01-14 Thread Anthony PERARD
From: Paul Durrant A Xen PV frontend communicates its state to the PV backend by writing to the 'state' key in the frontend area in xenstore. It is therefore necessary for a XenDevice implementation to be notified whenever the value of this key changes. This patch adds code to do this as follows

[Qemu-devel] [PULL 06/25] xen: create xenstore areas for XenDevice-s

2019-01-14 Thread Anthony PERARD
From: Paul Durrant This patch adds a new source module, xen-bus-helper.c, which builds on basic libxenstore primitives to provide functions to create (setting permissions appropriately) and destroy xenstore areas, and functions to 'printf' and 'scanf' nodes therein. The main xen-bus code then use

<    1   2   3   4   5   6   >