Re: [Qemu-devel] AVX support for TCG

2018-12-30 Thread Richard Henderson
On 12/31/18 7:51 AM, Nick Renieris wrote: > The PS4's APU doesn't support AVX2 or AVX-512 so I'd be fine if I > didn't have enough time to implement them. Fair enough. A goal like this is a good thing. >> The tcg-op-gvec.h infrastructure allows for the different modes that avx+mmx >> allows: >>

Re: [Qemu-devel] AVX support for TCG

2018-12-30 Thread Nick Renieris
Στις Σάβ, 29 Δεκ 2018 στις 10:24 μ.μ., ο/η Richard Henderson έγραψε: > I did have a beginner in mind when guessing 4 months. Don't take that as a > fully speced out answer, but it may well be that full avx2 support cannot be > done within the 3 months of gsoc. I would certainly expect avx512 to

Re: [Qemu-devel] [PATCH v7] qemu-img info lists bitmap directory entries

2018-12-30 Thread Andrey Shinkevich
Ping / Note Dear colleagues, Kindly remind you to complete reviewing of this simple series. Happy New Year! On 13/12/2018 13:59, Andrey Shinkevich wrote: > In the 'Format specific information' section of the 'qemu-img info' > command output, the supplemental information about existing QCOW2 > b

[Qemu-devel] [PATCH v5 6/6] iotests: 030 with block-stream discard

2018-12-30 Thread Andrey Shinkevich
The classes that set tests for the block-stream command with discard option on are inherited from the existent classes in the 030 file. Some QMP commands do not have the optional 'discard' argument because the WRITE permission is not being granted when the filter is inserted. For instance, it is tr

[Qemu-devel] [PATCH v5 1/6] Stream block job involves copy-on-read filter driver

2018-12-30 Thread Andrey Shinkevich
The copy-on-read filter is applied to block-stream operation. It is necessary for further block discard option. Signed-off-by: Andrey Shinkevich --- block/stream.c | 90 -- 1 file changed, 88 insertions(+), 2 deletions(-) diff --git a/bloc

[Qemu-devel] [PATCH v5 2/6] Discard blocks while copy-on-read

2018-12-30 Thread Andrey Shinkevich
Discards the block duplicated in an intermediate backing file after the block have been copied into the active layer during QMP block-stream operation. It saves the disk space while merging external snapshots. Signed-off-by: Andrey Shinkevich --- block/stream.c | 207

[Qemu-devel] [PATCH v5 3/6] The discard flag for block stream operation

2018-12-30 Thread Andrey Shinkevich
Adding a parameter to QMP block-stream command to allow discarding blocks in the backing chain while blocks are being copied to the active layer. Signed-off-by: Andrey Shinkevich --- block/copy-on-read.c | 24 block/stream.c| 3 +-- blockdev.c

[Qemu-devel] [PATCH v5 5/6] iotests: prepare 030 for graph change

2018-12-30 Thread Andrey Shinkevich
The discard option for block-stream command requires insertion of the filter to write into the backing chain. In that case, the job will not resume by device name. So, the node name is specified. Signed-off-by: Andrey Shinkevich --- tests/qemu-iotests/030 | 20 1 file change

[Qemu-devel] [PATCH v5 4/6] iotests: allow resume_drive by node name

2018-12-30 Thread Andrey Shinkevich
After node graph changes, we may not be able to resume_drive by device name (backing files are not recursively searched). So, lets allow to resume by node-name. Set constant name for breakpoints, to avoid introducing extra parameters. Signed-off-by: Vladimir Sementsov-Ogievskiy Signed-off-by: And

[Qemu-devel] [PATCH v5 0/6] Discrad blocks during block-stream operation

2018-12-30 Thread Andrey Shinkevich
Dear collegues, The given feature discards blocks with copy-on-read operation while the streaming process runs. Adding the 'discard' argument to the QMP block-stream command allows dropping a block in the backing chain after it has been copied to the active layer. That will elude the block duplica

Re: [Qemu-devel] [PATCH 1/5 v2] RISC-V: Add 32-bit gdb xml files.

2018-12-30 Thread Jim Wilson
On Sat, Dec 29, 2018 at 2:20 PM Richard Henderson wrote: > On 12/29/18 9:07 AM, Jim Wilson wrote: > Don't the csr's vary between priv-1.9.1 and priv-1.10? There are a few csr's that disappear in 1.10, but there is no known hardware that implements them. There are a few csr's new in 1.10, but I d

Re: [Qemu-devel] [PATCH 3/5 v2] RISC-V: Map gdb CSR reg numbers to hw reg numbers.

2018-12-30 Thread Jim Wilson
On Sat, Dec 29, 2018 at 2:23 PM Richard Henderson wrote: > On 12/29/18 9:09 AM, Jim Wilson wrote: > > +int csr_register_map[] = { > > static const? If I add static const here, then I get a build error if this patch is applied to the tree but the following patch #5 that uses the variable is not ap

[Qemu-devel] [PATCH] qemu-io: Reinitialize optind correctly before parsing inner command.

2018-12-30 Thread Richard W.M. Jones
checkpatch says: WARNING: architecture specific defines should be avoided #60: FILE: qemu-io-cmds.c:117: +#ifdef __GNU_LIBRARY__ However I don't know a better way to fix this. Rich.

[Qemu-devel] [PATCH] qemu-io: Reinitialize optind correctly before parsing inner command.

2018-12-30 Thread Richard W.M. Jones
On FreeBSD 11.2: $ ./qemu-io -f raw -c "aio_write 0 512" "nbd:localhost:10809" Parsing error: non-numeric argument, or extraneous/unrecognized suffix -- aio_write After main option parsing, we reinitialize optind so we can parse each command. The error happens when parsing the aio_write com

Re: [Qemu-devel] d_off field in struct dirent and 32-on-64 emulation

2018-12-30 Thread Peter Maydell
On Sat, 29 Dec 2018 at 16:49, Andy Lutomirski wrote: > > Could you use a prctl to set whether you were running in 32 or 64 bit > > mode? Or do you change which kind of task you're emulating too often > > to make this a good idea? QEMU's linux-user mode always only runs the single process, which