[Qemu-devel] [PATCH v2 01/10] target/mips: Fix space-related format issues im msa_helper.c

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix space-related format issues reported by checkpatch in file msa_helper.c. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-2-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 28 +

[Qemu-devel] [PATCH v2 07/10] tests/tcg: target/mips: Move four tests to a better location

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Move tests for _Q. from "integer multiply" directory to "fixed-point multiply" directory, since they do not operate on integers, but on fixed point numbers. Signed-off-by: Aleksandar Markovic --- .../mips/user/ase/msa/{int-multiply => fixed-multiply}/test_msa_mul_q_h.

[Qemu-devel] [PATCH v2 09/10] tests/tcg: target/mips: Add README for MSA tests

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add README for MSA tests. This is just to explain how to run tests even without Makefile. Makefile will be provided later on. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1555699081-24577-6-git-send-email-aleksandar.marko...@rt-rk.com

[Qemu-devel] [PATCH v2 08/10] tests/tcg: target/mips: Add utility function reset_msa_registers()

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add function reset_msa_registers() and utilize it in each MSA test. This is needed to ensure independency of test results on the state of MSA registers before test execution. Signed-off-by: Aleksandar Markovic --- tests/tcg/mips/include/wrappers_msa.h

[Qemu-devel] [PATCH v2 10/10] tests/tcg: target/mips: Add tests for MSA FP max/min instructions

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add tests for MSA FP max/min instructions. This includes following instructions: * FMAX.W - float maximum (words) * FMAX.D - float maximum (doublewords) * FMAX_A.W - float maximum absolute (words) * FMAX_A.D - float maximum absolute (doublewords) * FMIN.W - fl

Re: [Qemu-devel] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 13:05, Kevin Wolf wrote: > Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 05.06.2019 20:11, Kevin Wolf wrote: >>> Am 05.06.2019 um 14:32 hat Vladimir Sementsov-Ogievskiy geschrieben: child_role job already has .stay_at_node=true, so on bdrv_replace_node

Re: [Qemu-devel] [PATCH v2 07/10] tests/tcg: target/mips: Move four tests to a better location

2019-06-06 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Thursday, June 6, 2019 2:24 PM > To: qemu-devel@nongnu.org > Cc: Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v2 07/10] tests/tcg: target/mips: Move four tests to a better > location > > From: Aleksandar Markovic > > Move tests for _Q. from "intege

Re: [Qemu-devel] [PATCH v2 08/10] tests/tcg: target/mips: Add utility function reset_msa_registers()

2019-06-06 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Thursday, June 6, 2019 2:24 PM > To: qemu-devel@nongnu.org > Cc: Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v2 08/10] tests/tcg: target/mips: Add utility function > reset_msa_registers() > > From: Aleksandar Markovic > > Add function reset_msa_re

Re: [Qemu-devel] [PATCH v2 10/10] tests/tcg: target/mips: Add tests for MSA FP max/min instructions

2019-06-06 Thread Aleksandar Rikalo
> From: Aleksandar Markovic > Sent: Thursday, June 6, 2019 2:24 PM > To: qemu-devel@nongnu.org > Cc: Aleksandar Markovic; Aleksandar Rikalo > Subject: [PATCH v2 10/10] tests/tcg: target/mips: Add tests for MSA FP > max/min instructions > > From: Aleksandar Markovic > > Add tests for MSA FP max/m

Re: [Qemu-devel] [PATCH 3/5] tricore: fix RRPW_INSERT instruction

2019-06-06 Thread Brenken, David (EFS-GH2)
Hi Bastian, > Hi David, > > On 6/5/19 8:11 AM, David Brenken wrote: > > From: David Brenken > > > > Signed-off-by: Andreas Konopik > > Signed-off-by: David Brenken > > Signed-off-by: Georg Hofstetter > > Signed-off-by: Robert Rasche > > Signed-off-by: Lars Biermanski > > > > --- > > targe

Re: [Qemu-devel] [PATCH 5/5] tricore: reset DisasContext before generating code

2019-06-06 Thread Hofstetter, Georg (EFS-GH2)
Hi Sebastian, in translate.c:gen_mtcr() code accesses hflags within the structure: if ((ctx->hflags & TRICORE_HFLAG_KUU) == TRICORE_HFLAG_SM) { /* since we're caching PSW make this a special case */ The code expects the HFLAG set for kernel mode in (i guess) preparation for supportin

Re: [Qemu-devel] [PATCH] riscv: virt: Correct pci "bus-range" encoding

2019-06-06 Thread Bin Meng
On Thu, May 30, 2019 at 11:36 AM Bin Meng wrote: > > Hi Alistair, > > On Thu, May 30, 2019 at 11:14 AM Alistair Francis > wrote: > > > > On Wed, May 29, 2019 at 1:52 AM Bin Meng wrote: > > > > > > The largest pci bus number should be calculated from ECAM size, > > > instead of its base address.

Re: [Qemu-devel] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Kevin Wolf
Am 06.06.2019 um 14:29 hat Vladimir Sementsov-Ogievskiy geschrieben: > 06.06.2019 13:05, Kevin Wolf wrote: > > Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: > >> 05.06.2019 20:11, Kevin Wolf wrote: > >>> Am 05.06.2019 um 14:32 hat Vladimir Sementsov-Ogievskiy geschrieben: > >

Re: [Qemu-devel] [PULL v3 00/17] virtio, pci, pc: cleanups, features

2019-06-06 Thread Peter Maydell
On Wed, 5 Jun 2019 at 21:00, Michael S. Tsirkin wrote: > > The following changes since commit 8c1ecb590497b0349c550607db923972b37f6963: > > Merge remote-tracking branch > 'remotes/stsquad/tags/pull-testing-next-280519-2' into staging (2019-05-28 > 17:38:32 +0100) > > are available in the Git r

Re: [Qemu-devel] QEMU/KVM migration backwards compatibility broken?

2019-06-06 Thread Roman Kagan
On Thu, Jun 06, 2019 at 01:09:56PM +0300, Liran Alon wrote: > First, machine-type express the set of vHW behaviour and properties that is > exposed to guest. > Therefore, machine-type shouldn’t change for a given guest lifetime > (including Live-Migrations). > Otherwise, guest will experience dif

Re: [Qemu-devel] [PATCH v4 4.5/6] qapi: Replace QAPIDoc._part by ._append_line, and rework comments

2019-06-06 Thread Kevin Wolf
Am 06.06.2019 um 14:01 hat Markus Armbruster geschrieben: > Signed-off-by: Markus Armbruster > --- > This is on top of the fixup I appended to my review of v4. I'd squash > all three patches together. > > The next patch needs to be updated for this. > > Unsquashed branch at git://repo.or.cz/qem

Re: [Qemu-devel] [RFC PATCH 0/2] establish nesting rule of BQL vs cpu-exclusive

2019-06-06 Thread Roman Kagan
On Mon, May 27, 2019 at 11:05:38AM +, Roman Kagan wrote: > On Thu, May 23, 2019 at 12:31:16PM +0100, Alex Bennée wrote: > > > > Roman Kagan writes: > > > > > I came across the following AB-BA deadlock: > > > > > > vCPU thread main thread > > > ---

Re: [Qemu-devel] [PATCH v4 08/11] numa: Extend the command-line to provide memory latency and bandwidth information

2019-06-06 Thread Eric Blake
On 6/6/19 2:47 AM, Tao Xu wrote: > On 6/5/2019 10:40 PM, Igor Mammedov wrote: >> On Wed,  8 May 2019 14:17:23 +0800 >> Tao Xu wrote: >> >>> From: Liu Jingqi >>> >>> Add -numa hmat-lb option to provide System Locality Latency and >>> Bandwidth Information. These memory attributes help to build >>>

Re: [Qemu-devel] [PATCH v2 2/2] blockjob: use blk_new_pinned in block_job_create

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 16:06, Kevin Wolf wrote: > Am 06.06.2019 um 14:29 hat Vladimir Sementsov-Ogievskiy geschrieben: >> 06.06.2019 13:05, Kevin Wolf wrote: >>> Am 05.06.2019 um 19:16 hat Vladimir Sementsov-Ogievskiy geschrieben: 05.06.2019 20:11, Kevin Wolf wrote: > Am 05.06.2019 um 14:32 hat Vladim

Re: [Qemu-devel] [PATCH] vhost-user: fix reconnection support for host notifier

2019-06-06 Thread Marc-André Lureau
Hi On Fri, Apr 26, 2019 at 8:32 AM Tiwei Bie wrote: > > We need to destroy the host notifiers when cleaning up > the backend. Otherwise, some resources are not released > after the connection is closed, and it may prevent the > external backend from reopening them (e.g. VFIO files) > during resta

[Qemu-devel] [PATCH 1/6] roms/Makefile.edk2: define edk2-stable201905 network feature test macros

2019-06-06 Thread Laszlo Ersek
Due to edk2 commits 631195044ff0 ("OvmfPkg: Update DSC/FDF to use NetworkPkg's include fragment file.", 2019-05-16) and 157a3b1aa50f ("ArmVirtPkg: Update DSC/FDF to use NetworkPkg's include fragment file.", 2019-05-16), we'll have to pefix the HTTP_BOOT_ENABLE and TLS_ENABLE build flags with "NETWO

[Qemu-devel] [PATCH 0/6] update edk2 submodule & binaries to edk2-stable201905

2019-06-06 Thread Laszlo Ersek
Launchpad: https://bugs.launchpad.net/qemu/+bug/1831477 Repo: https://github.com/lersek/qemu.git Branch:edk2-stable201905-lp-1831477 edk2-stable201905 has been released today; let's update QEMU's submodule, and the binaries built thereof. This should be the edk2 release that goes into QEM

[Qemu-devel] [PATCH 4/6] roms/Makefile.edk2: update input file list for "pc-bios/edk2-licenses.txt"

2019-06-06 Thread Laszlo Ersek
(1) For TianoCore Bugzilla https://bugzilla.tianocore.org/show_bug.cgi?id=1373 the majority of the edk2 tree was relicensed under the BSD-2-Clause-Patent license: https://spdx.org/licenses/BSD-2-Clause-Patent.html> Edk2 commit f53de8aecb12 ("edk2: Add License-History.txt

[Qemu-devel] [PATCH 2/6] roms/edk2: update submodule from edk2-stable201903 to edk2-stable201905

2019-06-06 Thread Laszlo Ersek
Update the edk2 submodule from release edk2-stable201903 to edk2-stable201905. The release notes can be read at https://github.com/tianocore/edk2/releases/tag/edk2-stable201905 Below is a list of commits in the new release: 1 c9e1e28b6195 Maintainers.txt: clarify Reviewer requirements and

[Qemu-devel] [PATCH 3/6] roms/Makefile.edk2: remove edk2-stable201903 network feature test macros

2019-06-06 Thread Laszlo Ersek
At tag "edk2-stable201905", the build flags HTTP_BOOT_ENABLE and TLS_ENABLE have become useless. Their roles have been taken by NETWORK_HTTP_BOOT_ENABLE and NETWORK_TLS_ENABLE, respectively. Remove the old build flags. Cc: Philippe Mathieu-Daudé Ref: https://bugs.launchpad.net/qemu/+bug/1831477 S

[Qemu-devel] [PATCH 6/6] pc-bios: update the README file with edk2-stable201905 information

2019-06-06 Thread Laszlo Ersek
Refresh the "pc-bios/README" file with edk2, OpenSSL, and Berkeley SoftFloat release info, matching the edk2-stable201905 firmware images added in the previous patch. Cc: Philippe Mathieu-Daudé Ref: https://bugs.launchpad.net/qemu/+bug/1831477 Signed-off-by: Laszlo Ersek --- pc-bios/README | 14

Re: [Qemu-devel] QEMU/KVM migration backwards compatibility broken?

2019-06-06 Thread Dr. David Alan Gilbert
* Liran Alon (liran.a...@oracle.com) wrote: > > > > On 6 Jun 2019, at 14:07, Dr. David Alan Gilbert wrote: > > It's tricky; for distro-based users, hitting 'update' and getting both > > makes a lot of sense; but as you say you ened to let them do stuff > > individually if they want to, so the

[Qemu-devel] [PATCH 5/6] pc-bios: refresh edk2 build artifacts for edk2-stable201905

2019-06-06 Thread Laszlo Ersek
Rebuild the pc-bios/edk2-*.fd.bz2 binaries, and regenerate pc-bios/edk2-licenses.txt, based on the edk2-stable201905 release. Cc: Philippe Mathieu-Daudé Ref: https://bugs.launchpad.net/qemu/+bug/1831477 Signed-off-by: Laszlo Ersek --- pc-bios/edk2-licenses.txt | 752 +++

Re: [Qemu-devel] [PATCH v17 10/10] target-arm: kvm64: handle SIGBUS signal from kernel or KVM

2019-06-06 Thread Jonathan Cameron
On Tue, 14 May 2019 04:18:23 -0700 Dongjiu Geng wrote: > Add SIGBUS signal handler. In this handler, it checks the SIGBUS type, > translates the host VA delivered by host to guest PA, then fill this PA > to guest APEI GHES memory, then notify guest according to the SIGBUS type. > > If guest acce

[Qemu-devel] [PATCH 3/3] nbd: improve CMD_CACHE: use blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
This helps to avoid extra io, allocations and memory copying. We assume here that CMD_CACHE is always used with copy-on-read, as otherwise it's a noop. Signed-off-by: Vladimir Sementsov-Ogievskiy --- nbd/server.c | 43 +++ 1 file changed, 35 insertions(+),

[Qemu-devel] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Hi all! Here is small new io API: blk_co_pcache, which does copy-on-read without extra buffer for read data. This means that only parts that needs COR will be actually read and only corresponding buffers allocated, no more. This allows to improve a bit block-stream and NBD_CMD_CACHE Vladimir Sem

[Qemu-devel] [PATCH] target/mips: Add implementation of DSPRAM

2019-06-06 Thread Mateja Marjanovic
From: Mateja Marjanovic Add support for DSPRAM (Data Scratch Pad RAM). It still needs some minor fixing, but the structure is right. Signed-off-by: Mateja Marjanovic --- default-configs/mips-softmmu-common.mak | 1 + hw/mips/cps.c | 28 +- hw/misc/Makefile.objs

[Qemu-devel] [PATCH 1/3] block: implement blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Do effective copy-on-read request when we don't need data actually. It will be used for block-stream and NBD_CMD_CACHE. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block.h | 8 +++- include/sysemu/block-backend.h | 7 +++ block/io.c | 18 +

[Qemu-devel] [PATCH] target/mips: Add implementation of DSPRAM

2019-06-06 Thread Mateja Marjanovic
From: Mateja Marjanovic This patch is a merge of Yongbok Kim's DSPRAM implementation with the upstream, with some of Philippe Mathieu-Daude's comments. It still needs some fixing (work in progress). Mateja Marjanovic (1): target/mips: Add implementation of DSPRAM default-configs/mips-softmmu

[Qemu-devel] [PATCH 2/3] block/stream: use blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
This helps to avoid extra io, allocations and memory copying. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/stream.c | 19 ++- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/block/stream.c b/block/stream.c index 1a906fd860..8478aa4a50 100644 --- a/block/st

Re: [Qemu-devel] [PATCH v17 07/10] ACPI: Add APEI GHES table generation support

2019-06-06 Thread Jonathan Cameron
On Tue, 14 May 2019 04:18:20 -0700 Dongjiu Geng wrote: > This implements APEI GHES Table generation via fw_cfg blobs. > Now it only support GPIO-Signal and ARMv8 SEA two types of GHESv2 error > source. Afterwards, we can extend the supported types if needed. For the > CPER section type, currently

[Qemu-devel] [Bug 1831477] Re: update edk2 submodule & binaries to edk2-stable201905

2019-06-06 Thread Laszlo Ersek (Red Hat)
Posted [PATCH 0/6] update edk2 submodule & binaries to edk2-stable201905 20190606133110.13754-1-lersek@redhat.com">http://mid.mail-archive.com/20190606133110.13754-1-lersek@redhat.com ** Changed in: qemu Status: New => In Progress -- You received this bug notification because you are a m

Re: [Qemu-devel] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Eric Blake
On 6/6/19 8:48 AM, Vladimir Sementsov-Ogievskiy wrote: > Hi all! > > Here is small new io API: blk_co_pcache, which does copy-on-read without > extra buffer for read data. This means that only parts that needs COR > will be actually read and only corresponding buffers allocated, no more. > > This

Re: [Qemu-devel] [PATCH] q35: fix mmconfig and PCI0._CRS

2019-06-06 Thread Michael S. Tsirkin
On Wed, May 29, 2019 at 06:05:41PM -0400, Michael S. Tsirkin wrote: > On Tue, May 28, 2019 at 10:43:31PM +0200, Gerd Hoffmann wrote: > > This patch changes the handling of the mmconfig area. Thanks to the > > pci(e) expander devices we already have the logic to exclude address > > ranges from PCI0

Re: [Qemu-devel] [PULL 00/16] Trivial branch patches

2019-06-06 Thread Peter Maydell
On Thu, 6 Jun 2019 at 12:18, Laurent Vivier wrote: > > The following changes since commit 47fbad45d47af8af784bb12a5719489edcd89b4c: > > Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging > (2019-06-04 17:22:42 +0100) > > are available in the Git repository at: > > git

Re: [Qemu-devel] [PATCH 0/3] block: blk_co_pcache

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
06.06.2019 16:55, Eric Blake wrote: > On 6/6/19 8:48 AM, Vladimir Sementsov-Ogievskiy wrote: >> Hi all! >> >> Here is small new io API: blk_co_pcache, which does copy-on-read without >> extra buffer for read data. This means that only parts that needs COR >> will be actually read and only correspon

Re: [Qemu-devel] [PATCH v6 6/6] tests/tcg/aarch64: Add bti smoke test

2019-06-06 Thread Richard Henderson
On 6/6/19 5:21 AM, Dave Martin wrote: >> +/* >> + * Create the PT_NOTE that will enable BTI in the page tables. >> + * This will be created by the compiler with -mbranch-protection=standard, >> + * but as of 2019-03-29, this is has not been committed to gcc mainline. >> + * This will probably be in

Re: [Qemu-devel] [PATCH 5/5] tricore: reset DisasContext before generating code

2019-06-06 Thread Bastian Koppelmann
Hi Georg, On 6/6/19 1:44 PM, Hofstetter, Georg (EFS-GH2) wrote: Hi Sebastian, in translate.c:gen_mtcr() code accesses hflags within the structure: if ((ctx->hflags & TRICORE_HFLAG_KUU) == TRICORE_HFLAG_SM) { /* since we're caching PSW make this a special case */ The code expects

Re: [Qemu-devel] [PATCH v4 0/6] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
Kevin Wolf writes: > This series adds optional feature lists to struct definitions in the > QAPI schema and makes use of them to advertise the new behaviour of > auto-read-only=on in file-posix. PATCH 1-3,5-6 are ready. PATCH 4 could use a bit of love, but I think I don't need you to respin. L

Re: [Qemu-devel] [PATCH 3/4] net/virtio: add failover support

2019-06-06 Thread Roman Kagan
On Mon, Jun 03, 2019 at 12:46:52PM -0600, Alex Williamson wrote: > On Mon, 3 Jun 2019 14:10:52 -0400 > Laine Stump wrote: > > > On 6/3/19 4:24 AM, Jens Freimann wrote: > > > On Fri, May 31, 2019 at 06:47:48PM -0300, Eduardo Habkost wrote: > > >> On Thu, May 30, 2019 at 04:56:45PM +0200, Jens Fr

[Qemu-devel] [PATCH v2 04/10] target/mips: Unroll loops in helpers for MSA logic instructions

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Unroll loops in helpers for MSA logic instructions for better performance. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-4-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 44 +++

[Qemu-devel] [PATCH v2 10/10] tests/tcg: target/mips: Add README for MSA tests

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add README for MSA tests. This is just to explain how to run tests even without Makefile. Makefile will be provided later on. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1555699081-24577-6-git-send-email-aleksandar.marko...@rt-rk.com

[Qemu-devel] [PATCH v2 00/10] Amend and clean up MSA support

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains various refactorings and cleanups of MSA support. Improve support for logic instructions, add tests for shift and FP max/min instructions, add reseting all MSA registers before running tests, improve code style, outline future organization. v2->v3:

[Qemu-devel] [PATCH v2 03/10] target/mips: Outline places for future MSA helpers

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Outline places for future MSA helpers to follow the same organization as in MSA tests. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-7-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 138 ++

[Qemu-devel] [PATCH v2 05/10] tests/tcg: target/mips: Amend and rearrange MSA wrappers

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Amend and rearrange MSA wrappers to follow the same organization as in MSA tests. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-6-git-send-email-aleksandar.marko...@rt-rk.com> --- tests/tcg/mips/include/wrappers_msa.h

[Qemu-devel] [PATCH v2 07/10] tests/tcg: target/mips: Move four tests to a better location

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Move tests for _Q. from "integer multiply" directory to "fixed-point multiply" directory, since they do not operate on integers, but on fixed point numbers. Signed-off-by: Aleksandar Markovic --- .../mips/user/ase/msa/{int-multiply => fixed-multiply}/test_msa_mul_q_h.

[Qemu-devel] [PATCH v2 09/10] tests/tcg: target/mips: Add tests for MSA FP max/min instructions

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add tests for MSA FP max/min instructions. This includes following instructions: * FMAX.W - float maximum (words) * FMAX.D - float maximum (doublewords) * FMAX_A.W - float maximum absolute (words) * FMAX_A.D - float maximum absolute (doublewords) * FMIN.W - fl

[Qemu-devel] [PATCH v2 01/10] target/mips: Fix space-related format issues im msa_helper.c

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix space-related format issues reported by checkpatch in file msa_helper.c. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-2-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 28 +

[Qemu-devel] [PATCH v2 08/10] tests/tcg: target/mips: Add utility function reset_msa_registers()

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add function reset_msa_registers() and utilize it in each MSA test. This is needed to ensure independency of test results on the state of MSA registers before test execution. Signed-off-by: Aleksandar Markovic --- tests/tcg/mips/include/wrappers_msa.h | 4

[Qemu-devel] [PATCH v2 02/10] target/mips: Fix block-comment-related issues im msa_helper.c

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix block-comment-related issues reported by checkpatch for file msa_helper.c. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-3-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 42 +++

Re: [Qemu-devel] QEMU/KVM migration backwards compatibility broken?

2019-06-06 Thread Liran Alon
> On 6 Jun 2019, at 16:31, Dr. David Alan Gilbert wrote: > >>> >>> So we still need to tie subsections to machine types; that way >>> you don't send them to old qemu's and there for you don't have the >>> problem of the qemu receiving something it doesn't know. >> >> I agree that if there is

Re: [Qemu-devel] [Qemu-block] [PATCH v7 0/9] discard blockstats

2019-06-06 Thread Stefano Garzarella
On Tue, Jun 04, 2019 at 04:53:23PM +, Anton Nefedov wrote: > On 3/6/2019 1:09 PM, Stefano Garzarella wrote: > > On Tue, May 14, 2019 at 12:10:40PM +, Anton Nefedov wrote: > >> hi, > >> > >> yet another take for this patch series; please kindly consider these for > >> 4.1 > >> > >> Just a f

[Qemu-devel] [PATCH 1/7] qapi: Add feature flags to struct types

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Sometimes, the behaviour of QEMU changes without a change in the QMP syntax (usually by allowing values or operations that previously resulted in an error). QMP clients may still need to know whether they can rely on the changed behavior. Let's add feature flags to the QAPI sche

[Qemu-devel] [PATCH 3/7] tests/qapi-schema: Error case tests for features in structs

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/Makefile.include | 6 ++ tests/qapi-schema/features-bad-type.err| 1 + tests/qapi-schema/features-bad-type.exit | 1 + tests/qapi-schema/features-bad-type.json | 3 +++ tests/qapi-schema/feature

[Qemu-devel] [PATCH 0/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
This series adds optional feature lists to struct definitions in the QAPI schema and makes use of them to advertise the new behaviour of auto-read-only=on in file-posix. v5: - PATCH 4: restore a lost comment line, clean up comment whitespace for PEP 8 - PATCH 4+5: replace QAPIDoc._check_named_se

[Qemu-devel] [PATCH 4/7] qapi: Disentangle QAPIDoc code

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Documentation comments follow a certain structure: First, we have a text with a general description (called QAPIDoc.body). After this, descriptions of the arguments follow. Finally, we have a part that contains various named sections. The code doesn't show this structure, but ju

[Qemu-devel] [PATCH 6/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf In commit 23dece19da4 ('file-posix: Make auto-read-only dynamic') , auto-read-only=on changed its behaviour in file-posix for the 4.0 release. This change cannot be detected through the usual mechanisms like schema introspection. Add a new feature flag to the schema to allow libv

[Qemu-devel] [PATCH 5/7] qapi: Allow documentation for features

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Features will be documented in a new part introduced by a "Features:" line, after arguments and before named sections. Signed-off-by: Kevin Wolf --- scripts/qapi/common.py | 43 ++ scripts/qapi/doc.py| 12 2 files change

[Qemu-devel] [PATCH 4/4] block: drop bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Drop remaining users of bs->job: 1. assertions actually duplicated by assert(!bs->refcnt) 2. trace-point seems not enough reason to change stream_start to return BlockJob pointer 3. Restricting creation of two jobs based on same bs is bad idea, as 3.1 Some jobs creates filters to be their mai

[Qemu-devel] [PATCH 0/4] block: drop bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
Hi all! These series follow Kevin's suggestions under https://lists.gnu.org/archive/html/qemu-devel/2019-06/msg00670.html [Qemu-devel] [PATCH v2 0/2] introduce pinned blk (hope you don't mind me using exactly your wording in 02) Vladimir Sementsov-Ogievskiy (4): block/replication: drop usage o

[Qemu-devel] [PATCH 7/7] qapi: Simplify QAPIDoc implements its state machine

2019-06-06 Thread Markus Armbruster
QAPIDoc uses a state machine to for processing of documentation lines. Its state is encoded as an enum QAPIDoc._state (well, as enum-like class actually, thanks to our infatuation with Python 2). All we ever do with the state is calling the state's function to process a line of documentation. The

[Qemu-devel] [PATCH 3/4] blockdev: blockdev_mark_auto_del: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in blockdev_mark_auto_del: instead of looking at bs->job let's check all jobs for references to bs. Suggested-by: Kevin Wolf Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/blockjob.h | 9 + blockdev.c

[Qemu-devel] [PATCH 2/4] block/block-backend: blk_iostatus_reset: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in blk_iostatus_reset. blk_iostatus_reset() has only two callers: 1. blk_attach_dev(). This doesn't have anything to do with jobs and attaching a new guest device won't solve any problem the job encountered, so no reason to reset the

[Qemu-devel] [PATCH 1/4] block/replication: drop usage of bs->job

2019-06-06 Thread Vladimir Sementsov-Ogievskiy
We are going to remove bs->job pointer. Drop it's usage in replication code. Additionally we have to return job pointer from some mirror APIs. Signed-off-by: Vladimir Sementsov-Ogievskiy --- include/block/block_int.h | 12 ++-- block/mirror.c| 38 ++---

[Qemu-devel] [PATCH] cputlb: cast size_t to target_ulong before using for address masks

2019-06-06 Thread Alex Bennée
While size_t is defined to happily access the biggest host object this isn't the case when generating masks for 64 bit guests on 32 bit hosts. Otherwise we end up truncating the address when we fall back to our unaligned helper. Cc: Andrew Randrianasulu Signed-off-by: Alex Bennée --- accel/tcg/

[Qemu-devel] [PATCH 2/7] tests/qapi-schema: Test for good feature lists in structs

2019-06-06 Thread Markus Armbruster
From: Kevin Wolf Signed-off-by: Kevin Wolf --- tests/qapi-schema/qapi-schema-test.json | 39 ++ tests/qapi-schema/qapi-schema-test.out | 43 + tests/qapi-schema/test-qapi.py | 4 +++ tests/test-qmp-cmds.c | 8 + 4 fil

Re: [Qemu-devel] [PULL SUBSYSTEM s390x 00/33] s390x/tcg: Final Vector Instruction Support

2019-06-06 Thread Cornelia Huck
On Wed, 5 Jun 2019 22:33:30 +0200 David Hildenbrand wrote: > This pull request is not for master. > > Hi Cornelia, > > The following changes since commit dd5382ad6deb5a07ec3c72b2c3cce36ce1307a57: > > vfio-ccw: support async command subregion (2019-06-05 07:55:18 +0200) > > are available in

Re: [Qemu-devel] [PATCH 6/7] file-posix: Add dynamic-auto-read-only QAPI feature

2019-06-06 Thread Eric Blake
On 6/6/19 10:38 AM, Markus Armbruster wrote: > From: Kevin Wolf > > In commit 23dece19da4 ('file-posix: Make auto-read-only dynamic') , > auto-read-only=on changed its behaviour in file-posix for the 4.0 > release. This change cannot be detected through the usual mechanisms > like schema introspe

Re: [Qemu-devel] [PATCH] cputlb: cast size_t to target_ulong before using for address masks

2019-06-06 Thread Andrew Randrianasulu
В сообщении от Thursday 06 June 2019 18:43:10 Alex Bennée написал(а): > addr1 = addr & ~((target_ulong)size - 1); yes, this fixes my hang! Thanks!

Re: [Qemu-devel] [PATCH] cputlb: cast size_t to target_ulong before using for address masks

2019-06-06 Thread Richard Henderson
On 6/6/19 10:43 AM, Alex Bennée wrote: > While size_t is defined to happily access the biggest host object this > isn't the case when generating masks for 64 bit guests on 32 bit > hosts. Otherwise we end up truncating the address when we fall back to > our unaligned helper. > > Cc: Andrew Randria

Re: [Qemu-devel] [PATCH] MAINTAINERS: put myself forward for gdbstub

2019-06-06 Thread Richard Henderson
On 6/6/19 3:29 AM, Alex Bennée wrote: > As I've been reviewing a lot of this recently and I'm going to put > together a pull request I'd better keep an eye on it. > > Signed-off-by: Alex Bennée > --- > MAINTAINERS | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Reviewed-by: Richard He

[Qemu-devel] PCI(e): Documentation "io-reserve" and related properties?

2019-06-06 Thread Kashyap Chamarthy
Hi folks, Today I learnt about some obscure PCIe-related properties, in context of the adding PCIe root ports to a guest, namely: io-reserve mem-reserve bus-reserve pref32-reserve pref64-reserve Unfortunately, the commit[*] that added them provided no documentation whatsover.

Re: [Qemu-devel] [PATCH v4 04/11] acpi: introduce AcpiDeviceIfClass.build_mem_ranges hook

2019-06-06 Thread Igor Mammedov
On Thu, 6 Jun 2019 13:15:43 +0800 Tao Xu wrote: > On 5/24/2019 8:35 PM, Igor Mammedov wrote: > > On Wed, 8 May 2019 14:17:19 +0800 > > Tao Xu wrote: > > > >> Add build_mem_ranges callback to AcpiDeviceIfClass and use > >> it for generating SRAT and HMAT numa memory ranges. > >> > >> Suggeste

[Qemu-devel] [PATCH v4 00/10] Amend and clean up MSA support

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic This series contains various refactorings and cleanups of MSA support. Improve support for logic instructions, add tests for shift and FP max/min instructions, add reseting all MSA registers before running tests, improve code style, outline future organization. v3->v4:

[Qemu-devel] [PATCH v4 01/10] target/mips: Fix space-related format issues im msa_helper.c

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix space-related format issues reported by checkpatch in file msa_helper.c. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-2-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 28 +

[Qemu-devel] [PATCH v4 04/10] target/mips: Unroll loops in helpers for MSA logic instructions

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Unroll loops in helpers for MSA logic instructions for better performance. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-4-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 44 +++

[Qemu-devel] [PATCH v4 07/10] tests/tcg: target/mips: Move four tests to a better location

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Move tests for _Q. from "integer multiply" directory to "fixed-point multiply" directory, since they do not operate on integers, but on fixed point numbers. Signed-off-by: Aleksandar Markovic eviewed-by: Aleksandar Rikalo --- .../mips/user/ase/msa/{int-multiply => fi

[Qemu-devel] [PATCH v4 05/10] tests/tcg: target/mips: Amend and rearrange MSA wrappers

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Amend and rearrange MSA wrappers to follow the same organization as in MSA tests. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-6-git-send-email-aleksandar.marko...@rt-rk.com> --- tests/tcg/mips/include/wrappers_msa.h

[Qemu-devel] [PATCH v4 03/10] target/mips: Outline places for future MSA helpers

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Outline places for future MSA helpers to follow the same organization as in MSA tests. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-7-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 138 ++

[Qemu-devel] [PATCH v4 02/10] target/mips: Fix block-comment-related issues im msa_helper.c

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Fix block-comment-related issues reported by checkpatch for file msa_helper.c. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1559745316-1454-3-git-send-email-aleksandar.marko...@rt-rk.com> --- target/mips/msa_helper.c | 42 +++

[Qemu-devel] [PATCH v4 10/10] tests/tcg: target/mips: Add README for MSA tests

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add README for MSA tests. This is just to explain how to run tests even without Makefile. Makefile will be provided later on. Signed-off-by: Aleksandar Markovic Reviewed-by: Aleksandar Rikalo Message-Id: <1555699081-24577-6-git-send-email-aleksandar.marko...@rt-rk.com

[Qemu-devel] [PATCH v4 09/10] tests/tcg: target/mips: Add tests for MSA FP max/min instructions

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add tests for MSA FP max/min instructions. This includes following instructions: * FMAX.W - float maximum (words) * FMAX.D - float maximum (doublewords) * FMAX_A.W - float maximum absolute (words) * FMAX_A.D - float maximum absolute (doublewords) * FMIN.W - fl

[Qemu-devel] [PATCH v4 08/10] tests/tcg: target/mips: Add utility function reset_msa_registers()

2019-06-06 Thread Aleksandar Markovic
From: Aleksandar Markovic Add function reset_msa_registers() and utilize it in each MSA test. This is needed to ensure independency of test results on the state of MSA registers before test execution. This also allows for correction of tests for VSHF* instructions, that are now independent on the

Re: [Qemu-devel] [PATCH 0/4] block: drop bs->job

2019-06-06 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20190606154132.153330-1-vsement...@virtuozzo.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bin/ba

[Qemu-devel] [PATCH] m68k comments break patch submission due to being incorrectly formatted

2019-06-06 Thread Lucien Murray-Pitts
Altering all comments in target/m68k to match Qemu coding styles so that future patches wont fail due to style breaches. Signed-off-by: Lucien Murray-Pitts --- target/m68k/cpu.c| 4 +- target/m68k/cpu.h| 30 -- target/m68k/fpu_helper.c | 6 +- target/m68k/gdbstub.c|

[Qemu-devel] [PATCH] m68k comments break patch submission due to being incorrectly formatted

2019-06-06 Thread Lucien Murray-Pitts
Altering all comments in target/m68k to match Qemu coding styles so that future patches wont fail due to style breaches. Signed-off-by: Lucien Murray-Pitts --- target/m68k/cpu.c| 4 +- target/m68k/cpu.h| 30 -- target/m68k/fpu_helper.c | 6 +- target/m68k/gdbstub.c|

Re: [Qemu-devel] [PATCH v4 07/11] hmat acpi: Build Memory Side Cache Information Structure(s) in ACPI HMAT

2019-06-06 Thread Igor Mammedov
On Thu, 6 Jun 2019 11:00:33 +0800 Tao Xu wrote: > On 6/5/2019 8:12 PM, Igor Mammedov wrote: > > On Wed, 5 Jun 2019 14:04:10 +0800 > > Tao Xu wrote: > > > >> On 6/4/2019 11:04 PM, Igor Mammedov wrote: > >>> On Wed, 8 May 2019 14:17:22 +0800 > >>> Tao Xu wrote: > >>> > ... > + >

Re: [Qemu-devel] [PATCH 1/8] target/ppc: Optimize emulation of lvsl and lvsr instructions

2019-06-06 Thread Richard Henderson
On 6/6/19 5:15 AM, Stefan Brankovic wrote: > +tcg_gen_addi_i64(result, sh, 7); > +for (i = 7; i >= 1; i--) { > +tcg_gen_shli_i64(tmp, sh, i * 8); > +tcg_gen_or_i64(result, result, tmp); > +tcg_gen_addi_i64(sh, sh, 1); > +} Better to replicate sh into the 8 posit

Re: [Qemu-devel] [PATCH v4 08/11] numa: Extend the command-line to provide memory latency and bandwidth information

2019-06-06 Thread Igor Mammedov
On Thu, 6 Jun 2019 08:23:47 -0500 Eric Blake wrote: > On 6/6/19 2:47 AM, Tao Xu wrote: > > On 6/5/2019 10:40 PM, Igor Mammedov wrote: > >> On Wed,  8 May 2019 14:17:23 +0800 > >> Tao Xu wrote: > >> > >>> From: Liu Jingqi > >>> > >>> Add -numa hmat-lb option to provide System Locality Latenc

Re: [Qemu-devel] [PATCH] m68k comments break patch submission due to being incorrectly formatted

2019-06-06 Thread Laurent Vivier
CC Trivial Le 06/06/2019 à 18:43, Lucien Murray-Pitts a écrit : > Altering all comments in target/m68k to match Qemu coding styles so that > future > patches wont fail due to style breaches. > > Signed-off-by: Lucien Murray-Pitts > --- > target/m68k/cpu.c| 4 +- > target/m68k/cpu.h

Re: [Qemu-devel] [PATCH v4 10/11] acpi: introduce build_acpi_aml_common for NFIT generalizations

2019-06-06 Thread Igor Mammedov
On Wed, 8 May 2019 14:17:25 +0800 Tao Xu wrote: > The aim of this patch is to move some of the NFIT Aml-build codes into > build_acpi_aml_common(), and then NFIT and HMAT can both use it. too generic function name, pls name it so it would express what it's doing. The same applies to commit mess

Re: [Qemu-devel] [PATCH 2/8] target/ppc: Optimize emulation of vsl and vsr instructions

2019-06-06 Thread Richard Henderson
On 6/6/19 5:15 AM, Stefan Brankovic wrote: > +tcg_gen_subi_i64(tmp, sh, 64); > +tcg_gen_neg_i64(tmp, tmp); Better as tcg_gen_subfi_i64(tmp, 64, sh); r~

Re: [Qemu-devel] [PATCH 2/3] MAINTAINERS: Improve section headlines

2019-06-06 Thread Markus Armbruster
Stafford Horne writes: > On Mon, Jun 03, 2019 at 10:45:14AM +0200, Philippe Mathieu-Daudé wrote: >> On 5/31/19 5:36 AM, Stafford Horne wrote: >> > On Wed, May 29, 2019 at 05:08:52PM +0200, Markus Armbruster wrote: >> >> When scripts/get_maintainer.pl reports something like >> >> >> >> John Do

Re: [Qemu-devel] [PATCH] cputlb: cast size_t to target_ulong before using for address masks

2019-06-06 Thread Alex Bennée
Andrew Randrianasulu writes: > В сообщении от Thursday 06 June 2019 18:43:10 Alex Bennée написал(а): >> addr1 = addr & ~((target_ulong)size - 1); > > yes, this fixes my hang! Thanks! Can I take that as a: Tested-by: Andrew Randrianasulu ? -- Alex Bennée

[Qemu-devel] [PATCH] spapr: Don't use the "dual" interrupt controller mode with an old hypervisor

2019-06-06 Thread Greg Kurz
If KVM is too old to support XIVE native exploitation mode, we might end up using the emulated XIVE after CAS. This is sub-optimal if KVM in-kernel XICS is available, which is the case most of the time. Also, an old KVM may not allow to destroy and re-create the KVM XICS, which is precisely what "

<    1   2   3   4   >