Re: [Qemu-devel] [PATCH v4 5/5] target/mips: Refactor and fix INSERT. instructions

2019-05-18 Thread Aleksandar Markovic
On Apr 2, 2019 3:49 PM, "Mateja Marjanovic" wrote: > > From: Mateja Marjanovic > > The old version of the helper for the INSERT. MSA instructions > has been replaced with four helpers that don't use switch, and change > the endianness of the given index, when executed on a big endian host. > >

Re: [Qemu-devel] [PATCH v4 3/7] tcg/ppc: Support vector multiply

2019-05-18 Thread Aleksandar Markovic
On May 19, 2019 6:35 AM, "Richard Henderson" wrote: > > For Altivec, this is always an expansion. > > Signed-off-by: Richard Henderson > --- Large portions of this patch have nothing to do with what title or commit message say.Reorganize. Thanks, Aleksandar > tcg/ppc/tcg-target.h | 2

[Qemu-devel] [PATCH v4 2/7] tcg/ppc: Support vector shift by immediate

2019-05-18 Thread Richard Henderson
For Altivec, this is done via vector shift by vector, and loading the immediate into a register. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.inc.c | 58 ++-- 2 files changed, 57 insertions(+), 3 deletions(-) diff

[Qemu-devel] [PATCH v4 1/7] tcg/ppc: Initial backend support for Altivec

2019-05-18 Thread Richard Henderson
There are a few missing operations yet, like expansion of multiply and shifts. But this has move, load, store, and basic arithmetic. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 36 +- tcg/ppc/tcg-target.opc.h | 3 + tcg/ppc/tcg-target.inc.c | 707

[Qemu-devel] [PATCH v4 3/7] tcg/ppc: Support vector multiply

2019-05-18 Thread Richard Henderson
For Altivec, this is always an expansion. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 2 +- tcg/ppc/tcg-target.opc.h | 8 +++ tcg/ppc/tcg-target.inc.c | 112 ++- 3 files changed, 120 insertions(+), 2 deletions(-) diff --git

[Qemu-devel] [PATCH v4 0/7] tcg/ppc: Add vector opcodes

2019-05-18 Thread Richard Henderson
Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> Aka "tcg: misc gvec improvements". Version 3 was last posted in March, https://lists.gnu.org/archive/html/qemu-devel/2019-03/msg05859.html Changes since v3: * Add support for bitsel, with the vsx xxsel insn. * Rely on the new

[Qemu-devel] [PATCH v4 4/7] tcg/ppc: Support vector dup2

2019-05-18 Thread Richard Henderson
This is only used for 32-bit hosts. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.inc.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tcg/ppc/tcg-target.inc.c b/tcg/ppc/tcg-target.inc.c index 9d58db9eb1..3219df2e90 100644 --- a/tcg/ppc/tcg-target.inc.c +++

[Qemu-devel] [PATCH v4 7/7] tcg/ppc: Update vector support to v3.00

2019-05-18 Thread Richard Henderson
This includes vector load/store with immediate offset, some extra move and splat insns, compare ne, and negate. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 3 +- tcg/ppc/tcg-target.inc.c | 103 ++- 2 files changed, 94 insertions(+), 12

[Qemu-devel] [PATCH v4 6/7] tcg/ppc: Update vector support to v2.07

2019-05-18 Thread Richard Henderson
This includes single-word loads and stores, lots of double-word arithmetic, and a few extra logical operations. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 3 +- tcg/ppc/tcg-target.inc.c | 111 +++ 2 files changed, 91 insertions(+), 23

[Qemu-devel] [PATCH v4 5/7] tcg/ppc: Update vector support to v2.06

2019-05-18 Thread Richard Henderson
This includes double-word loads and stores, double-word load and splat, double-word permute, and bit select. All of which require multiple operations in the base Altivec instruction set. Signed-off-by: Richard Henderson --- tcg/ppc/tcg-target.h | 5 ++-- tcg/ppc/tcg-target.inc.c | 51

Re: [Qemu-devel] QEMU on OpenBSD is broken?

2019-05-18 Thread Brad Smith
I just noticed when I had replied that my e-mail was sent from a different name, by accident, as I was testing something with my e-mail client. On 5/18/2019 5:27 PM, Jim Payne wrote: On 5/16/2019 9:04 PM, Thomas Huth wrote: On 10/05/2019 12.46, Gerd Hoffmann wrote: This patch series changes

[Qemu-devel] [PATCHv2 1/3] RISC-V: Raise access fault exceptions on PMP violations

2019-05-18 Thread Hesham Almatary
Section 3.6 in RISC-V v1.10 privilege specification states that PMP violations report "access exceptions." The current PMP implementation has a bug which wrongly reports "page exceptions" on PMP violations. This patch fixes this bug by reporting the correct PMP access exceptions trap values.

[Qemu-devel] [PATCHv2 2/3] RISC-V: Only Check PMP if MMU translation succeeds

2019-05-18 Thread Hesham Almatary
The current implementation unnecessarily checks for PMP even if MMU translation failed. This may trigger a wrong PMP access exception instead of a page exception. For example, the very first instruction fetched after the first satp write in S-Mode will trigger a PMP access fault instead of an

[Qemu-devel] [PATCHv3 3/3] RISC-V: Check PMP during Page Table Walks

2019-05-18 Thread Hesham Almatary
The PMP should be checked when doing a page table walk, and report access fault exception if the to-be-read PTE address failed the PMP check. Suggested-by: Jonathan Behrens Signed-off-by: Hesham Almatary --- target/riscv/cpu.h| 1 + target/riscv/cpu_helper.c | 10 +- 2 files

Re: [Qemu-devel] [Qemu-riscv] [PATCH 1/2] RISC-V: Raise access fault exceptions on PMP violations

2019-05-18 Thread Hesham Almatary
Hi Jonathan, Thanks for your feedback. On Sat, 18 May 2019 at 22:51, Jonathan Behrens wrote: > > This patch assumes that translation failure should always raise a paging > fault, but it should be possible for it to raise an access fault as well > (since according to the spec "PMP checks are

Re: [Qemu-devel] [PATCH v2 10/13] tests/vm: freebsd autoinstall, using serial console

2019-05-18 Thread Philippe Mathieu-Daudé
Hi Gerd, On 5/10/19 12:46 PM, Gerd Hoffmann wrote: > Instead of fetching the prebuilt image from patchew download the install > iso and prepare the image locally. Install to disk, using the serial > console. Create qemu user, configure ssh login. Install packages > needed for qemu builds. I'm

Re: [Qemu-devel] [PATCH v2 07/13] tests/vm: add DEBUG=1 to help text

2019-05-18 Thread Philippe Mathieu-Daudé
Hi Gerd, On 5/10/19 12:46 PM, Gerd Hoffmann wrote: > Signed-off-by: Gerd Hoffmann > --- > tests/vm/Makefile.include | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tests/vm/Makefile.include b/tests/vm/Makefile.include > index 47084d5717c6..8714b5947958 100644 > ---

Re: [Qemu-devel] [PATCH v2 13/13] tests/vm: ubuntu.i386: apt proxy setup

2019-05-18 Thread Philippe Mathieu-Daudé
On 5/10/19 12:46 PM, Gerd Hoffmann wrote: > Configure apt proxy so package downloads > can be cached and can pass firewalls. > > Signed-off-by: Gerd Hoffmann > --- > tests/vm/ubuntu.i386 | 4 > 1 file changed, 4 insertions(+) > > diff --git a/tests/vm/ubuntu.i386 b/tests/vm/ubuntu.i386 >

Re: [Qemu-devel] [PATCH v2 02/13] tests/vm: send proxy environment variables over ssh

2019-05-18 Thread Philippe Mathieu-Daudé
On 5/10/19 12:46 PM, Gerd Hoffmann wrote: > Packages are fetched via proxy that way, if configured on the host. > That might be required to pass firewalls, and it allows to route > package downloads through a caching proxy server. > > Needs AcceptEnv setup in sshd_config on the guest side to

Re: [Qemu-devel] [PATCH for-4.1 2/2] target/riscv: Add support for -bios "firmware_filename" flag

2019-05-18 Thread Jonathan Behrens
> I've never been fully convinced of this, why not just use the generic loader? If I understand you are proposing passing bbl (or other firmware) with the -kernel flag, and then vmlinux (or another kernel) with the -initrd flag? Wouldn't this result in losing the ability to pass a real init

Re: [Qemu-devel] [Qemu-riscv] [PATCH 1/2] RISC-V: Raise access fault exceptions on PMP violations

2019-05-18 Thread Jonathan Behrens
This patch assumes that translation failure should always raise a paging fault, but it should be possible for it to raise an access fault as well (since according to the spec "PMP checks are also applied to page-table accesses for virtual-address translation, for which the effective

Re: [Qemu-devel] QEMU on OpenBSD is broken?

2019-05-18 Thread Jim Payne
On 5/16/2019 9:04 PM, Thomas Huth wrote: On 10/05/2019 12.46, Gerd Hoffmann wrote: This patch series changes the way virtual machines for test builds are managed. They are created locally on the developer machine now. The installer is booted on the serial console and the scripts walks

[Qemu-devel] [Bug 1829576] Re: QEMU-SYSTEM-PPC64 Regression QEMU-4.0.0

2019-05-18 Thread Jose Santiago
I applied the four patches you indicated and the image boots up and runs. Everything seems to be working now. Thank You. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1829576 Title:

[Qemu-devel] [PATCH 0/2] target/arm: make use of new gvec expanders

2019-05-18 Thread Richard Henderson
Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> Aka "tcg: misc gvec improvements". We've added (or are adding) generic support for variable vector shifts and bitsel. This trivially replaces the implementations of BSL, BIT, and BSL. It enables a reasonable implementation of

[Qemu-devel] [PATCH 1/2] target/arm: Vectorize USHL and SSHL

2019-05-18 Thread Richard Henderson
These instructions shift left or right depending on the sign of the input, and 7 bits are significant to the shift. This requires several masks and selects in addition to the actual shifts to form the complete answer. That said, the operation is still a small improvement even for two 64-bit

[Qemu-devel] [PATCH 2/2] target/arm: Use tcg_gen_gvec_bitsel

2019-05-18 Thread Richard Henderson
This replaces 3 target-specific implementations for BIT, BIF, and BSL. Signed-off-by: Richard Henderson --- target/arm/translate-a64.h | 2 + target/arm/translate.h | 3 -- target/arm/translate-a64.c | 15 ++-- target/arm/translate.c | 78 +++--- 4

[Qemu-devel] [PATCH 2/2] RISC-V: Only Check PMP if MMU translation succeeds

2019-05-18 Thread Hesham Almatary
The current implementation unnecessarily checks for PMP even if MMU translation failed. This may trigger a wrong PMP access exception instead of a page exception. For example, the very first instruction fetched after the first satp write in S-Mode will trigger a PMP access fault instead of an

[Qemu-devel] [PATCH 1/2] target/ppc: Use vector variable shifts for VSL, VSR, VSRA

2019-05-18 Thread Richard Henderson
The gvec expanders take care of masking the shift amount against the element width. Signed-off-by: Richard Henderson --- target/ppc/helper.h | 12 -- target/ppc/int_helper.c | 37 - target/ppc/translate/vmx-impl.inc.c | 24

[Qemu-devel] [PATCH 1/2] RISC-V: Raise access fault exceptions on PMP violations

2019-05-18 Thread Hesham Almatary
Section 3.6 in RISC-V v1.10 privilege specification states that PMP violations report "access exceptions." The current PMP implementation has a bug which wrongly reports "page exceptions" on PMP violations. This patch fixes this bug by reporting the correct PMP access exceptions trap values.

[Qemu-devel] [PATCH 02/16] tcg: Fix missing checks and clears in tcg_gen_gvec_dup_mem

2019-05-18 Thread Richard Henderson
The paths through tcg_gen_dup_mem_vec and through MO_128 were missing the check_size_align. The path through MO_128 was also missing the expand_clr. This last was not visible because the only user is ARM SVE, which would set oprsz == maxsz, and not require the clear. Fix by adding the

[Qemu-devel] [PATCH 2/2] target/ppc: Use tcg_gen_gvec_bitsel

2019-05-18 Thread Richard Henderson
Replace the target-specific implementation of XXSEL. Signed-off-by: Richard Henderson --- target/ppc/translate/vsx-impl.inc.c | 24 ++-- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/target/ppc/translate/vsx-impl.inc.c b/target/ppc/translate/vsx-impl.inc.c

[Qemu-devel] [PATCH 0/2] target/ppc: make use of new gvec expanders

2019-05-18 Thread Richard Henderson
Based-on: <20190518190157.21255-1-richard.hender...@linaro.org> Aka "tcg: misc gvec improvements". Since Mark's initial patches, we've added (or are adding) generic support for variable vector shifts and bitsel. r~ Richard Henderson (2): target/ppc: Use vector variable shifts for VSL, VSR,

[Qemu-devel] [PATCH 01/16] tcg/i386: Fix dupi/dupm for avx1 and 32-bit hosts

2019-05-18 Thread Richard Henderson
The VBROADCASTSD instruction only allows %ymm registers as destination. Rather than forcing VEX.L and writing to the entire 256-bit register, revert to using MOVDDUP with an %xmm register. This is sufficient for an avx1 host since we do not support TCG_TYPE_V256 for that case. Also fix the

[Qemu-devel] [PATCH 03/16] tcg: Add support for vector bitwise select

2019-05-18 Thread Richard Henderson
This operation performs d = (b & a) | (c & ~a), and is present on a majority of host vector units. Include gvec expanders. Signed-off-by: Richard Henderson --- accel/tcg/tcg-runtime.h | 2 ++ tcg/aarch64/tcg-target.h | 1 + tcg/i386/tcg-target.h| 1 + tcg/tcg-op-gvec.h

[Qemu-devel] [PATCH 04/16] tcg: Add support for vector compare select

2019-05-18 Thread Richard Henderson
Perform a per-element conditional move. This combination operation is easier to implement on some host vector units than plain cmp+bitsel. Omit the usual gvec interface, as this is intended to be used by target-specific gvec expansion call-backs. Signed-off-by: Richard Henderson ---

[Qemu-devel] [PATCH 08/16] tcg/i386: Support vector comparison select value

2019-05-18 Thread Richard Henderson
We already had backend support for this feature. Expand the new cmpsel opcode using vpblendb. The combination allows us to avoid an extra NOT for some comparison codes. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.h | 2 +- tcg/i386/tcg-target.inc.c | 39

[Qemu-devel] [PATCH 00/16] tcg: misc gvec improvments

2019-05-18 Thread Richard Henderson
Add support for bitsel and cmpsel primitives, which will be used by target/* patches that I'll post shortly. Improvements to the i386 and aarch64 backends. A handfull of bug fixes. Assert that we haven't forgotten a QEMU_ALIGNED() marker, by using MOVDQA for x86_64. r~ Richard Henderson

[Qemu-devel] [PATCH 05/16] tcg: Introduce do_op3_nofail for vector expansion

2019-05-18 Thread Richard Henderson
This makes do_op3 match do_op2 in allowing for failure, and thus fall back expansions. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c

[Qemu-devel] [PATCH 09/16] tcg/i386: Remove expansion for missing minmax

2019-05-18 Thread Richard Henderson
This is now handled by code within tcg-op-vec.c. Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 37 - 1 file changed, 37 deletions(-) diff --git a/tcg/i386/tcg-target.inc.c b/tcg/i386/tcg-target.inc.c index ffcafb1e14..569a2c2120 100644 ---

[Qemu-devel] [PATCH 10/16] tcg/i386: Use umin/umax in expanding unsigned compare

2019-05-18 Thread Richard Henderson
Using umin(a, b) == a as an expansion for TCG_COND_LEU is a better alternative to (a - INT_MIN) <= (b - INT_MIN). Signed-off-by: Richard Henderson --- tcg/i386/tcg-target.inc.c | 80 +-- 1 file changed, 61 insertions(+), 19 deletions(-) diff --git

[Qemu-devel] [PATCH 14/16] tcg/aarch64: Build vector immediates with two insns

2019-05-18 Thread Richard Henderson
Use MOVI+ORR or MVNI+BIC in order to build some vector constants, as opposed to dropping them to the constant pool. This includes all 16-bit constants and a similar set of 32-bit constants. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 47

[Qemu-devel] [PATCH 16/16] tcg/i386: Use MOVDQA for TCG_TYPE_V128 load/store

2019-05-18 Thread Richard Henderson
This instruction raises #GP, aka SIGSEGV, if the effective address is not aligned to 16-bytes. We have assertions in tcg-op-gvec.c that the offset from ENV is aligned, for vector types <= V128. But the offset itself does not validate that the final pointer is aligned -- one must also remember to

[Qemu-devel] [PATCH 13/16] tcg/aarch64: Use MVNI in tcg_out_dupi_vec

2019-05-18 Thread Richard Henderson
The compliment of a subset of immediates can be computed with a single instruction. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/tcg/aarch64/tcg-target.inc.c b/tcg/aarch64/tcg-target.inc.c index

[Qemu-devel] [PATCH 06/16] tcg: Expand vector minmax using cmp+cmpsel

2019-05-18 Thread Richard Henderson
Provide a generic fallback for the min/max operations. Signed-off-by: Richard Henderson --- tcg/tcg-op-vec.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tcg/tcg-op-vec.c b/tcg/tcg-op-vec.c index 004a34935b..501d9630a2 100644 --- a/tcg/tcg-op-vec.c

[Qemu-devel] [PATCH 11/16] tcg/aarch64: Support vector bitwise select value

2019-05-18 Thread Richard Henderson
The instruction set has 3 insns that perform the same operation, only varying in which operand must overlap the destination. We can represent the operation without overlap and choose based on the operands seen. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.h | 2 +-

[Qemu-devel] [PATCH 12/16] tcg/aarch64: Split up is_fimm

2019-05-18 Thread Richard Henderson
There are several sub-classes of vector immediate, and only MOVI can use them all. This will enable usage of MVNI and ORRI, which use progressively fewer sub-classes. This patch adds no new functionality, merely splits the function and moves part of the logic into tcg_out_dupi_vec.

[Qemu-devel] [PATCH 15/16] tcg/aarch64: Allow immediates for vector ORR and BIC

2019-05-18 Thread Richard Henderson
The allows immediates to be used for ORR and BIC, as well as the trivial inversions, ORC and AND. Signed-off-by: Richard Henderson --- tcg/aarch64/tcg-target.inc.c | 90 +--- 1 file changed, 83 insertions(+), 7 deletions(-) diff --git

[Qemu-devel] [PATCH 07/16] tcg: Add TCG_OPF_NOT_PRESENT if TCG_TARGET_HAS_foo is negative

2019-05-18 Thread Richard Henderson
If INDEX_op_foo is always expanded by tcg_expand_vec_op, then there may be no reasonable set of constraints to return from tcg_target_op_def for that opcode. Let TCG_TARGET_HAS_foo be specified as -1 in that case. Thus a boolean test for TCG_TARGET_HAS_foo is true, but we will not assert within

Re: [Qemu-devel] [PATCH] nvme: fix copy direction in DMA reads going to CMB

2019-05-18 Thread Heitke, Kenneth
On 5/18/2019 1:39 AM, Klaus Birkelund Jensen wrote: `nvme_dma_read_prp` erronously used `qemu_iovec_*to*_buf` instead of `qemu_iovec_*from*_buf` when the request involved the controller memory buffer. Signed-off-by: Klaus Birkelund Jensen --- hw/block/nvme.c | 2 +- 1 file changed, 1

Re: [Qemu-devel] [RISU v2 11/11] risu_reginfo_i386: accept named feature sets for --xfeature

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > Have the --xfeature option accept "sse", "avx" and "avx512" in > addition to a plain numerical value, purely for users' convenience. > > Suggested-by: Richard Henderson > Signed-off-by: Jan Bobek > --- > risu_reginfo_i386.c | 11 ++- > 1 file

Re: [Qemu-devel] [RISU v2 10/11] risu_reginfo_i386: replace xfeature constants with symbolic names

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > The original code used "magic numbers", which made it unclear in > some places. Include a reference to the Intel manual where the > constants' meaning is discussed. > > Signed-off-by: Jan Bobek > --- > risu_reginfo_i386.c | 48

Re: [Qemu-devel] [PATCH v4 4/5] target/mips: Refactor and fix COPY_U. instructions

2019-05-18 Thread Aleksandar Markovic
On Apr 2, 2019 3:44 PM, "Mateja Marjanovic" wrote: > > From: Mateja Marjanovic > > The old version of the helper for the COPY_U. MSA instructions > has been replaced with four helpers that don't use switch, and change > the endianness of the given index, when executed on a big endian host. > >

Re: [Qemu-devel] [RISU v2 04/11] risu_reginfo_i386: implement arch-specific reginfo interface

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > CPU-specific code in risu_reginfo_* is expected to define and export > the following symbols: > > - arch_long_opts, arch_extra_help, process_arch_opt > - reginfo_size > - reginfo_init > - reginfo_is_eq > - reginfo_dump, reginfo_dump_mismatch > > Make

Re: [Qemu-devel] [RISU v2 06/11] risu_i386: remove old unused code

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > The code being removed is a remnant of the past implementation; it has > since been replaced by its more powerful, architecture-independent > counterpart in reginfo.c. > > Reviewed-by: Alex Bennée > Signed-off-by: Jan Bobek > --- > risu_i386.c | 58

Re: [Qemu-devel] [PATCH v4 3/5] target/mips: Refactor and fix COPY_S. instructions

2019-05-18 Thread Aleksandar Markovic
On Apr 2, 2019 3:44 PM, "Mateja Marjanovic" wrote: > > From: Mateja Marjanovic > > The old version of the helper for the COPY_S. MSA instructions > has been replaced with four helpers that don't use switch, and change > the endianness of the given index, when executed on a big endian host. > >

Re: [Qemu-devel] [RISU v2 05/11] risu_i386: implement missing CPU-specific functions

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > risu_i386.c is expected to implement the following functions: > > - advance_pc > - get_reginfo_paramreg, set_ucontext_paramreg > - get_risuop > - get_pc > > This patch adds the necessary code. We use EAX as the parameter > register and opcode "UD1

Re: [Qemu-devel] [RISU v2 07/11] test_i386: change syntax from nasm to gas

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > This allows us to drop dependency on NASM and build the test image > with GCC only. Adds support for x86_64, too. > > Suggested-by: Richard Henderson > Signed-off-by: Jan Bobek > --- > Makefile| 3 +++ > test_i386.S | 41

Re: [Qemu-devel] [RISU v2 08/11] configure: add i386/x86_64 architectures

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > Now that i386 and x86_64 architectures are supported by RISU, we want > to detect them and build RISU for them automatically. > > Suggested-by: Richard Henderson > Signed-off-by: Jan Bobek > --- > configure | 10 ++ > 1 file changed, 6

Re: [Qemu-devel] [RISU v2 03/11] risu_i386: move reginfo-related code to risu_reginfo_i386.c

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > In order to build risu successfully for i386, we need files > risu_reginfo_i386.{h,c}; this patch adds the latter by extracting the > relevant code from risu_i386.c. > > This patch is pure code motion; no functional changes were made. > > Reviewed-by: Alex

Re: [Qemu-devel] [RISU v2 02/11] risu_i386: move reginfo_t and related defines to risu_reginfo_i386.h

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > In order to build risu successfully for i386, we need files > risu_reginfo_i386.{h,c}; this patch adds the former by extracting the > relevant code from risu_i386.c. > > This patch is pure code motion; no functional changes were made. > > Reviewed-by: Alex

Re: [Qemu-devel] [RISU v2 01/11] Makefile: undefine the arch name symbol

2019-05-18 Thread Richard Henderson
On 5/17/19 3:44 PM, Jan Bobek wrote: > At least GCC defines the symbol "i386" to 1 to signal the target > platform. We need to use "i386" as an undefined symbol in order to > correctly include risu_reginfo_i386.h from risu.h. Add an -U option to > the build command to make sure the symbol remains

Re: [Qemu-devel] [PATCH 4/4] pci: msix: move 'MSIX_CAP_LENGTH' to header file

2019-05-18 Thread Alex Williamson
On Fri, 17 May 2019 20:28:11 -0700 Li Qiang wrote: Lacking commit message. > CC: qemu-triv...@nongnu.org > Signed-off-by: Li Qiang > --- > hw/pci/msix.c | 2 -- > hw/vfio/pci.c | 2 -- > include/hw/pci/msix.h | 2 ++ > 3 files changed, 2 insertions(+), 4 deletions(-) > > diff

Re: [Qemu-devel] [PATCH 3/4] vfio: platform: fix a typo

2019-05-18 Thread Alex Williamson
On Fri, 17 May 2019 20:28:10 -0700 Li Qiang wrote: An actual trivial patch, but it could still use a commit message. > CC: qemu-triv...@nongnu.org > Signed-off-by: Li Qiang > --- > hw/vfio/platform.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git

Re: [Qemu-devel] [PATCH 2/4] hw: vfio: drop TYPE_FOO MACRO in VMStateDescription

2019-05-18 Thread Alex Williamson
On Fri, 17 May 2019 20:28:09 -0700 Li Qiang wrote: > As the vmstate structure names aren't related with > the QOM type names. Seems contrary to the first patch in the series. > CC: qemu-triv...@nongnu.org > Signed-off-by: Li Qiang > --- > hw/vfio/amd-xgbe.c | 2 +- > hw/vfio/ap.c

Re: [Qemu-devel] [PATCH 1/4] vfio: pci: make "vfio-pci-nohotplug" as MACRO

2019-05-18 Thread Alex Williamson
On Fri, 17 May 2019 20:28:08 -0700 Li Qiang wrote: Why? (No commit message, nor cover letter) > CC: qemu-triv...@nongnu.org > Signed-off-by: Li Qiang > --- > hw/vfio/pci.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c > index

Re: [Qemu-devel] [RISU v2 00/11] Support for i386/x86_64 with vector extensions

2019-05-18 Thread Alex Bennée
Jan Bobek writes: > This patch series adds support for i386 and x86_64 architectures to > RISU. Notably, vector registers (SSE, AVX, AVX-512) are supported for > verification of the apprentice. This is V2 of the series posted in > [1]. > > I decided not to drop the register definitions from

[Qemu-devel] [PATCH] target/sparc:Remove multiple errors and warnings generated by checkpatch tool within the file target/sparc/asi.h.

2019-05-18 Thread Jules Irenge
Remove multiple errors and warnings generated by checkpatch.pl tool.\nERROR: code indent should never use tabs\nERROR: trailing whitespace\nWARNING: Block comments use a leading /* on a separate line --- target/sparc/asi.h | 352 - 1 file

[Qemu-devel] [Bug 1824622] Re: Qemu 4.0.0-rc3 COLO Primary Crashes with "Assertion `event_unhandled_count > 0' failed."

2019-05-18 Thread Lukas Straub
Fix applied to qemu 4.1 ** Changed in: qemu Status: New => Fix Released -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1824622 Title: Qemu 4.0.0-rc3 COLO Primary Crashes with "Assertion

[Qemu-devel] [Bug 1829576] Re: QEMU-SYSTEM-PPC64 Regression QEMU-4.0.0

2019-05-18 Thread Mark Cave-Ayland
I suspect that this may be related to the VSR register conversion. Can you try applying all of the patches below on top of 4.0 to see if they resolve the issue? https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg01254.html https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg01256.html

[Qemu-devel] [PATCH] nvme: fix copy direction in DMA reads going to CMB

2019-05-18 Thread Klaus Birkelund Jensen
`nvme_dma_read_prp` erronously used `qemu_iovec_*to*_buf` instead of `qemu_iovec_*from*_buf` when the request involved the controller memory buffer. Signed-off-by: Klaus Birkelund Jensen --- hw/block/nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/block/nvme.c

Re: [Qemu-devel] [Qemu-block] [PATCH] nvme: add Get/Set Feature Timestamp support

2019-05-18 Thread Klaus Birkelund
On Fri, May 17, 2019 at 07:49:18PM -0600, Heitke, Kenneth wrote: > > > > > > +if (qemu_iovec_from_buf(, 0, ptr, len) != len) { > > > > > > > > > > This should be `qemu_iovec_to_buf`. > > > > > > > > > > > > > This function is transferring data from the "host" to the device so I > > > >

Re: [Qemu-devel] [PATCH] configure: Fix spelling of sdl-image in --help

2019-05-18 Thread Thomas Huth
On 17/05/2019 20.32, Markus Armbruster wrote: > Fixes: a442fe2f2b2f20e7be0934277e9400b844b11999 > Cc: qemu-triv...@nongnu.org > Signed-off-by: Markus Armbruster > --- > configure | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/configure b/configure > index