Re: [Qemu-devel] [PULL 1/6] audio/hda: create millisecond timers that handle IO

2018-06-26 Thread Gerd Hoffmann
> > Signed-off-by: Martin Schrodt > > Signed-off-by: Gerd Hoffmann > > Message-id: 20180622111200.30561-2-kra...@redhat.com > > Message-id: 20171015184033.2951-3-mar...@schrodt.org > > > > [ kraxel: keep old code for compatibility with older qemu versions, > > add property to switch co

Re: [Qemu-devel] [virtio-dev] Re: [PATCH] qemu: Introduce VIRTIO_NET_F_STANDBY feature bit to virtio_net

2018-06-26 Thread Samudrala, Sridhar
On 6/26/2018 11:21 PM, Siwei Liu wrote: On Tue, Jun 26, 2018 at 5:29 PM, Michael S. Tsirkin wrote: On Tue, Jun 26, 2018 at 04:38:26PM -0700, Siwei Liu wrote: On Mon, Jun 25, 2018 at 6:50 PM, Michael S. Tsirkin wrote: On Mon, Jun 25, 2018 at 10:54:09AM -0700, Samudrala, Sridhar wrote: Might

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/5] rework the ICS classes inheritance tree

2018-06-26 Thread Cédric Le Goater
On 06/27/2018 02:14 AM, David Gibson wrote: > On Tue, Jun 26, 2018 at 06:37:12PM +0200, Cédric Le Goater wrote: > 1;5202;0c> On 06/26/2018 03:27 PM, Greg Kurz wrote: >>> On Mon, 25 Jun 2018 11:17:13 +0200 >>> Cédric Le Goater wrote: >>> Hello, >>> >>> Hello, >>> >>> Sorry I didn't manage

Re: [Qemu-devel] [virtio-dev] Re: [PATCH] qemu: Introduce VIRTIO_NET_F_STANDBY feature bit to virtio_net

2018-06-26 Thread Siwei Liu
On Tue, Jun 26, 2018 at 5:29 PM, Michael S. Tsirkin wrote: > On Tue, Jun 26, 2018 at 04:38:26PM -0700, Siwei Liu wrote: >> On Mon, Jun 25, 2018 at 6:50 PM, Michael S. Tsirkin wrote: >> > On Mon, Jun 25, 2018 at 10:54:09AM -0700, Samudrala, Sridhar wrote: >> >> > > > > Might not neccessarily be so

Re: [Qemu-devel] [PATCH v5 24/46] hw/microblaze: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/microblaze

Re: [Qemu-devel] [PATCH v5 22/46] hw/alpha: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/alpha/typh

Re: [Qemu-devel] [PATCH v5 18/46] hw/sparc: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/sparc/leon

Re: [Qemu-devel] [virtio-dev] [PATCH] Add virtio gpu device specification.

2018-06-26 Thread Gerd Hoffmann
Hi, > > > > > > > > > > https://www.kraxel.org/virtio/virtio-v1.0-cs03-virtio-gpu.html#x1-287 > Is there a chance you could rebase and post? > This is used widely, I think we shoould have it in 1.1 > if at all possible. https://www.kraxel.org/virtio/virtio-v1.0-cs04-virtio-gpu.html#x1-3

Re: [Qemu-devel] [PATCH v5 15/46] hw/misc: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/misc/auxbu

Re: [Qemu-devel] [PATCH v5 13/46] hw/block: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/block/m25p

Re: [Qemu-devel] [PATCH v5 10/46] hw/smbios: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/smbios/smb

Re: [Qemu-devel] [PATCH v5 09/46] hw/scsi: Use the IEC binary prefix definitions

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:42 AM, Philippe Mathieu-Daudé wrote: > It eases code review, unit is explicit. > > Patch generated using: > > $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ > > and modified manually. > > Signed-off-by: Philippe Mathieu-Daudé > --- > hw/scsi/scsi-

Re: [Qemu-devel] [PATCH v5 06/46] hw: Directly use "qemu/units.h" instead of "qemu/cutils.h"

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:41 AM, Philippe Mathieu-Daudé wrote: > These files don't use anything exposed by "qemu/cutils.h", > simplify preprocessing including directly "qemu/units.h". > > Signed-off-by: Philippe Mathieu-Daudé > Acked-by: David Gibson (ppc parts) > --- > hw/arm/msf2-soc.c | 2 +- > hw/a

Re: [Qemu-devel] [RFC PATCH 1/2] block: allow blockdev-backup from any source

2018-06-26 Thread John Snow
On 06/26/2018 09:38 PM, Eric Blake wrote: > On 06/26/2018 05:22 PM, John Snow wrote: >> In the case of image fleecing, the node we choose as the source >> for a blockdev-backup is going to be both a root node AND the >> backing node for the exported image. It does not qualify as a root >> image

Re: [Qemu-devel] [PATCH v5 05/46] hw: Use IEC binary prefix definitions from "qemu/units.h"

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:41 AM, Philippe Mathieu-Daudé wrote: > Code change produced with: > > $ git ls-files | egrep '\.[ch]$' | \ > xargs sed -i -e 's/\(\W[KMGTPE]\)_BYTE/\1iB/g' > > Suggested-by: Stefan Weil > Signed-off-by: Philippe Mathieu-Daudé > Acked-by: David Gibson (ppc parts) > --- >

Re: [Qemu-devel] [RFC PATCH 2/2] iotests: add 222 to test basic fleecing

2018-06-26 Thread John Snow
On 06/26/2018 09:49 PM, Eric Blake wrote: > On 06/26/2018 05:22 PM, John Snow wrote: >> Signed-off-by: John Snow >> --- >>   tests/qemu-iotests/222   | 121 Probably would have helped to include 222.out, though. >> +++ >>   tests/qemu-iotests/group |

Re: [Qemu-devel] [PATCH v5 03/46] x86/cpu: Use definitions from "qemu/units.h"

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:41 AM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > Acked-by: Eduardo Habkost > --- > target/i386/cpu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH v5 01/46] include: Add IEC binary prefixes in "qemu/units.h"

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:41 AM, Philippe Mathieu-Daudé wrote: > Loosely based on 076b35b5a56. > > Suggested-by: Stefan Weil > Signed-off-by: Philippe Mathieu-Daudé > --- > include/qemu/units.h | 20 > 1 file changed, 20 insertions(+) > create mode 100644 include/qemu/units.h Revi

Re: [Qemu-devel] [PATCH v5 02/46] vdi: Use definitions from "qemu/units.h"

2018-06-26 Thread Richard Henderson
On 06/25/2018 05:41 AM, Philippe Mathieu-Daudé wrote: > Signed-off-by: Philippe Mathieu-Daudé > Reviewed-by: Stefan Weil > --- > block/vdi.c | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-) Reviewed-by: Richard Henderson r~

Re: [Qemu-devel] [PATCH v3 5/5] tests/tcg/aarch64: userspace system register test

2018-06-26 Thread Richard Henderson
On 06/25/2018 09:00 AM, Alex Bennée wrote: > This tests a bunch of registers that the kernel allows userspace to > read including the CPUID registers. > > Signed-off-by: Alex Bennée > --- > tests/tcg/aarch64/Makefile.target | 2 +- > tests/tcg/aarch64/sysregs.c | 99 ++

Re: [Qemu-devel] [PATCH v3 4/5] linux-user/elfload: enable HWCAP_CPUID for AArch64

2018-06-26 Thread Richard Henderson
On 06/25/2018 09:00 AM, Alex Bennée wrote: > Userspace programs should (in theory) query the ELF HWCAP before > probing these registers. Now we have implemented them all make it > public. > > Signed-off-by: Alex Bennée > --- > linux-user/elfload.c | 1 + > 1 file changed, 1 insertion(+) Reviewe

Re: [Qemu-devel] [PATCH v3 05/49] qapi: leave the ifcond attribute undefined until check()

2018-06-26 Thread Markus Armbruster
Marc-André Lureau writes: > Hi > > On Tue, Jun 19, 2018 at 11:06 AM, Markus Armbruster wrote: >> Marc-André Lureau writes: >> >>> We commonly initialize attributes to None in .init(), then set their >>> real value in .check(). Accessing the attribute before .check() >>> yields None. If we're

Re: [Qemu-devel] [PATCH v3 2/5] target/arm: relax permission checks for HWCAP_CPUID registers

2018-06-26 Thread Richard Henderson
On 06/25/2018 09:00 AM, Alex Bennée wrote: > +#ifdef CONFIG_USER_ONLY > +/* Some AArch64 CPU ID/feature are exported to userspace > + * by the kernel (see HWCAP_CPUID) */ > +if (r->opc0 == 3 && r->crn == 0 && > +(r->crm == 0 || > +

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 --g

Re: [Qemu-devel] [PATCH v3 1/5] target/arm: support reading of CNT[VCT|FRQ]_EL0 from user-space

2018-06-26 Thread Richard Henderson
On 06/25/2018 09:00 AM, Alex Bennée wrote: > Since kernel commit a86bd139f2 (arm64: arch_timer: Enable CNTVCT_EL0 > trap..) user-space has been able to read these system registers. As we > can't use QEMUTimer's in linux-user mode we just directly call > cpu_get_clock(). > > Signed-off-by: Alex Ben

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 --g

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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

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

2018-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- v6: Rearrange the loops. The compiler does well with this form and hopefully they are also easier to read. --- target/arm/helper.h| 5 ++ target/arm/translate-sve.c | 18 ++ target/arm/vec_helper.c| 124

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

2018-06-26 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. Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Fix aa32 index form. --- target/arm/cpu.h |

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 v6 26/35] target/arm: Implement SVE floating-point unary operations

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 --gi

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

2018-06-26 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 v6 21/35] target/arm: Implement SVE FP Compare with Zero Group

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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.de

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

2018-06-26 Thread Richard Henderson
Enable ARM_FEATURE_SVE for the generic "max" cpu. Tested-by: Alex Bennée Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Set ARM_HWCAP_A64_SVE. --- linux-user/elfload.c | 1 + target/arm/cpu.c | 7 +++ target/arm/cpu64.c | 1 + 3 files changed, 9 insertions(+) d

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 +++

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

2018-06-26 Thread Richard Henderson
For aa64 advsimd, we had been passing the pre-indexed vector. However, sve applies the index to each 128-bit segment, so we need to pass in the index separately. For aa32 advsimd, the fp32 operation always has index 0, but we failed to interpret the fp16 index correctly. Signed-off-by: Richard He

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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(

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Squish fz16 a-la vfp_fcvt_f16_to_f32 --- target/arm/helper-sve.h| 13 + target/arm/sve_helper.c| 55 ++ target/arm/translate-sve.c | 30 + target/arm/sve.d

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Fix comment typos --- 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/ta

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 ++

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 |

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 -

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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(+) di

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

2018-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- v6: * Finish esz == msz && u==1 decode in sve.decode. * Remove duplicate decode in trans_ST1_zprz. * Add xs=2 comment. * Reformat tables to leave room for ff helpers. --- target/arm/helper-sve.h| 67 + target/arm/sve_helpe

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/helper-sve.h| 67 + target/arm/sve_helper.c| 88 ++ target/arm/translate-sve.c | 40 - 3 files changed, 193 insertions(+), 2 deletion

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 +

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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, 11

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 65da3e633f

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- target/arm/translate-sve.c | 85 ++ target/arm/sve.decode | 11 + 2 files changed, 70 insertions(+), 26 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: * Rewrite to the usual two nested loops, * Add comment about XS=2. --- target/arm/helper-sve.h| 41 + target/arm/sve_helper.c| 61 +++ target/arm/translate-sve.c | 75 ++

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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, 18

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Fix shift of data in 6 byte store. --- 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/

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Alex Bennée Reviewed-by: Peter Maydell 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

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 +++

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson --- v6: Fix typo in comment. --- target/arm/helper-sve.h| 5 +++ target/arm/sve_helper.c| 41 + target/arm/translate-sve.c | 62 ++ target/arm/sve.decode | 5 ++

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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 b25fe96b7

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

2018-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- v6: * Remove cold attribute from record_fault, add unlikely marker to the if that protects its call, which seems to be enough to prevent the function being inlined. * Fix the set of bits masked by record_fault. --- target/arm/helper-sve.h| 40

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

2018-06-26 Thread Richard Henderson
Signed-off-by: Richard Henderson --- v6: Add some decode commentary. --- target/arm/helper-sve.h| 16 target/arm/sve_helper.c| 158 + target/arm/translate-sve.c | 49 target/arm/sve.decode | 18 + 4 files changed, 241 inse

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

2018-06-26 Thread Richard Henderson
Reviewed-by: Peter Maydell 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

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

2018-06-26 Thread Richard Henderson
This is the remainder of the SVE enablement patches, with an extra bonus patch to enable ARMv8.2-DotProd. V6 updates based on review. Patches with changes: 0002-target-arm-Implement-SVE-Contiguous-Load-first-fa.patch 0007-target-arm-Implement-SVE-FP-Multiply-Add-Group.patch 0009-target-arm-

[Qemu-devel] [Bug 1767200] Re: Kernel Panic Unable to mount root fs on unknown-block(31, 3)

2018-06-26 Thread Launchpad Bug Tracker
[Expired for QEMU because there has been no activity for 60 days.] ** Changed in: qemu Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1767200 Title: Kernel Pani

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v2 0/4] Use of unique identifier for pairing virtio and passthrough devices...

2018-06-26 Thread Venu Busireddy
On 2018-06-27 07:06:42 +0300, Michael S. Tsirkin wrote: > On Tue, Jun 26, 2018 at 10:49:30PM -0500, Venu Busireddy wrote: > > The patch set "Enable virtio_net to act as a standby for a passthru > > device" [1] deals with live migration of guests that use passthrough > > devices. However, that schem

Re: [Qemu-devel] [virtio-dev] Re: [PATCH v2 3/4] Add "Group Identifier" support to Red Hat PCI bridge.

2018-06-26 Thread Venu Busireddy
On 2018-06-27 07:02:36 +0300, Michael S. Tsirkin wrote: > On Tue, Jun 26, 2018 at 10:49:33PM -0500, Venu Busireddy wrote: > > Add the "Vendor-Specific" capability to the Red Hat PCI bridge device > > "pci-bridge", to contain the "Group Identifier" (UUID) that will be > > used to pair a virtio devic

Re: [Qemu-devel] [PATCH v2 0/4] Use of unique identifier for pairing virtio and passthrough devices...

2018-06-26 Thread Michael S. Tsirkin
On Tue, Jun 26, 2018 at 10:49:30PM -0500, Venu Busireddy wrote: > The patch set "Enable virtio_net to act as a standby for a passthru > device" [1] deals with live migration of guests that use passthrough > devices. However, that scheme uses the MAC address for pairing > the virtio device and the p

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

2018-06-26 Thread Richard Henderson
On 06/26/2018 03:44 AM, Peter Maydell wrote: > A comment to the effect that the SVE fp-to-fp conversion > routines always use IEEE format halfprec (ie ignore FPCR.AHP) > would be helpful. Ok. > Are you sure we have the FPCR.FZ16 handling right here? That > is, do we need the same "use the not-fp1

Re: [Qemu-devel] [PATCH v2 3/4] Add "Group Identifier" support to Red Hat PCI bridge.

2018-06-26 Thread Michael S. Tsirkin
On Tue, Jun 26, 2018 at 10:49:33PM -0500, Venu Busireddy wrote: > Add the "Vendor-Specific" capability to the Red Hat PCI bridge device > "pci-bridge", to contain the "Group Identifier" (UUID) that will be > used to pair a virtio device with the passthrough device attached to > that bridge. > > Th

[Qemu-devel] [PATCH 1/2] qcow2: Remove dead check on !ret

2018-06-26 Thread Fam Zheng
In the beginning of the function, we initialize the local variable to 0, and in the body of the function, we check the assigned values and exit the loop immediately. So here it can never be non-zero. Reported-by: Kevin Wolf Signed-off-by: Fam Zheng --- block/qcow2.c | 2 +- 1 file changed, 1 in

[Qemu-devel] [PATCH 0/2] block: Two copy offloading corrections

2018-06-26 Thread Fam Zheng
Fam Zheng (2): qcow2: Remove dead check on !ret block: Move request tracking to children in copy offloading block/io.c| 59 --- block/qcow2.c | 2 +- 2 files changed, 29 insertions(+), 32 deletions(-) -- 2.17.1

[Qemu-devel] [PATCH 2/2] block: Move request tracking to children in copy offloading

2018-06-26 Thread Fam Zheng
in_flight and tracked requests need to be tracked in every layer during recursion. For now the only user is qemu-img convert where overlapping requests and IOThreads don't exist, therefore this change doesn't make much difference form user point of view, but it is incorrect as part of the API. Fix

[Qemu-devel] [PATCH v2 0/4] Use of unique identifier for pairing virtio and passthrough devices...

2018-06-26 Thread Venu Busireddy
The patch set "Enable virtio_net to act as a standby for a passthru device" [1] deals with live migration of guests that use passthrough devices. However, that scheme uses the MAC address for pairing the virtio device and the passthrough device. The thread "netvsc: refactor notifier/event handling

[Qemu-devel] [PATCH v2 4/4] Add "Group Identifier" support to Red Hat PCI Express bridge.

2018-06-26 Thread Venu Busireddy
Add a new bridge device "pcie-downstream" with a Vendor ID of PCI_VENDOR_ID_REDHAT and Device ID of PCI_DEVICE_ID_REDHAT_DOWNSTREAM. Also add the "Vendor-Specific" capability to the bridge to contain the "Group Identifier" (UUID) that will be used to pair a virtio device with the passthrough device

[Qemu-devel] [PATCH v2 2/4] Add "Group Identifier" support to virtio devices.

2018-06-26 Thread Venu Busireddy
Use the virtio PCI capability "VIRTIO_PCI_CAP_GROUP_ID_CFG" to store the "Group Identifier" (UUID) specified via the command line option "uuid" for the virtio device. The capability will be present in the virtio device's configuration space iff the "uuid" option is specified. Group Identifier is u

[Qemu-devel] [PATCH v2 3/4] Add "Group Identifier" support to Red Hat PCI bridge.

2018-06-26 Thread Venu Busireddy
Add the "Vendor-Specific" capability to the Red Hat PCI bridge device "pci-bridge", to contain the "Group Identifier" (UUID) that will be used to pair a virtio device with the passthrough device attached to that bridge. This capability is added to the bridge iff the "uuid" option is specified for

[Qemu-devel] [PATCH v2 virtio 1/1] Add "Group Identifier" to virtio PCI capabilities.

2018-06-26 Thread Venu Busireddy
Add VIRTIO_PCI_CAP_GROUP_ID_CFG (Group Identifier) capability to the virtio PCI capabilities to allow for the grouping of devices. Signed-off-by: Venu Busireddy --- content.tex | 36 1 file changed, 36 insertions(+) diff --git a/content.tex b/content.tex ind

[Qemu-devel] [PATCH v2 1/4] Add a true or false option to the DEFINE_PROP_UUID macro.

2018-06-26 Thread Venu Busireddy
It may not always be desirable to have a random UUID stuffed into the '_field' member. Add a new boolean option '_default' that will allow the caller to specify if a random UUID needs be generated or not. Also modified the instance where this macro is used. Signed-off-by: Venu Busireddy --- hw/

Re: [Qemu-devel] [PATCH] ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge

2018-06-26 Thread Michael S. Tsirkin
On Wed, Jun 27, 2018 at 11:38:17AM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2018-06-27 at 03:35 +0300, Michael S. Tsirkin wrote: > > > > > + > > > +/* Extract field fname from val */ > > > +#define GETFIELD(fname, val)\ > > > +(((val) & fname##_MASK) >> fname##_LS

Re: [Qemu-devel] [PATCH] translate-all: fix locking of TBs whose two pages share the same physical page

2018-06-26 Thread Richard Henderson
On 06/25/2018 09:31 AM, Emilio G. Cota wrote: > +} else if (page1 == page2) { > +page_lock(p1); > +if (ret_p2) { > +*ret_p2 = p1; I think you should set NULL here... > @@ -1623,7 +1641,7 @@ tb_link_page(TranslationBlock *tb, tb_page_addr_t > phys_pc, > tb

Re: [Qemu-devel] [PATCH 3/3] i.mx7d: Change IRQ number type from hwaddr to int

2018-06-26 Thread Philippe Mathieu-Daudé
On 06/26/2018 07:00 PM, Jean-Christophe Dubois wrote: > The qdev_get_gpio_in() function accept an int as second parameter. > > Signed-off-by: Jean-Christophe Dubois Reviewed-by: Philippe Mathieu-Daudé > --- > hw/arm/fsl-imx7.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >

Re: [Qemu-devel] [PATCH 4/6] docker: Use os.environ.items() instead of .iteritems()

2018-06-26 Thread Philippe Mathieu-Daudé
On 06/26/2018 11:14 PM, Eduardo Habkost wrote: > Mapping.iteritems() doesn't exist in Python 3. > > Note that Mapping.items() exists in both Python 3 and Python 2, > but it returns a list (and not an iterator) in Python 2. The > existing code will work on both cases, though. > > Signed-off-by: E

[Qemu-devel] [PATCH 6/6] docker: Open dockerfiles in text mode

2018-06-26 Thread Eduardo Habkost
Instead of treating dockerfile contents as byte sequences, always open dockerfiles in text mode and treat it as text. This is not strictly required to make the script compatible with Python 3, but it's a simpler and safer way than opening dockerfiles in binary mode and decoding the data data later

[Qemu-devel] [PATCH 4/6] docker: Use os.environ.items() instead of .iteritems()

2018-06-26 Thread Eduardo Habkost
Mapping.iteritems() doesn't exist in Python 3. Note that Mapping.items() exists in both Python 3 and Python 2, but it returns a list (and not an iterator) in Python 2. The existing code will work on both cases, though. Signed-off-by: Eduardo Habkost --- tests/docker/docker.py | 2 +- 1 file ch

[Qemu-devel] [PATCH 3/6] docker: Add type annotations

2018-06-26 Thread Eduardo Habkost
Add type annotations that indicate how the code works today, to make the conversion to Python 3 easier and safer. With these type annotations, "mypy -2" is not reporting any issues, but "mypy" in Python 3 mode reports a few problems: tests/docker/docker.py:233: error: Argument 1 to "_text_checksu

[Qemu-devel] [PATCH 5/6] docker: Make _get_so_libs() work on Python 3

2018-06-26 Thread Eduardo Habkost
The "ldd" output is a byte sequence, not a string. Use bytes literals while handling the output, and use os.fsdecode() on the resulting file paths before returning. Signed-off-by: Eduardo Habkost --- tests/docker/docker.py | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-)

[Qemu-devel] [PATCH 1/6] docker: Use BytesIO instead of StringIO

2018-06-26 Thread Eduardo Habkost
The file passed as argument to TarFile.addfile() must be a binary file, so BytesIO is more appropriate than StringIO. This is necessary to make the code work on Python 3. Signed-off-by: Eduardo Habkost --- tests/docker/docker.py | 15 ++- 1 file changed, 6 insertions(+), 9 deletions

[Qemu-devel] [PATCH 2/6] docker: Always return int on run()

2018-06-26 Thread Eduardo Habkost
We'll add type annotations to the run() methods, so add 'return' statements to all the functions so the type checker won't complain. Signed-off-by: Eduardo Habkost --- tests/docker/docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/docker/docker.py b/tests/dock

[Qemu-devel] [PATCH 0/6] docker: Port to Python 3

2018-06-26 Thread Eduardo Habkost
This series makes tests/docker/docker.py compatible with both Python 2 and Python 3, and adds type annotation to make maintenance easier in the future. A note about dockerfile encoding One decision I made while working on this was to open dockerfiles in text mode

Re: [Qemu-devel] [RFC PATCH 2/2] iotests: add 222 to test basic fleecing

2018-06-26 Thread Eric Blake
On 06/26/2018 05:22 PM, John Snow wrote: Signed-off-by: John Snow --- tests/qemu-iotests/222 | 121 +++ tests/qemu-iotests/group | 1 + 2 files changed, 122 insertions(+) create mode 100644 tests/qemu-iotests/222 diff --git a/tests/qemu-iote

Re: [Qemu-devel] [PATCH] ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge

2018-06-26 Thread Benjamin Herrenschmidt
On Wed, 2018-06-27 at 03:35 +0300, Michael S. Tsirkin wrote: > > > + > > +/* Extract field fname from val */ > > +#define GETFIELD(fname, val)\ > > +(((val) & fname##_MASK) >> fname##_LSH) > > + > > +/* Set field fname of oval to fval > > + * NOTE: oval isn't modified,

Re: [Qemu-devel] [RFC PATCH 1/2] block: allow blockdev-backup from any source

2018-06-26 Thread Eric Blake
On 06/26/2018 05:22 PM, John Snow wrote: In the case of image fleecing, the node we choose as the source for a blockdev-backup is going to be both a root node AND the backing node for the exported image. It does not qualify as a root image in this case. Loosen the restriction. Did we regress (

Re: [Qemu-devel] [PATCH] ppc/pnv: fix pnv_core_realize() error handling

2018-06-26 Thread David Gibson
On Tue, Jun 26, 2018 at 04:22:14PM +0200, Cédric Le Goater wrote: > commit d35aefa9ae15 ("ppc/pnv: introduce a new intc_create() operation > to the chip model") changed the object link in the pnv_core_realize() > routine but a return was forgotten in case of error, which can lead to > more problems

Re: [Qemu-devel] [PATCH] ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge

2018-06-26 Thread Michael S. Tsirkin
On Tue, Jun 26, 2018 at 03:59:28PM +0200, Cédric Le Goater wrote: > diff --git a/include/hw/pci-host/pnv_phb3_regs.h > b/include/hw/pci-host/pnv_phb3_regs.h > new file mode 100644 > index ..a1672726b908 > --- /dev/null > +++ b/include/hw/pci-host/pnv_phb3_regs.h > @@ -0,0 +1,510 @@ > +

Re: [Qemu-devel] [Qemu-ppc] [PATCH v2 0/5] rework the ICS classes inheritance tree

2018-06-26 Thread David Gibson
On Tue, Jun 26, 2018 at 06:37:12PM +0200, Cédric Le Goater wrote: 1;5202;0c> On 06/26/2018 03:27 PM, Greg Kurz wrote: > > On Mon, 25 Jun 2018 11:17:13 +0200 > > Cédric Le Goater wrote: > > > >> Hello, > >> > > > > Hello, > > > > Sorry I didn't manage to look at this before it got merged :) > >

Re: [Qemu-devel] [virtio-dev] Re: [PATCH] qemu: Introduce VIRTIO_NET_F_STANDBY feature bit to virtio_net

2018-06-26 Thread Michael S. Tsirkin
On Tue, Jun 26, 2018 at 04:38:26PM -0700, Siwei Liu wrote: > On Mon, Jun 25, 2018 at 6:50 PM, Michael S. Tsirkin wrote: > > On Mon, Jun 25, 2018 at 10:54:09AM -0700, Samudrala, Sridhar wrote: > >> > > > > Might not neccessarily be something wrong, but it's very limited to > >> > > > > prohibit the

Re: [Qemu-devel] [virtio-dev] Re: [PATCH] qemu: Introduce VIRTIO_NET_F_STANDBY feature bit to virtio_net

2018-06-26 Thread Siwei Liu
On Mon, Jun 25, 2018 at 6:50 PM, Michael S. Tsirkin wrote: > On Mon, Jun 25, 2018 at 10:54:09AM -0700, Samudrala, Sridhar wrote: >> > > > > Might not neccessarily be something wrong, but it's very limited to >> > > > > prohibit the MAC of VF from changing when enslaved by failover. >> > > > You me

Re: [Qemu-devel] [PATCH v2 13/22] target/openrisc: Fix cpu_mmu_index

2018-06-26 Thread Richard Henderson
On 06/26/2018 03:07 PM, Stafford Horne wrote: > Hello, > > I think I found out something. > > in: target/openrisc/sys_helper.c:92 > > When we write to `env->tlb.dtlb[idx].tr` in helper_mtspr(): > 93 case TO_SPR(1, 640) ... TO_SPR(1, 640 + TLB_SIZE - 1): > /* DTLBW0TR 0-127 */ > 94

[Qemu-devel] [RFC PATCH 2/2] iotests: add 222 to test basic fleecing

2018-06-26 Thread John Snow
Signed-off-by: John Snow --- tests/qemu-iotests/222 | 121 +++ tests/qemu-iotests/group | 1 + 2 files changed, 122 insertions(+) create mode 100644 tests/qemu-iotests/222 diff --git a/tests/qemu-iotests/222 b/tests/qemu-iotests/222 new file mode

[Qemu-devel] [RFC PATCH 0/2] iotests: fleecing test

2018-06-26 Thread John Snow
A simple, hastily-written example of image fleecing over NBD. John Snow (2): block: allow blockdev-backup from any source iotests: add 222 to test basic fleecing blockdev.c | 2 +- tests/qemu-iotests/222 | 121 +++ tests/qemu-iote

[Qemu-devel] [RFC PATCH 1/2] block: allow blockdev-backup from any source

2018-06-26 Thread John Snow
In the case of image fleecing, the node we choose as the source for a blockdev-backup is going to be both a root node AND the backing node for the exported image. It does not qualify as a root image in this case. Loosen the restriction. Signed-off-by: John Snow --- blockdev.c | 2 +- 1 file cha

Re: [Qemu-devel] [PATCH] ppc/pnv: Add model for Power8 PHB3 PCIe Host bridge

2018-06-26 Thread Benjamin Herrenschmidt
On Tue, 2018-06-26 at 17:57 +0200, Andrea Bolognani wrote: > On Tue, 2018-06-26 at 15:59 +0200, Cédric Le Goater wrote: > > This is a model of the PCIe host bridge found on Power8 chips, > > including PowerBus logic interface, IOMMU support, PCIe root complex, > > XICS MSI and LSI interrupt sources

Re: [Qemu-devel] [PATCH v2 13/22] target/openrisc: Fix cpu_mmu_index

2018-06-26 Thread Stafford Horne
Hello, I think I found out something. in: target/openrisc/sys_helper.c:92 When we write to `env->tlb.dtlb[idx].tr` in helper_mtspr(): 93 case TO_SPR(1, 640) ... TO_SPR(1, 640 + TLB_SIZE - 1): /* DTLBW0TR 0-127 */ 94 idx = spr - TO_SPR(1, 640); 95 env->tl

  1   2   3   4   5   >