[Qemu-devel] [PULL v2 22/57] tests/tcg/i386/test-i386: fix printf format

2018-06-20 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index caef4da176..a29b41e764 100644 --- a/tests/tcg/i386/test-i386.c +++ b/tests/tcg/i386/test-i386.c @@ -2258,7 +2258,7 @@ SSE_O

[Qemu-devel] [PULL v2 35/57] tests/tcg/alpha: add Alpha specific tests

2018-06-20 Thread Alex Bennée
These tests did use their own crt.o stub however that is a little stone age so we drop crt.S and just statically link to the cross compilers libraries. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/

[Qemu-devel] [PULL v2 33/57] tests/tcg: enable building for ppc64

2018-06-20 Thread Alex Bennée
Currently this just enables building the multiarch tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/ppc64le/Makefile.include b/tests/tcg/ppc64le/Makefile.include new file mode 100644 index 00..d71cfc9aa7 ---

[Qemu-devel] [PULL v2 21/57] tests/tcg/i386/test-i386: use modern vector_size attributes

2018-06-20 Thread Alex Bennée
The compiler complains about the old __mode__ style attributes. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c index cae6a7773a..caef4da176 100

Re: [Qemu-devel] [PATCH 7/9] target/ppc: Add ppc_hash64_filter_pagesizes()

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:36 AM, David Gibson wrote: > The paravirtualized PAPR platform sometimes needs to restrict the guest to > using only some of the page sizes actually supported by the host's MMU. > At the moment this is handled in KVM specific code, but for consistency we > want to apply the same li

[Qemu-devel] [PULL v2 40/57] tests/tcg: enable building for mips64

2018-06-20 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index fb465e729e..8fd4041716 100644 --- a/tests/docker/Makefile.include +++ b/tests

[Qemu-devel] [PULL v2 46/57] tests/Makefile.include: add [build|clean|check]-tcg targets

2018-06-20 Thread Alex Bennée
This will ensure all linux-user targets build their guest test programs and ensure check-tcg will run the respective tests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/Makefile.include b/tests/Makefile.include index ca91da

[Qemu-devel] [PULL v2 43/57] tests/tcg: enable building for PowerPC

2018-06-20 Thread Alex Bennée
Now we have restored debian-image-powerpc-cross using Debian SID compilers we can build for 32 bit powerpc. Although PPC32 supports a range of pages sizes currently only 4k works so the others are commented out for now. We can also merge the ppc64 support under the base architecture directory to a

Re: [Qemu-devel] [PATCH 4/9] target/ppc: Add kvmppc_hpt_needs_host_contiguous_pages() helper

2018-06-20 Thread David Gibson
On Thu, Jun 21, 2018 at 07:56:58AM +0200, Cédric Le Goater wrote: > On 06/18/2018 08:36 AM, David Gibson wrote: > > KVM HV has a restriction that for HPT mode guests, guest pages must be hpa > > contiguous as well as gpa contiguous. We have to account for that in > > various places. We determine

[Qemu-devel] [PULL v2 44/57] tests/tcg/Makefile: update to be called from Makefile.target

2018-06-20 Thread Alex Bennée
This make is now invoked from each individual target make with the appropriate CC and EXTRA_CFLAGS set for each guest. It then includes additional Makefile.targets from: - tests/tcg/multiarch (always) - tests/tcg/$(TARGET_BASE_ARCH) (if available) - tests/tcg/$(TARGET_NAME) The order is imp

[Qemu-devel] [PULL v2 55/57] docker: docker.py adding age check command

2018-06-20 Thread Alex Bennée
This is useful for querying if an image is too old. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/docker/docker.py b/tests/docker/docker.py index e4f37820e0..b279836154 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -32,6 +32,7 @@ except

[Qemu-devel] [PULL v2 19/57] tests/tcg/i386: add runner for test-i386-fprem

2018-06-20 Thread Alex Bennée
The runner needs to compare against a reference run. We also only run this test when SPEED=slow as it takes a while. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target ind

[Qemu-devel] [PULL v2 45/57] Makefile.target: add (clean-/build-)guest-tests targets

2018-06-20 Thread Alex Bennée
Now all the build infrastructure is in place we can build tests for each guest that we support. That support mainly depends on having cross compilers installed or docker setup. To keep all the logic for that together we put the rules in tests/tcg/Makefile.include and include it from the main Makefi

[Qemu-devel] [PULL v2 51/57] docker: docker.py use "version" to probe usage

2018-06-20 Thread Alex Bennée
The "images" command is a fairly heavyweight command to run as it involves searching the whole docker file-system inventory. On a machine with a lot of images this makes start-up fairly expensive. Signed-off-by: Alex Bennée diff --git a/tests/docker/docker.py b/tests/docker/docker.py index b28ad

[Qemu-devel] [PULL v2 53/57] docker: docker.py add check sub-command

2018-06-20 Thread Alex Bennée
This command allows you to check if we need to re-build a docker image. If the image isn't in the repository or the checksums don't match then we return false and some text (for processing in makefiles). Signed-off-by: Alex Bennée diff --git a/tests/docker/docker.py b/tests/docker/docker.py inde

[Qemu-devel] [PULL v2 49/57] tests/tcg/i386: extend timeout for runcom test

2018-06-20 Thread Alex Bennée
The Travis hardware can be a little slow and the runcom test is fairly heavy in calculating pi. Lets double the timeout so we don't trip up during CI by mistake. Signed-off-by: Alex Bennée diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target index 97b7c23cf1..c1997a1624 1

[Qemu-devel] [PULL v2 47/57] tests/tcg: add run, diff, and skip helper macros

2018-06-20 Thread Alex Bennée
As we aren't using the default runners for all the test cases it is easy to miss out things like timeouts. To help with this we add some helpers and use them so we only need to make core changes in one place. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Math

[Qemu-devel] [PULL v2 41/57] tests/tcg: enable building for RISCV64

2018-06-20 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 8fd4041716..a680743ae8 100644 --- a/tests/docker/Makefile.include +++ b/tests

[Qemu-devel] [PULL v2 54/57] tests/Makefile: call sub-makes with SKIP_DOCKER_BUILD=1

2018-06-20 Thread Alex Bennée
As we now ensure all the images we are going to use are built in the top level make file lets not over complicate things by running the full script again. We do run the check script just in case someone deletes the docker image while we are running. Signed-off-by: Alex Bennée diff --git a/tests/

[Qemu-devel] [PULL v2 15/57] tests/tcg: move i386 specific tests into subdir

2018-06-20 Thread Alex Bennée
These only need to be built for i386 guests. This includes a stub tests/tcg/i386/Makfile.target which absorbs some of what was in tests/tcg/Makefile. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard H

[Qemu-devel] [PULL v2 32/57] tests/tcg: enable building for s390x

2018-06-20 Thread Alex Bennée
This doesn't add any additional tests but enables building the multiarch tests for s390x. Signed-off-by: Alex Bennée Acked-by: Cornelia Huck Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Reviewed-by: David Hildenbrand diff --git a/tests/tcg/s390x/Makefile.include b/te

[Qemu-devel] [PULL v2 38/57] tests/tcg: enable building for sh4

2018-06-20 Thread Alex Bennée
As before, using Debian SID compilers. While the compiler can be coerced into generating big-endian code it seems the linker can't deal with it so we only enable the building for little endian SH4. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé

Re: [Qemu-devel] [PATCH 6/9] spapr: Use maximum page size capability to simplify memory backend checking

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:36 AM, David Gibson wrote: > The way we used to handle KVM allowable guest pagesizes for PAPR guests > required some convoluted checking of memory attached to the guest. > > The allowable pagesizes advertised to the guest cpus depended on the memory > which was attached at boot, b

[Qemu-devel] [PULL v2 39/57] tests/tcg: enable building for sparc64

2018-06-20 Thread Alex Bennée
As before, using Debian SID compilers. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index a2dd307a8e..fb465e729e 100644 --- a/tests/docker/Makefile.include +++ b/tests

[Qemu-devel] [PULL v2 12/57] tests/tcg/multiarch: enable additional linux-test tests

2018-06-20 Thread Alex Bennée
Un-comment the remaining tests. I removed the itimer value tests because I'm fairly sure a re-arming timer will always have a different value in it when you grab it. I've also fixed up the clone thread flags as QEMU will only allow a clone to use flags which match glibc. However the test is still

[Qemu-devel] [PULL v2 48/57] tests/tcg: override runners for broken tests

2018-06-20 Thread Alex Bennée
To get a clean run of check-tcg these tests are currently skipped: - hello-mips for mips - linux-test for sparc Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/mips/Makefile.target b/tests/tcg/mips/Makefile.target ind

[Qemu-devel] [PULL v2 57/57] .travis.yml: add check-tcg test

2018-06-20 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/.travis.yml b/.travis.yml index fabfe9ec34..bd66c18fed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -153,3 +153,11 @@ matrix: - TEST_CMD="" before_script: - ./

[Qemu-devel] [PULL v2 10/57] tests/tcg: move architecture independent tests into subdir

2018-06-20 Thread Alex Bennée
We will want to build these for all supported guest architectures so lets move them all into one place. We also drop test_path at this point because it needs qemu utils and glib bits which is hard to support for cross compiling. Signed-off-by: Alex Bennée Reviewed-by: Thomas Huth Reviewed-by: Ri

[Qemu-devel] [PULL v2 52/57] docker: docker.py don't conflate checksums for extra_files

2018-06-20 Thread Alex Bennée
This just gets confusing especially as the helper function doesn't even take into account any extra files (or the executable). Currently the actual check just ignores them and also passes the result through _dockerfile_preprocess so we fix that too. Signed-off-by: Alex Bennée Reviewed-by: Philipp

[Qemu-devel] [PULL v2 07/57] docker: extend "cc" command to accept compiler

2018-06-20 Thread Alex Bennée
When calling our cross-compilation images we want to call something other than the default cc. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Fam Zheng diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 42267bb94d..db1e2537f5 100755 --- a/tests/dock

[Qemu-devel] [PULL v2 05/57] configure: set cross_cc_FOO for host compiler

2018-06-20 Thread Alex Bennée
We can build tests for the host system with the compiler that we have selected. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson diff --git a/configure b/configure index 259938e177..4d12cfbe3f 100755 --- a/configure +++ b/configure @@ -1431,26 +1431,38 @@ case "$cpu" in ppc)

[Qemu-devel] [PULL v2 09/57] docker: Makefile.include introduce DOCKER_SCRIPT

2018-06-20 Thread Alex Bennée
Define this in one place to make it easy to re-use. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include index 74fd51c22c..8afb383478 100644 --- a/tests/docker/Makefile.include +++ b/tests/docker/Makefile.inclu

[Qemu-devel] [PULL v2 28/57] tests/tcg: move MIPS specific tests into subdir

2018-06-20 Thread Alex Bennée
These only need to be built for MIPS guests. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/tcg/README b/tests/tcg/README index 625f2326e6..a5643d33e7 100644 --- a/tests/tcg/README +++ b/tests/tcg/README @@ -3,17 +3,6 @@ regr

[Qemu-devel] [PULL v2 02/57] configure: add support for --cross-cc-FOO

2018-06-20 Thread Alex Bennée
This allows us to specify cross compilers for our guests. This is useful for building test images/programs. Currently we re-run the compile test for each target. I couldn't think of a way to cache the value for a given arch without getting messier configure code. The cross compiler for the guest i

[Qemu-devel] [PULL v2 08/57] docker: allow "cc" command to run in user context

2018-06-20 Thread Alex Bennée
Signed-off-by: Alex Bennée Reviewed-by: Fam Zheng Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/docker.py b/tests/docker/docker.py index db1e2537f5..b28ad87034 100755 --- a/tests/docker/docker.py +++ b/tests/docker/docker.py @@ -421,6 +421,8 @@

[Qemu-devel] [PULL v2 13/57] tests/tcg/multiarch: don't hard code paths/ports for linux-test

2018-06-20 Thread Alex Bennée
The fixed path and ports get in the way of running our tests and builds in parallel. Instead of using TESTPATH we use mkdtemp() and instead of a fixed port we allow the kernel to assign one and query it afterwards. Ideally test directory creation should be common functionally across all TCG tests

[Qemu-devel] [PULL v2 01/57] docker: docker.py wrap StringIO import for python3

2018-06-20 Thread Alex Bennée
Although the docker.py is nominally python2 we actually invoke it with the configured python from the configure script. Signed-off-by: Alex Bennée diff --git a/tests/docker/docker.py b/tests/docker/docker.py index 306e14cf69..e4095270eb 100755 --- a/tests/docker/docker.py +++ b/tests/docker/dock

[Qemu-devel] [PULL v2 06/57] docker: Add "cc" subcommand

2018-06-20 Thread Alex Bennée
Signed-off-by: Fam Zheng [AJB: add if args.paths check] Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/tests/docker/docker.py b/tests/docker/docker.py index e4095270eb..42267bb94d 100755 --- a/tests/docker/docker.py +++ b/tests/doc

[Qemu-devel] [PULL v2 03/57] configure: move i386_cc to cross_cc_i386

2018-06-20 Thread Alex Bennée
Also dont assume x86_64 compiler can build i386 binaries. Signed-off-by: Alex Bennée Tested-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson diff --git a/configure b/configure index ab189067cb..a5676cf15f 100755 --- a/configure +++ b/configure @@ -289,7 +289,6 @@ libs_softmmu="" libs

[Qemu-devel] [PULL v2 04/57] configure: allow user to specify --cross-cc-cflags-foo=

2018-06-20 Thread Alex Bennée
As an individual compiler may be able to support several targets with the appropriate flags we need to expose this to the user as well. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson diff --git a/configure b/configure index a5676cf15f..259938e177 100755 --- a/configure +++ b/configur

[Qemu-devel] [PULL v2 00/57] add check-tcg and associated machinery

2018-06-20 Thread Alex Bennée
The following changes since commit 46012db666990ff2eed1d3dc199ab8006439a93b: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180619' into staging (2018-06-20 09:51:30 +0100) are available in the Git repository at: https://github.com/stsquad/qemu.git tags/pull-tcg-testing-revivial-

Re: [Qemu-devel] [PATCH 5/9] spapr: Maximum (HPT) pagesize property

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:36 AM, David Gibson wrote: > The way the POWER Hash Page Table (HPT) MMU is virtualized by KVM HV means > that every page that the guest puts in the pagetables must be truly > physically contiguous, not just GPA-contiguous. In effect this means that > an HPT guest can't use any pa

Re: [Qemu-devel] [PULL 0/7] bitmap export over NBD

2018-06-20 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180621031957.134718-1-ebl...@redhat.com Subject: [Qemu-devel] [PULL 0/7] bitmap export over NBD === TEST SCRIPT BEGIN === #!/bin/bash # Testing script will be invoked under the git checkout

Re: [Qemu-devel] [PATCH v3 24/26] virtio-gpu: split virtio-gpu, introduce virtio-gpu-base

2018-06-20 Thread Gerd Hoffmann
On Wed, Jun 20, 2018 at 06:04:25PM +0200, Marc-André Lureau wrote: > Hi > > On Tue, Jun 19, 2018 at 8:43 AM, Gerd Hoffmann wrote: > > On Mon, Jun 18, 2018 at 06:17:27PM +0200, Marc-André Lureau wrote: > >> Add a base class that is common to virtio-gpu and vhost-user-gpu > >> devices. > > > > More

Re: [Qemu-devel] [PATCH 4/9] target/ppc: Add kvmppc_hpt_needs_host_contiguous_pages() helper

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:36 AM, David Gibson wrote: > KVM HV has a restriction that for HPT mode guests, guest pages must be hpa > contiguous as well as gpa contiguous. We have to account for that in > various places. We determine whether we're subject to this restriction > from the SMMU information expo

Re: [Qemu-devel] [PATCH] hw/i386: Deprecate the machine types pc-0.10 and pc-0.11

2018-06-20 Thread Markus Armbruster
Eduardo Habkost writes: > On Mon, Jun 11, 2018 at 05:41:04AM +0200, Thomas Huth wrote: >> The oldest machine type which is still used in a maintained distribution >> is a pc-0.12 based machine type in RHEL6, so everything that is older >> than pc-0.12 should not be used anymore. Thus let's deprec

Re: [Qemu-devel] [PATCH] nbd/client: add x-block-status hack for testing server

2018-06-20 Thread no-reply
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180621032539.134944-1-ebl...@redhat.com Subject: [Qemu-devel] [PATCH] nbd/client: add x-

Re: [Qemu-devel] [PULL 0/7] bitmap export over NBD

2018-06-20 Thread no-reply
Hi, This series failed docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. Type: series Message-id: 20180621031957.134718-1-ebl...@redhat.com Subject: [Qemu-devel] [PULL 0/7] bitmap export o

Re: [Qemu-devel] [PATCH 3/9] spapr: Add cpu_apply hook to capabilities

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:36 AM, David Gibson wrote: > spapr capabilities have an apply hook to actually activate (or deactivate) > the feature in the system at reset time. However, a number of capabilities > affect the setup of cpus, and need to be applied to each of them - > including hotplugged cpus for

Re: [Qemu-devel] [PATCH 2/9] spapr: Compute effective capability values earlier

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:35 AM, David Gibson wrote: > Previously, the effective values of the various spapr capability flags > were only determined at machine reset time. That was a lazy way of making > sure it was after cpu initialization so it could use the cpu object to > inform the defaults. > > But

Re: [Qemu-devel] [PATCH 1/9] target/ppc: Allow cpu compatiblity checks based on type, not instance

2018-06-20 Thread Cédric Le Goater
On 06/18/2018 08:35 AM, David Gibson wrote: > ppc_check_compat() is used in a number of places to check if a cpu object > supports a certain compatiblity mode, subject to various constraints. > > It takes a PowerPCCPU *, however it really only depends on the cpu's class. > We have upcoming cases w

Re: [Qemu-devel] [PATCH v5 00/35] target/arm SVE patches

2018-06-20 Thread no-reply
Hi, This series seems to have some coding style problems. See output below for more information: Type: series Message-id: 20180621015359.12018-1-richard.hender...@linaro.org Subject: [Qemu-devel] [PATCH v5 00/35] target/arm SVE patches === TEST SCRIPT BEGIN === #!/bin/bash BASE=base n=1 total=$

[Qemu-devel] Fwd: port forward not work when using with macvtap

2018-06-20 Thread Li Feng
Hi all, I create a vm with a macvtap network and a nat network. ``` netdev user,id=fl.1,hostfwd=tcp::-:22 \ -device e1000,netdev=fl.1 \ -net nic,model=virtio,macaddr=$(< /sys/class/net/macvtap0/address) \ -net tap,fd=3 3<>/dev/tap$(< /sys/class/net/macvtap0/ifindex) ``` I create two network c

Re: [Qemu-devel] [Qemu-block] [PATCH] [RFC v2] aio: properly bubble up errors from initialization

2018-06-20 Thread Nishanth Aravamudan via Qemu-devel
On 20.06.2018 [12:34:52 -0700], Nishanth Aravamudan wrote: > On 20.06.2018 [11:57:42 +0200], Kevin Wolf wrote: > > Am 20.06.2018 um 00:54 hat Nishanth Aravamudan geschrieben: > > > On 19.06.2018 [15:35:57 -0700], Nishanth Aravamudan wrote: > > > > On 19.06.2018 [13:14:51 -0700], Nishanth Aravamudan

[Qemu-devel] [PATCH] nbd/client: add x-block-status hack for testing server

2018-06-20 Thread Eric Blake
In order to test that the NBD server is properly advertising dirty bitmaps, we need a bare minimum client that can request and read the context. This patch is a hack (hence the use of the x- prefix) that serves two purposes: first, it lets the client pass a request of more than one context at a ti

[Qemu-devel] [PULL 5/7] nbd/server: implement dirty bitmap export

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Handle a new NBD meta namespace: "qemu", and corresponding queries: "qemu:dirty-bitmap:". With the new metadata context negotiated, BLOCK_STATUS query will reply with dirty-bitmap data, converted to extents. The new public function nbd_export_bitmap selects whi

[Qemu-devel] [PULL 6/7] qapi: new qmp command nbd-server-add-bitmap

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy For now, the actual command ix x-nbd-server-add-bitmap, reflecting the fact that we are still working on libvirt code that proves the command works as needed, and also the fact that we may remove bitmap-export-name (and just require that the exported name be the

[Qemu-devel] [PULL 2/7] nbd/server: fix trace

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Return code = 1 doesn't mean that we parsed base:allocation. Use correct traces in both -parsed and -skipped cases. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-2-vsement...@virtuozzo.com> Reviewed-by: Eric Blake [eblake: comm

[Qemu-devel] [PULL 4/7] nbd/server: add nbd_meta_empty_or_pattern helper

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Add nbd_meta_pattern() and nbd_meta_empty_or_pattern() helpers for metadata query parsing. nbd_meta_pattern() will be reused for the "qemu" namespace in following patches. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-4-vsement.

[Qemu-devel] [PULL 0/7] bitmap export over NBD

2018-06-20 Thread Eric Blake
The following changes since commit 46012db666990ff2eed1d3dc199ab8006439a93b: Merge remote-tracking branch 'remotes/cohuck/tags/s390x-20180619' into staging (2018-06-20 09:51:30 +0100) are available in the Git repository at: git://repo.or.cz/qemu/ericb.git tags/pull-nbd-2018-06-20 for you t

[Qemu-devel] [PULL 3/7] nbd/server: refactor NBDExportMetaContexts

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Use NBDExport pointer instead of just export name: there is no need to store a duplicated name in the struct; moreover, NBDExport will be used further. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-3-vsement...@virtuozzo.com> Re

[Qemu-devel] [PULL 7/7] docs/interop: add nbd.txt

2018-06-20 Thread Eric Blake
From: Vladimir Sementsov-Ogievskiy Describe new metadata namespace: "qemu". Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20180609151758.17343-7-vsement...@virtuozzo.com> Reviewed-by: Eric Blake [eblake: grammar tweaks] Signed-off-by: Eric Blake --- docs/interop/nbd.txt | 38 +

[Qemu-devel] [PULL 1/7] tests: Simplify .gitignore

2018-06-20 Thread Eric Blake
Commit 0bcc8e5b was yet another instance of 'git status' reporting dirty files after an in-tree build, thanks to the new binary tests/check-block-qdict. Instead of piecemeal exemptions of each new binary as they are added, let's use git's negative globbing feature to exempt ALL files that have a '

[Qemu-devel] [PATCH v3] hw/i386: Deprecate the machine types pc-0.10 and pc-0.11

2018-06-20 Thread Thomas Huth
The oldest machine type which is still used in a still maintained distro is a pc-0.12 based machine type in RHEL6, so everything that is older than pc-0.12 should not be used anymore. Thus let's deprecate pc-0.10 and pc-0.11 so that we can finally remove them in a future release. Signed-off-by: Th

Re: [Qemu-devel] [PATCH] tests: Simplify .gitignore

2018-06-20 Thread Eric Blake
On 06/19/2018 04:10 PM, Philippe Mathieu-Daudé wrote: On 06/19/2018 05:39 PM, Eric Blake wrote: Commit 0bcc8e5b was yet another instance of 'git status' reporting dirty files after an in-tree build, thanks to the new binary tests/check-block-qdict. Instead of piecemeal exemptions of each new bi

[Qemu-devel] [Bug 1777969] [NEW] Crash with UEFI, q35, AHCI, and <= SystemRescueCD 4.3.0

2018-06-20 Thread Matthew Stapleton
Public bug reported: I am getting a crash when booting <= SystemRescueCD 4.3.0 in UEFI mode with q35 machine and from a AHCI device with qemu 2.11.1 and 2.12.0. The crash doesn't occur if I compile with --enable-trace-backends=simple or if I use virtio-scsi. The original crash was noticed on Gent

Re: [Qemu-devel] [PATCH v2] hw/i386: Deprecate the machine types pc-0.10 and pc-0.11

2018-06-20 Thread Thomas Huth
On 21.06.2018 04:18, Thomas Huth wrote: > The oldest machine type which is still used in a still maintained distro > is a pc-0.12 based machine type in RHEL6, so everything that is older > than pc-0.12 should not be used anymore. Thus let's deprecate pc-0.10 > and pc-0.11 so that we can finally rem

[Qemu-devel] [PATCH v5 34/35] target/arm: Enable SVE for aarch64-linux-user

2018-06-20 Thread Richard Henderson
Enable ARM_FEATURE_SVE for the generic "max" cpu. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/cpu.c | 7 +++ target/arm/cpu64.c | 1 + 2 files changed, 8 insertions(+) diff --git a/target/arm/cpu.c b/target/arm/cpu.c index e1de45e904..8e4f4d8c21 100644 ---

[Qemu-devel] [PATCH v5 32/35] target/arm: Implement SVE dot product (vectors)

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 5 +++ target/arm/translate-sve.c | 17 ++ target/arm/vec_helper.c| 67 ++ target/arm/sve.decode | 3 ++ 4 files changed, 92 insertions(+) diff --git a/target/arm/helper.h b/t

[Qemu-devel] [PATCH v5 33/35] target/arm: Implement SVE dot product (indexed)

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 5 ++ target/arm/translate-sve.c | 18 +++ target/arm/vec_helper.c| 96 ++ target/arm/sve.decode | 8 +++- 4 files changed, 126 insertions(+), 1 deletion(-) diff --git a/target/ar

[Qemu-devel] [PATCH v5 30/35] target/arm: Pass index to AdvSIMD FCMLA (indexed)

2018-06-20 Thread Richard Henderson
The original commit failed to pass, or use, the index. Fixes: d17b7cdcf4ea Signed-off-by: Richard Henderson --- target/arm/translate-a64.c | 21 - target/arm/vec_helper.c| 10 ++ 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/target/arm/translate

[Qemu-devel] [PATCH v5 28/35] target/arm: Implement SVE floating-point complex add

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 7 +++ target/arm/sve_helper.c| 100 + target/arm/translate-sve.c | 24 + target/arm/sve.decode | 4 ++ 4 files changed, 135 insertions(+) diff --git a/target/arm/helper-sv

[Qemu-devel] [PATCH v5 27/35] target/arm: Implement SVE MOVPRFX

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 60 +- target/arm/sve.decode | 7 + 2 files changed, 66 insertions(+), 1 deletion(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 308c04de89..067c219b54 1

[Qemu-devel] [PATCH v2] hw/i386: Deprecate the machine types pc-0.10 and pc-0.11

2018-06-20 Thread Thomas Huth
The oldest machine type which is still used in a still maintained distro is a pc-0.12 based machine type in RHEL6, so everything that is older than pc-0.12 should not be used anymore. Thus let's deprecate pc-0.10 and pc-0.11 so that we can finally remove them in a future release. Signed-off-by: Th

[Qemu-devel] [PATCH v5 26/35] target/arm: Implement SVE floating-point unary operations

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 14 ++ target/arm/sve_helper.c| 8 target/arm/translate-sve.c | 26 ++ target/arm/sve.decode | 4 4 files changed, 52 insertions(+) diff --git a/target/arm/helper-sve.h

[Qemu-devel] [PATCH v5 31/35] target/arm: Implement SVE fp complex multiply add (indexed)

2018-06-20 Thread Richard Henderson
Enhance the existing helpers to support SVE, which takes the index from each 128-bit segment. The change has no effect for AdvSIMD, since there is only one such segment. Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 23 ++ target/arm/vec_helper.c| 50

[Qemu-devel] [PATCH v5 21/35] target/arm: Implement SVE FP Compare with Zero Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 42 + target/arm/sve_helper.c| 43 ++ target/arm/translate-sve.c | 43 ++ target/arm/sve.decode | 10 + 4

[Qemu-devel] [PATCH v5 35/35] target/arm: Implement ARMv8.2-DotProd

2018-06-20 Thread Richard Henderson
We've already added the helpers with an SVE patch, all that remains is to wire up the aa64 and aa32 translators. Enable the feature within -cpu max for CONFIG_USER_ONLY. Signed-off-by: Richard Henderson --- target/arm/cpu.h | 1 + linux-user/elfload.c | 1 + target/arm/cpu.c

[Qemu-devel] [PATCH v5 24/35] target/arm: Implement SVE floating-point convert to integer

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 30 + target/arm/helper.h| 12 +++--- target/arm/helper.c| 2 +- target/arm/sve_helper.c| 88 ++ target/arm/translate-sve.c | 70 ++ t

[Qemu-devel] [PATCH v5 25/35] target/arm: Implement SVE floating-point round to integral value

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 14 +++ target/arm/sve_helper.c| 8 target/arm/translate-sve.c | 77 ++ target/arm/sve.decode | 9 + 4 files changed, 108 insertions(+) diff --git a/target/arm/helper-sve

[Qemu-devel] [PATCH v5 19/35] target/arm: Implement SVE FP Fast Reduction Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 35 ++ target/arm/sve_helper.c| 61 ++ target/arm/translate-sve.c | 57 +++ target/arm/sve.decode | 8 + 4 files changed, 161 ins

[Qemu-devel] [PATCH v5 22/35] target/arm: Implement SVE floating-point trig multiply-add coefficient

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 4 +++ target/arm/sve_helper.c| 70 ++ target/arm/translate-sve.c | 27 +++ target/arm/sve.decode | 3 ++ 4 files changed, 104 insertions(+) diff --git a/target/arm/helper

[Qemu-devel] [PATCH v5 23/35] target/arm: Implement SVE floating-point convert precision

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 13 + target/arm/sve_helper.c| 27 +++ target/arm/translate-sve.c | 30 ++ target/arm/sve.decode | 8 4 files changed, 78 insertions(+) diff --git

[Qemu-devel] [PATCH v5 16/35] target/arm: Implement SVE floating-point compare vectors

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 49 ++ target/arm/sve_helper.c| 62 ++ target/arm/translate-sve.c | 40 target/arm/sve.decode | 11 +++ 4 files changed, 162 inse

[Qemu-devel] [PATCH v5 20/35] target/arm: Implement SVE Floating Point Unary Operations - Unpredicated Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 8 +++ target/arm/translate-sve.c | 47 ++ target/arm/vec_helper.c| 20 target/arm/sve.decode | 5 4 files changed, 80 insertions(+) diff --git a/target/arm/

[Qemu-devel] [PATCH v5 18/35] target/arm: Implement SVE Floating Point Multiply Indexed Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper.h| 14 +++ target/arm/translate-sve.c | 50 ++ target/arm/vec_helper.c| 48 target/arm/sve.decode | 19 +++ 4 files changed, 131 ins

[Qemu-devel] [PATCH v5 12/35] target/arm: Implement SVE prefetches

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 21 + target/arm/sve.decode | 23 +++ 2 files changed, 44 insertions(+) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 6e1907cedd..c054e3268b 100644 --- a/ta

[Qemu-devel] [PATCH v5 14/35] target/arm: Implement SVE first-fault gather loads

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 67 target/arm/sve_helper.c| 88 ++ target/arm/translate-sve.c | 126 - 3 files changed, 236 insertions(+), 45 deletions(-) diff --git a/target

[Qemu-devel] [PATCH v5 17/35] target/arm: Implement SVE floating-point arithmetic with immediate

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 56 target/arm/sve_helper.c| 69 +++ target/arm/translate-sve.c | 75 ++ target/arm/sve.decode | 14 +++ 4 files changed,

[Qemu-devel] [PATCH v5 29/35] target/arm: Implement SVE fp complex multiply add

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 4 + target/arm/sve_helper.c| 162 + target/arm/translate-sve.c | 37 + target/arm/sve.decode | 4 + 4 files changed, 207 insertions(+) diff --git a/target/arm/helper-sve.h

[Qemu-devel] [PATCH v5 10/35] target/arm: Implement SVE store vector/predicate register

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 103 + target/arm/sve.decode | 6 +++ 2 files changed, 109 insertions(+) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 954d6653d3..50f1ff75ef 100644 --- a/tar

[Qemu-devel] [PATCH v5 11/35] target/arm: Implement SVE scatter stores

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 41 + target/arm/sve_helper.c| 62 target/arm/translate-sve.c | 74 ++ target/arm/sve.decode | 39 4 files chang

[Qemu-devel] [PATCH v5 15/35] target/arm: Implement SVE scatter store vector immediate

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 83 ++ target/arm/sve.decode | 11 + 2 files changed, 69 insertions(+), 25 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 11c1bf112c..fdc3231e63

[Qemu-devel] [PATCH v5 07/35] target/arm: Implement SVE FP Multiply-Add Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 16 target/arm/sve_helper.c| 158 + target/arm/translate-sve.c | 49 target/arm/sve.decode | 17 4 files changed, 240 insertions(+) diff --git a/target/arm/hel

[Qemu-devel] [PATCH v5 13/35] target/arm: Implement SVE gather loads

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 67 target/arm/sve_helper.c| 77 +++ target/arm/translate-sve.c | 104 + target/arm/sve.decode | 53 +++ 4 files chang

[Qemu-devel] [PATCH v5 09/35] target/arm: Implement SVE load and broadcast element

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 5 +++ target/arm/sve_helper.c| 41 + target/arm/translate-sve.c | 62 ++ target/arm/sve.decode | 5 +++ 4 files changed, 113 insertions(+) diff --git a/target

[Qemu-devel] [PATCH v5 08/35] target/arm: Implement SVE Floating Point Accumulating Reduction Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 7 + target/arm/sve_helper.c| 56 ++ target/arm/translate-sve.c | 45 ++ target/arm/sve.decode | 5 4 files changed, 113 insertions(+) diff --git

[Qemu-devel] [PATCH v5 04/35] target/arm: Implement SVE load and broadcast quadword

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 52 ++ target/arm/sve.decode | 9 +++ 2 files changed, 61 insertions(+) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index b25fe96b77..83de87ee0e 100644 --- a/t

[Qemu-devel] [PATCH v5 05/35] target/arm: Implement SVE integer convert to floating-point

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 30 + target/arm/sve_helper.c| 38 target/arm/translate-sve.c | 90 ++ target/arm/sve.decode | 22 ++ 4 files changed, 180 insertions(+) diff --git

[Qemu-devel] [PATCH v5 06/35] target/arm: Implement SVE floating-point arithmetic (predicated)

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 77 + target/arm/sve_helper.c| 89 ++ target/arm/translate-sve.c | 46 target/arm/sve.decode | 17 4 files changed, 229 inse

  1   2   3   4   5   >