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

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

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

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

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

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

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

[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

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

[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

[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

[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

[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:

[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:

[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

[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>

[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:

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

[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

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

[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

[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

[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

[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

[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

[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:

[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 ++

[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

[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

[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

[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

[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

[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

[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 ---

[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

[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

[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

[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 ---

[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

[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

[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

[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

[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

[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 ---

[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

[Qemu-devel] [PATCH v5 03/35] target/arm: Implement SVE Memory Contiguous Store Group

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

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

2018-06-20 Thread Richard Henderson
This is the remainder of the SVE enablement patches, with an extra bonus patch to enable ARMv8.2-DotProd. r~ Richard Henderson (35): target/arm: Implement SVE Memory Contiguous Load Group target/arm: Implement SVE Contiguous Load, first-fault and no-fault target/arm: Implement SVE Memory

[Qemu-devel] [PATCH v5 02/35] target/arm: Implement SVE Contiguous Load, first-fault and no-fault

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 40 ++ target/arm/sve_helper.c| 156 + target/arm/translate-sve.c | 69 target/arm/sve.decode | 6 ++ 4 files changed, 271 insertions(+) diff --git

[Qemu-devel] [PATCH v5 01/35] target/arm: Implement SVE Memory Contiguous Load Group

2018-06-20 Thread Richard Henderson
Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 35 + target/arm/sve_helper.c| 153 + target/arm/translate-sve.c | 121 + target/arm/sve.decode | 34 + 4 files changed, 343 insertions(+)

Re: [Qemu-devel] [PATCH v2 for-2.11.2] spapr: make pseries-2.11 the default machine type

2018-06-20 Thread David Gibson
On Wed, Jun 20, 2018 at 02:54:15PM +0200, Greg Kurz wrote: > The spapr capability framework was introduced in QEMU 2.12. It allows > to have an explicit control on how host features are exposed to the > guest. This is especially needed to handle migration between hetero- > geneous hosts (eg,

Re: [Qemu-devel] [PATCH 0/9] spapr: Clean up pagesize handling

2018-06-20 Thread David Gibson
On Mon, Jun 18, 2018 at 04:35:57PM +1000, David Gibson wrote: > Currently the "pseries" machine type will (usually) advertise > different pagesizes to the guest when running under KVM and TCG, which > is not how things are supposed to work. > > This comes from poor handling of hardware

Re: [Qemu-devel] [RFC 3/6] kvm: add kvm_get_max_vm_phys_shift

2018-06-20 Thread David Gibson
On Wed, Jun 20, 2018 at 03:07:30PM +0200, Eric Auger wrote: > Add the kvm_get_max_vm_phys_shift() helper that returns the > log of the maximum IPA size supported by KVM. This capability > needs to be known to create the VM with a correct IPA max size > (kvm_type passed along KVM_CREATE_VM ioctl. >

Re: [Qemu-devel] [RFC 2/6] hw/boards: Add a MachineState parameter to kvm_type callback

2018-06-20 Thread David Gibson
On Wed, Jun 20, 2018 at 03:07:29PM +0200, Eric Auger wrote: 1;5202;0c> On ARM, the kvm_type will be resolved by querying the KVMState. > Let's add the MachineState handle to the callback so that we > can retrieve the KVMState handle. in kvm_init, when the callback > is called, the kvm_state

Re: [Qemu-devel] [PATCH v2 03/10] qcow2/bitmap: cache bm_list

2018-06-20 Thread John Snow
On 06/20/2018 09:04 AM, Vladimir Sementsov-Ogievskiy wrote: > 13.06.2018 05:06, John Snow wrote: >> We don't need to re-read this list every time, exactly. We can keep it >> cached >> and delete our copy when we flush to disk. >> >> Because we don't try to flush bitmaps on close if there's

[Qemu-devel] [PATCH v15 12/12] migration: Stop sending whole pages through main channel

2018-06-20 Thread Juan Quintela
We have to flush() the QEMUFile because now we sent really few data through that channel. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index

[Qemu-devel] [PATCH v15 11/12] migration: Remove not needed semaphore and quit

2018-06-20 Thread Juan Quintela
We know quit closing the QIO. Signed-off-by: Juan Quintela -- Add comment don't object_ref() twice. --- migration/ram.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 2c3a452a7d..57d3ad1c45 100644 ---

[Qemu-devel] [PATCH v15 10/12] migration: Wait for blocking IO

2018-06-20 Thread Juan Quintela
We have three conditions here: - channel fails -> error - we have to quit: we close the channel and reads fails - normal read that success, we are in bussiness So forget the complications of waiting in a semaphore. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert ---

[Qemu-devel] [PATCH v15 07/12] migration: Synchronize multifd threads with main thread

2018-06-20 Thread Juan Quintela
We synchronize all threads each RAM_SAVE_FLAG_EOS. Bitmap synchronizations don't happen inside a ram section, so we are safe about two channels trying to overwrite the same memory. Signed-off-by: Juan Quintela -- seq needs to be atomic now, will also be accessed from main thread. Fix the if

[Qemu-devel] [PATCH v15 09/12] migration: Start sending messages

2018-06-20 Thread Juan Quintela
Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 71a33b73e7..09df573441 100644 --- a/migration/ram.c +++

[Qemu-devel] [PATCH v15 08/12] migration: Create ram_save_multifd_page

2018-06-20 Thread Juan Quintela
The function still don't use multifd, but we have simplified ram_save_page, xbzrle and RDMA stuff is gone. We have added a new counter. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert -- Add last_page parameter Add commets for done and address Remove multifd field, it is the

[Qemu-devel] [PATCH v15 05/12] migration: Multifd channels always wait on the sem

2018-06-20 Thread Juan Quintela
Either for quit, sync or packet, we first wake them. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index d7f8b0d989..617da76a2e 100644 ---

[Qemu-devel] [PATCH v15 06/12] migration: Add block where to send/receive packets

2018-06-20 Thread Juan Quintela
Once there add tracepoints. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c| 49 +- migration/trace-events | 2 ++ 2 files changed, 46 insertions(+), 5 deletions(-) diff --git a/migration/ram.c

[Qemu-devel] [PATCH v15 03/12] migration: Add multifd traces for start/end thread

2018-06-20 Thread Juan Quintela
We want to know how many pages/packets each channel has sent. Add counters for those. Signed-off-by: Juan Quintela Reviewed-by: Juan Quintela -- sort trace-events (dave) --- migration/ram.c| 22 ++ migration/trace-events | 4 2 files changed, 26 insertions(+)

[Qemu-devel] [PATCH v15 02/12] migration: Create multifd packet

2018-06-20 Thread Juan Quintela
We still don't put anything there. Signed-off-by: Juan Quintela Reviewed-by: Juan Quintela -- fix magic (dave) check offset/ramblock (dave) s/seq/packet_num/ and make it 64bit --- migration/ram.c | 145 +++- 1 file changed, 144 insertions(+), 1

[Qemu-devel] [PATCH v15 04/12] migration: Calculate transferred ram correctly

2018-06-20 Thread Juan Quintela
On multifd we send data from more places that main channel. Signed-off-by: Juan Quintela -- Add placeholder for packets size --- migration/migration.c | 12 ++-- migration/ram.c | 7 +++ migration/ram.h | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff

[Qemu-devel] [PATCH v15 00/12] Multifd

2018-06-20 Thread Juan Quintela
Hi This is v15 of multifd patches. Changes from previous version: - fix compilation on 32bit (weird) platforms. Move from uint64_t to long for atomics. - use shutdown for comunication close instead of object_unref(). (david suggestion) I took some performance numbers (not the most

[Qemu-devel] [PATCH v15 01/12] migration: Create multipage support

2018-06-20 Thread Juan Quintela
We only create/destry the page list here. We will use it later. Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/ram.c | 57 + 1 file changed, 57 insertions(+) diff --git a/migration/ram.c b/migration/ram.c index

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

2018-06-20 Thread Eduardo Habkost
(CCing Markus and libvir-list) On Wed, Jun 20, 2018 at 08:40:38PM +0200, Thomas Huth wrote: > On 12.06.2018 00:18, Eduardo Habkost wrote: > > 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

Re: [Qemu-devel] [RFC PATCH 4/5] build-system: add clean-coverage target

2018-06-20 Thread Philippe Mathieu-Daudé
On 06/20/2018 06:06 PM, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > >> Hi Alex, >> >> On 06/20/2018 10:20 AM, Alex Bennée wrote: >>> This can be used to remove any stale coverage data before any >>> particular test run. This is useful for analysing individual tests. >>> >>>

Re: [Qemu-devel] [PATCH 00/113] Patch Round-up for stable 2.11.2, freeze on 2018-06-22

2018-06-20 Thread Michael Roth
Quoting Michael Roth (2018-06-20 15:41:24) > Quoting Cornelia Huck (2018-06-19 02:42:48) > > On Mon, 18 Jun 2018 20:41:26 -0500 > > Michael Roth wrote: > > > > > Hi everyone, > > > > > > The following new patches are queued for QEMU stable v2.11.2: > > > > > >

Re: [Qemu-devel] [Qemu-stable] [PATCH 00/113] Patch Round-up for stable 2.11.2, freeze on 2018-06-22

2018-06-20 Thread Michael Roth
Quoting Greg Kurz (2018-06-19 06:56:36) > On Mon, 18 Jun 2018 20:41:26 -0500 > Michael Roth wrote: > > > Hi everyone, > > > > The following new patches are queued for QEMU stable v2.11.2: > > > > https://github.com/mdroth/qemu/commits/stable-2.11-staging > > > > The release is planned for

Re: [Qemu-devel] [PATCH 00/113] Patch Round-up for stable 2.11.2, freeze on 2018-06-22

2018-06-20 Thread Michael Roth
Quoting Michael Roth (2018-06-18 20:41:26) > Hi everyone, > > The following new patches are queued for QEMU stable v2.11.2: > > https://github.com/mdroth/qemu/commits/stable-2.11-staging > > The release is planned for 2018-06-22: > > https://wiki.qemu.org/Planning/2.11 > > Please respond

Re: [Qemu-devel] [PATCH 00/113] Patch Round-up for stable 2.11.2, freeze on 2018-06-22

2018-06-20 Thread Michael Roth
Quoting Cornelia Huck (2018-06-19 02:42:48) > On Mon, 18 Jun 2018 20:41:26 -0500 > Michael Roth wrote: > > > Hi everyone, > > > > The following new patches are queued for QEMU stable v2.11.2: > > > > https://github.com/mdroth/qemu/commits/stable-2.11-staging > > > > The release is planned

Re: [Qemu-devel] [RFC PATCH 4/5] build-system: add clean-coverage target

2018-06-20 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > Hi Alex, > > On 06/20/2018 10:20 AM, Alex Bennée wrote: >> This can be used to remove any stale coverage data before any >> particular test run. This is useful for analysing individual tests. >> >> Signed-off-by: Alex Bennée >> --- >> Makefile |

Re: [Qemu-devel] [RFC PATCH 3/5] .travis.yml: add gcovr summary for GCOV build

2018-06-20 Thread Alex Bennée
Philippe Mathieu-Daudé writes: > On 06/20/2018 10:20 AM, Alex Bennée wrote: >> This gives a more useful summary, sorted by descending % coverage, >> after the tests have run. The final numbers will give an idea if our >> coverage is getting better or worse. >> >> As quite a lot of lines don't

Re: [Qemu-devel] [PATCH v2 3/7] s390x/tcg: properly implement the TOD

2018-06-20 Thread Richard Henderson
On 06/20/2018 10:33 AM, David Hildenbrand wrote: > On 20.06.2018 21:33, Richard Henderson wrote: >> On 06/20/2018 12:08 AM, David Hildenbrand wrote: >>> +/* Converts ns to s390's clock format */ >>> +static inline uint64_t time2tod(uint64_t ns) >>> +{ >>> +return (ns << 9) / 125; >>> +} >>> +

Re: [Qemu-devel] [Qemu-block] [PATCH v5 6/6] docs/interop: add nbd.txt

2018-06-20 Thread John Snow
On 06/20/2018 10:16 AM, Vladimir Sementsov-Ogievskiy wrote: > 20.06.2018 14:33, Eric Blake wrote: >> On 06/09/2018 10:17 AM, Vladimir Sementsov-Ogievskiy wrote: >>> Describe new metadata namespace: "qemu". >>> >>> Signed-off-by: Vladimir Sementsov-Ogievskiy >>> --- >>>   docs/interop/nbd.txt |

Re: [Qemu-devel] [PATCH v1] postcopy: drop ram_pages parameter from postcopy_ram_incoming_init()

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: 20180620152241.15772-1-da...@redhat.com Subject: [Qemu-devel] [PATCH v1] postcopy: drop

Re: [Qemu-devel] [RFC] Add NRF51 RNG peripheral

2018-06-20 Thread Philippe Mathieu-Daudé
Hi Fam, On 06/19/2018 10:20 AM, no-re...@patchew.org wrote: > Hi, > > This series failed build test on s390x host. Please find the details below. > > N/A. Internal error while reading log file Did you noticed this error? Maybe this kind of error should only be sent to patchew-de...@redhat.com

Re: [Qemu-devel] [RFC PATCH 5/5] build-system: add coverage-report target

2018-06-20 Thread Philippe Mathieu-Daudé
Hi Alex, On 06/20/2018 10:20 AM, Alex Bennée wrote: > This will build a coverage report under the current directory in > reports/coverage. At the users option a report can be generated by > directly invoking something like: > > make foo/bar/coverage-report.html > > Signed-off-by: Alex Bennée

Re: [Qemu-devel] [RFC PATCH 3/5] .travis.yml: add gcovr summary for GCOV build

2018-06-20 Thread Philippe Mathieu-Daudé
On 06/20/2018 10:20 AM, Alex Bennée wrote: > This gives a more useful summary, sorted by descending % coverage, > after the tests have run. The final numbers will give an idea if our > coverage is getting better or worse. > > As quite a lot of lines don't get covered at all we filter out all the

Re: [Qemu-devel] [RFC PATCH 4/5] build-system: add clean-coverage target

2018-06-20 Thread Philippe Mathieu-Daudé
Hi Alex, On 06/20/2018 10:20 AM, Alex Bennée wrote: > This can be used to remove any stale coverage data before any > particular test run. This is useful for analysing individual tests. > > Signed-off-by: Alex Bennée > --- > Makefile | 11 +++ > docs/devel/testing.rst |

Re: [Qemu-devel] [PATCH v2 3/7] s390x/tcg: properly implement the TOD

2018-06-20 Thread David Hildenbrand
On 20.06.2018 21:33, Richard Henderson wrote: > On 06/20/2018 12:08 AM, David Hildenbrand wrote: >> +/* Converts ns to s390's clock format */ >> +static inline uint64_t time2tod(uint64_t ns) >> +{ >> +return (ns << 9) / 125; >> +} >> + >> +/* Converts s390's clock format to ns */ >> +static

Re: [Qemu-devel] [RFC PATCH 3/5] .travis.yml: add gcovr summary for GCOV build

2018-06-20 Thread Philippe Mathieu-Daudé
On 06/20/2018 10:20 AM, Alex Bennée wrote: > This gives a more useful summary, sorted by descending % coverage, > after the tests have run. The final numbers will give an idea if our > coverage is getting better or worse. > > As quite a lot of lines don't get covered at all we filter out all the

Re: [Qemu-devel] regression: sata cdrom boot broken

2018-06-20 Thread John Snow
On 06/20/2018 08:18 AM, Paolo Bonzini wrote: > On 20/06/2018 13:07, Gerd Hoffmann wrote: >> Hi, >> >> $subject says all. Noticed while testing the upcoming seabios update. >> Reproducer: >> >> qemu-system-x86_64 -M q35 -m 4G -cdrom >> Fedora-Workstation-Live-x86_64-28-1.1.iso >> >>

[Qemu-devel] [PATCH v2] postcopy: drop ram_pages parameter from postcopy_ram_incoming_init()

2018-06-20 Thread David Hildenbrand
Not needed. Don't expose last_ram_page(). Signed-off-by: David Hildenbrand --- v1 -> v2: - Make "last_ram_page" static exec.c | 2 +- include/exec/ram_addr.h | 1 - migration/postcopy-ram.c | 4 ++-- migration/postcopy-ram.h | 2 +- migration/ram.c | 4 +--- 5

Re: [Qemu-devel] [RFC PATCH 2/5] .gitignore: add .gcov files

2018-06-20 Thread Philippe Mathieu-Daudé
On 06/20/2018 10:20 AM, Alex Bennée wrote: > These are temporary files generated on gcov runs and shouldn't be > included in the source tree. > > Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > --- > .gitignore | 1 + > 1 file changed, 1

Re: [Qemu-devel] [RFC PATCH 1/5] build-system: remove per-test GCOV reporting

2018-06-20 Thread Philippe Mathieu-Daudé
On 06/20/2018 10:20 AM, Alex Bennée wrote: > I'm not entirely sure who's using this information and certainly in a > CI environment it just washes over as additional noise. Later patches > will provide new reporting options so a user who wants to analyse > individual tests will be able to use that

Re: [Qemu-devel] [PATCH v1] postcopy: drop ram_pages parameter from postcopy_ram_incoming_init()

2018-06-20 Thread no-reply
Hi, This series failed build test on s390x host. Please find the details below. Type: series Message-id: 20180620152241.15772-1-da...@redhat.com Subject: [Qemu-devel] [PATCH v1] postcopy: drop ram_pages parameter from postcopy_ram_incoming_init() === TEST SCRIPT BEGIN === #!/bin/bash # Testing

  1   2   3   4   5   >