Re: [Qemu-devel] Qemu the right way.

2018-12-25 Thread Thomas Huth
On 2018-12-25 23:46, liebre...@grossmann-venter.com wrote: > I have been using Qemu in the past about 8 years ago or so to run legacy > windows software. > > I installed the latest qemu and noticed a lot changed and cant find > conclusive answers online. > > I am writing this post to find what is

Re: [Qemu-devel] [PATCH v5 2/3] tcg: introduce dynamic TLB sizing

2018-12-25 Thread Richard Henderson
On 12/15/18 4:42 AM, Emilio G. Cota wrote: > +#if TCG_TARGET_IMPLEMENTS_DYN_TLB > +#define CPU_TLB_DYN_MIN_BITS 6 > +#define CPU_TLB_DYN_DEFAULT_BITS 8 > +/* > + * Assuming TARGET_PAGE_BITS==12, with 2**22 entries we can cover 2**(22+12) > == > + * 2**34 == 16G of address space. This is roughly wh

Re: [Qemu-devel] [PATCH v3 2/2] intel-iommu: extend VTD emulation to allow 57-bit IOVA address width.

2018-12-25 Thread Yu Zhang
On Tue, Dec 25, 2018 at 12:00:08PM -0500, Michael S. Tsirkin wrote: > On Sat, Dec 22, 2018 at 08:41:37AM +0800, Yu Zhang wrote: > > On Fri, Dec 21, 2018 at 01:10:13PM -0500, Michael S. Tsirkin wrote: > > > On Sat, Dec 22, 2018 at 01:34:01AM +0800, Yu Zhang wrote: > > > > On Fri, Dec 21, 2018 at 12:

Re: [Qemu-devel] [PATCH v3 1/2] intel-iommu: differentiate host address width from IOVA address width.

2018-12-25 Thread Yu Zhang
On Tue, Dec 25, 2018 at 11:56:19AM -0500, Michael S. Tsirkin wrote: > On Sat, Dec 22, 2018 at 09:11:26AM +0800, Yu Zhang wrote: > > On Fri, Dec 21, 2018 at 02:02:28PM -0500, Michael S. Tsirkin wrote: > > > On Sat, Dec 22, 2018 at 01:37:58AM +0800, Yu Zhang wrote: > > > > On Fri, Dec 21, 2018 at 12:

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

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181220183059.20726-1-...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20181220183059.20726-1-...@redhat.com Type: series Subject: [Qemu-devel] [PULL v3 00/44] pci, pc, virtio: fi

Re: [Qemu-devel] [PATCH 0/3] Fix & improve icon display on GTK and SDL frontends

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181218142629.15943-1-berra...@redhat.com/ Hi, This series failed the docker-mingw@fedora build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN ===

[Qemu-devel] [PATCH] slirp: Use lduw_be_p in slirp_input

2018-12-25 Thread Richard Henderson
The pointer may be unaligned, so we must use our routines for that. At the same time, we might as well use the big-endian version instead of ntohs. This fixes sparc64 host SIGBUS during pxe boot. Signed-off-by: Richard Henderson --- slirp/slirp.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

[Qemu-devel] [PATCH] qom: Include qemu/fprintf-fn.h in cpu.h

2018-12-25 Thread Priit Laes
QOM cpu.h uses fprintf_function which requires Qemu's qemu/fprintf-fn.h header. Include it. Signed-off-by: Priit Laes --- include/qom/cpu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/qom/cpu.h b/include/qom/cpu.h index 1396f53e5b..6d1ba53d72 100644 --- a/include/qom/cpu.h +++ b/

Re: [Qemu-devel] [PATCH v2 00/23] Add RISC-V TCG backend support

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/cover.1545246859.git.alistair.fran...@wdc.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: cover.1545246859.git.alistair.fran...@wdc.com Type: series Subject: [Qemu-devel] [PATCH v2 00/23]

Re: [Qemu-devel] AVX support for TCG

2018-12-25 Thread Richard Henderson
On 12/26/18 12:28 PM, Nick Renieris wrote: > Hi Richard, > > I did know about https://github.com/andikleen/qemu-avx but didn't > mention it as it seems abandoned and quite old (also it doesn't use > `TCGv_vec`). Yep. Mine pre-dates tcg-op-gvec.h as well. > Do you think this could work as a GSoC

Re: [Qemu-devel] AVX support for TCG

2018-12-25 Thread Nick Renieris
Hi Richard, I did know about https://github.com/andikleen/qemu-avx but didn't mention it as it seems abandoned and quite old (also it doesn't use `TCGv_vec`). Do you think this could work as a GSoC project? I'm potentially interested in working on it this summer. Thanks, Nick R. Στις Τετ, 26 Δεκ

Re: [Qemu-devel] AVX support for TCG

2018-12-25 Thread Richard Henderson
On 12/26/18 10:43 AM, Nick Renieris wrote: > Hello, > > What's the current status on AVX support for TCG? Is there anyone working on > it? > Is there interest for it? A couple of people, including myself, have started on it, but no results posted so far. It's a large amount of work to clean up

[Qemu-devel] AVX support for TCG

2018-12-25 Thread Nick Renieris
Hello, What's the current status on AVX support for TCG? Is there anyone working on it? Is there interest for it? Effort was put into making 'TCGv_vec', as elaborated in this talk: "[2017] Vectoring in on QEMU's TCG Engine by Alex Bennée" (https://www.youtube.com/watch?v=IYHTwnde0g8) ,yet there

[Qemu-devel] Qemu the right way.

2018-12-25 Thread liebrecht
I have been using Qemu in the past about 8 years ago or so to run legacy windows software. I installed the latest qemu and noticed a lot changed and cant find conclusive answers online. I am writing this post to find what is the right way to start to set up qemu with a windows 7 pro guest. I

[Qemu-devel] Qemu the right way.

2018-12-25 Thread liebrecht
I have been using Qemu in the past about 8 years ago or so to run legacy windows software. I installed the latest qemu and noticed a lot changed and cant find conclusive answers online. I am writing this post to find what is the right way to start to set up qemu with a windows 7 pro guest. I

[Qemu-devel] [PULL 36/42] tcg: Dump register preference info with liveness

2018-12-25 Thread Richard Henderson
Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.h | 3 --- tcg/tcg.c | 44 +--- 2 files changed, 37 insertions(+), 10 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h index c6721cc7a7..5e5cf686a3 100644 --- a/tcg/tcg.h +++ b/tcg/t

[Qemu-devel] [PULL 33/42] tcg: Add preferred_reg argument to tcg_reg_alloc_do_movi

2018-12-25 Thread Richard Henderson
Pass this through to temp_sync. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index fe060c481a..7844158a8a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -3077,7 +3077,8 @@

[Qemu-devel] [PULL 29/42] tcg: Add reachable_code_pass

2018-12-25 Thread Richard Henderson
Delete trivially dead code that follows unconditional branches and noreturn helpers. These can occur either via optimization or via the structure of a target's translator following an exception. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 76 +++

[Qemu-devel] [PULL 27/42] tcg: Add TCG_CALL_NO_RETURN

2018-12-25 Thread Richard Henderson
Remember which helpers have been marked noreturn. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- include/exec/helper-head.h | 13 + include/exec/helper-tcg.h | 21 ++--- tcg/tcg.h | 2 ++ 3 files changed, 29 insertions(+), 7 delet

[Qemu-devel] [PULL 26/42] tcg: Renumber TCG_CALL_* flags

2018-12-25 Thread Richard Henderson
Previously, the low 4 bits were used for TCG_CALL_TYPE_MASK, which was removed in 6a18ae2d2947532d5c26439548afa0481c4529f9. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tcg/tcg.h b/tcg/tcg.h

[Qemu-devel] [PULL 42/42] tcg: Improve call argument loading

2018-12-25 Thread Richard Henderson
Free the argument register only after we have verified that the temporary is not already in that register. This case is likely now that we are back propagating the preferred register. Signed-off-by: Richard Henderson --- tcg/tcg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --

[Qemu-devel] [PULL 24/42] disas/microblaze: Remove unused REG_SP macro

2018-12-25 Thread Richard Henderson
This causes a build error with debian sid, riscv64 host: disas/microblaze.c:179: error: "REG_SP" redefined [-Werror] #define REG_SP 1 /* stack pointer */ In file included from /usr/include/signal.h:306, from include/qemu/osdep.h:101, from disas/microblaze.c:36:

[Qemu-devel] [PULL 22/42] disas: Add RISC-V support

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- disas.c | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/disas.c b/disas.c index f9c517b358..d9a

[Qemu-devel] [PULL 40/42] tcg: Add TCG_OPF_BB_EXIT

2018-12-25 Thread Richard Henderson
Use this to notice the opcodes that exit the TB, which implies that local temps are really dead and need not be synced. Previously we so marked the true end of the TB, but that was immediately overwritten by the la_bb_end invoked by any TCG_OPF_BB_END opcode, like exit_tb. Reviewed-by: Emilio G.

[Qemu-devel] [PULL 41/42] tcg: Record register preferences during liveness

2018-12-25 Thread Richard Henderson
With these preferences, we can arrange for function call arguments to be computed into the proper registers instead of requiring extra moves. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 197 +- 1 file changed,

[Qemu-devel] [PULL 37/42] tcg: Reindent parts of liveness_pass_1

2018-12-25 Thread Richard Henderson
There are two blocks of the form if (foo) { stuff1; goto bar; } else { baz: stuff2; } which have unnecessary and confusing indentation. Remove the else and unindent stuff2. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 139

[Qemu-devel] [PULL 18/42] tcg/riscv: Add the out op decoder

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <7c47f00cb4a9a777120456e0704b4076a5d943ab.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 496 +++

[Qemu-devel] [PULL 39/42] tcg: Split out more subroutines from liveness_pass_1

2018-12-25 Thread Richard Henderson
Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 35 +++ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 0afc6ba1e6..4f0acf8863 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2395,6 +2395,26 @@ st

[Qemu-devel] [PULL 34/42] tcg: Add output_pref to TCGOp

2018-12-25 Thread Richard Henderson
Allocate storage for, but do not yet fill in, per-opcode preferences for the output operands. Pass it in to the register allocation routines for output operands. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.h | 3 +++ tcg/tcg.c | 18 +++--- 2 files chan

[Qemu-devel] [PULL 16/42] tcg/riscv: Add slowpath load and store instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <1a0a7e8f3347764f212c5efa5c07c9be17efdec6.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 256 +++

[Qemu-devel] [PULL 38/42] tcg: Rename and adjust liveness_pass_1 helpers

2018-12-25 Thread Richard Henderson
No need for a "tcg_" prefix for a static function; we already have another "la_" prefix for indicating liveness analysis. Pass in nb_globals and nb_temps, as we will already have them in registers for other loops within the parent function. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Hende

[Qemu-devel] [PULL 35/42] tcg: Improve register allocation for matching constraints

2018-12-25 Thread Richard Henderson
Try harder to honor the output_pref. When we're forced to allocate a second register for the input, it does not need to use the input constraint; that will be honored by the register we allocate for the output and a move is already required. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Hen

[Qemu-devel] [PULL 31/42] tcg: Add preferred_reg argument to temp_load

2018-12-25 Thread Richard Henderson
Pass this through to tcg_reg_alloc. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 210bd5c6b9..351d302a68 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -283

[Qemu-devel] [PULL 14/42] tcg/riscv: Add the add2 and sub2 instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Reviewed-by: Richard Henderson Message-Id: <5665a57809e32b35775e8e98fdab898853af37b8.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 55 ++ 1

[Qemu-devel] [PULL 23/42] configure: Add support for building RISC-V host

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <52160afacecc5b109dc43a412fa3e74ddd6277fb.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- configure | 12 ++-- 1 file changed,

[Qemu-devel] [PULL 32/42] tcg: Add preferred_reg argument to temp_sync

2018-12-25 Thread Richard Henderson
Pass this through to tcg_reg_alloc. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tcg/tcg.c b/tcg/tcg.c index 351d302a68..fe060c481a 100644 --- a/tcg/tcg.c +++ b/tcg/tcg.c @@ -2865,

[Qemu-devel] [PULL 10/42] tcg/riscv: Add the relocation functions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <6ac4f4b0d5ea93cb0ee9a3b8b47ee9f7b3711494.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 88

[Qemu-devel] [PULL 30/42] tcg: Add preferred_reg argument to tcg_reg_alloc

2018-12-25 Thread Richard Henderson
This new argument will aid register allocation by indicating how the temporary will be used in future. If the preference cannot be satisfied, fall back to the constraints of the current insn. Short circuit the preference when it cannot be satisfied or if it does not further constrain the operatio

[Qemu-devel] [PULL 20/42] tcg/riscv: Add the target init code

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/tcg/riscv/tcg-

[Qemu-devel] [PULL 28/42] tcg: Reference count labels

2018-12-25 Thread Richard Henderson
Increment when adding branches, and decrement when removing them. Reviewed-by: Emilio G. Cota Signed-off-by: Richard Henderson --- tcg/tcg-op.h | 1 + tcg/tcg.h| 3 ++- tcg/tcg-op.c | 2 ++ tcg/tcg.c| 20 4 files changed, 25 insertions(+), 1 deletion(-) diff --g

[Qemu-devel] [PULL 25/42] linux-user: Add safe_syscall for riscv64 host

2018-12-25 Thread Richard Henderson
Reviewed-by: Alistair Francis Signed-off-by: Richard Henderson --- linux-user/host/riscv64/hostdep.h | 23 +++ linux-user/host/riscv64/safe-syscall.inc.S | 77 ++ 2 files changed, 100 insertions(+) create mode 100644 linux-user/host/riscv64/safe-syscall.inc.S d

[Qemu-devel] [PULL 09/42] tcg/riscv: Add the instruction emitters

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 48 ++ 1 file changed, 48 insertions(+) diff --git a/tcg/ris

[Qemu-devel] [PULL 19/42] tcg/riscv: Add the prologue generation and register the JIT

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 111 + 1 file changed, 111 insertions(+) diff --git a/tcg/ri

[Qemu-devel] [PULL 17/42] tcg/riscv: Add direct load and store instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <2e047a95c39c007c66cda024c095e29b0ac4c43e.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 158 +++

[Qemu-devel] [PULL 21/42] tcg: Add RISC-V cpu signal handler

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- accel/tcg/user-exec.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/accel/t

[Qemu-devel] [PULL 15/42] tcg/riscv: Add branch and jump instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 145 + 1 file changed, 145 insertions(+) diff --git a/tcg/ri

[Qemu-devel] [PULL 08/42] tcg/riscv: Add the immediate encoders

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 90 ++ 1 file changed, 90 insertions(+) diff --git a/tcg/ris

[Qemu-devel] [PULL 13/42] tcg/riscv: Add the out load and store instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 65 ++ 1 file changed, 65 insertions(+) diff --git a/tcg/ris

[Qemu-devel] [PULL 12/42] tcg/riscv: Add the extract instructions

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 34 ++ 1 file changed, 34 insertions(+) diff --git a/tcg/riscv/t

[Qemu-devel] [PULL 07/42] tcg/riscv: Add support for the constraints

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 168 + 1 file changed, 168 insertions(+) diff --git a/tcg/ri

[Qemu-devel] [PULL 11/42] tcg/riscv: Add the mov and movi instruction

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/tcg/ris

[Qemu-devel] [PULL 02/42] linux-user: Add host dependency for RISC-V 32-bit

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <76f8f9383a766dbcade883e897dec8cfef669799.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- linux-user/host/riscv32/hostdep.h | 11 +

[Qemu-devel] [PULL 06/42] tcg/riscv: Add the tcg target registers

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <6e43abaa64361d57b9bc9439820d0e7701f2d47e.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.inc.c | 118 +++

[Qemu-devel] [PULL 03/42] linux-user: Add host dependency for RISC-V 64-bit

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <9d777f619840a8dd8e4f3834dcfc3bd28e052ccd.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- linux-user/host/riscv64/hostdep.h | 11 +

[Qemu-devel] [PULL 05/42] tcg/riscv: Add the tcg-target.h file

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: Signed-off-by: Richard Henderson --- tcg/riscv/tcg-target.h | 177 + MAINTAINERS| 10 ++- 2 files changed, 186

[Qemu-devel] [PULL 04/42] exec: Add RISC-V GCC poison macro

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <00d02e34f10b87fd61f8dc69ac93d1eb63df949c.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- include/exec/poison.h | 1 + 1 file changed,

[Qemu-devel] [PULL 01/42] elf.h: Add the RISCV ELF magic numbers

2018-12-25 Thread Richard Henderson
From: Alistair Francis Signed-off-by: Alistair Francis Signed-off-by: Michael Clark Reviewed-by: Richard Henderson Message-Id: <02fc0b3a733f5f08eb396bee5afd3d327941f0c9.1545246859.git.alistair.fran...@wdc.com> Signed-off-by: Richard Henderson --- include/elf.h | 55 +

[Qemu-devel] [PULL 00/42] tcg queued patches

2018-12-25 Thread Richard Henderson
The following changes since commit 9b2e891ec5ccdb4a7d583b77988848282606fdea: Merge remote-tracking branch 'remotes/marcel/tags/rdma-pull-request' into staging (2018-12-22 11:25:31 +) are available in the Git repository at: https://github.com/rth7680/qemu.git tags/pull-tcg-20181226 for

Re: [Qemu-devel] [PATCH 2/2] fp-bench: remove wrong exponent raise in fill_random

2018-12-25 Thread Richard Henderson
On 12/22/18 6:52 AM, Emilio G. Cota wrote: > At this point random_ops[] only contains normals, so there's > no need to do anything to them. In fact, raising the exponent > here can make the output !normal, which is precisely > what the comment says we want to avoid. > > Signed-off-by: Emilio G. Co

Re: [Qemu-devel] [PATCH 1/2] fp-bench: fix update_random_ops

2018-12-25 Thread Richard Henderson
On 12/22/18 6:51 AM, Emilio G. Cota wrote: > The second test in the branches is wrong; fix while converting > to a switch statement, which is easier to get right. > > Signed-off-by: Emilio G. Cota > --- > tests/fp/fp-bench.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) Wh

Re: [Qemu-devel] [PATCH 6/6] target/ppc: remove various HOST_WORDS_BIGENDIAN hacks in int_helper.c

2018-12-25 Thread Richard Henderson
On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: > -#define VEXT_SIGNED(name, element, mask, cast, recast) \ > +#define VEXT_SIGNED(name, element, access, mask, cast, recast) \ > void helper_##name(ppc_avr_t *r, ppc_avr_t *b) \ > {

Re: [Qemu-devel] [PATCH 5/6] target/ppc: eliminate use of EL_IDX macros from int_helper.c

2018-12-25 Thread Richard Henderson
On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: > These macros can be eliminated by instead using the relavant Vsr* macros in > the few locations where they appear. > > Signed-off-by: Mark Cave-Ayland > --- > target/ppc/int_helper.c | 66 > - > 1 fi

Re: [Qemu-devel] [PATCH 3/6] target/ppc: rework vmul{e, o}{s, u}{b, h, w} instructions to use Vsr* macros

2018-12-25 Thread Richard Henderson
On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: > -#define VMUL_DO(name, mul_element, prod_element, cast, evenp) \ > +#define VMUL_DO_EVN(name, mul_element, mul_access, prod_access, cast) \ > void helper_v##name(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b) \ > {

Re: [Qemu-devel] [PATCH 1/6] target/ppc: implement complete set of Vsr* macros

2018-12-25 Thread Richard Henderson
On 12/23/18 10:38 PM, Mark Cave-Ayland wrote: > This prepares us for eliminating the use of direct array access within the VMX > instruction implementations. > > Signed-off-by: Mark Cave-Ayland > --- > target/ppc/internal.h | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) Reviewe

Re: [Qemu-devel] [PATCH 5/6] target/mips: MXU: Add handlers for max/min instructions

2018-12-25 Thread Richard Henderson
Sorry I missed the original post, but: > +} else if (unlikely((XRb == 0) && (XRc == 0))) { > +/* both operands zero registers -> just set destination to zero */ > +tcg_gen_movi_i32(mxu_gpr[XRa - 1], 0); > +} else if (unlikely((XRb == 0) || (XRc == 0))) { > +/* exact

Re: [Qemu-devel] [RFC PATCH v2 0/7] ui: add generic keyboard state tracker, fix keymap

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181219120904.17643-1-kra...@redhat.com/ Hi, This series failed the docker-quick@centos7 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 === #

Re: [Qemu-devel] [PATCH v3 2/2] intel-iommu: extend VTD emulation to allow 57-bit IOVA address width.

2018-12-25 Thread Michael S. Tsirkin
On Sat, Dec 22, 2018 at 08:41:37AM +0800, Yu Zhang wrote: > On Fri, Dec 21, 2018 at 01:10:13PM -0500, Michael S. Tsirkin wrote: > > On Sat, Dec 22, 2018 at 01:34:01AM +0800, Yu Zhang wrote: > > > On Fri, Dec 21, 2018 at 12:15:26PM -0500, Michael S. Tsirkin wrote: > > > > On Sat, Dec 22, 2018 at 12:

Re: [Qemu-devel] [PATCH v3 1/2] intel-iommu: differentiate host address width from IOVA address width.

2018-12-25 Thread Michael S. Tsirkin
On Sat, Dec 22, 2018 at 09:11:26AM +0800, Yu Zhang wrote: > On Fri, Dec 21, 2018 at 02:02:28PM -0500, Michael S. Tsirkin wrote: > > On Sat, Dec 22, 2018 at 01:37:58AM +0800, Yu Zhang wrote: > > > On Fri, Dec 21, 2018 at 12:04:49PM -0500, Michael S. Tsirkin wrote: > > > > On Sat, Dec 22, 2018 at 12:

Re: [Qemu-devel] [PATCH] tests/tcg: add barrier test for ARM

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181219183902.27273-1-alex.ben...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20181219183902.27273-1-alex.ben...@linaro.org Type: series Subject: [Qemu-devel] [PATCH] tests/tcg:

Re: [Qemu-devel] [PULL v2 00/35] Misc patches for 2018-12-18

2018-12-25 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20181219151917.3874-1-pbonz...@redhat.com/ Hi, This series seems to have some coding style problems. See output below for more information: Message-id: 20181219151917.3874-1-pbonz...@redhat.com Type: series Subject: [Qemu-devel] [PULL v2 00/35] Misc patche

[Qemu-devel] [PATCH for-4.0 v9 16/16] qemu_thread_join: fix segmentation fault

2018-12-25 Thread Fei Li
To avoid the segmentation fault in qemu_thread_join(), just directly return when the QemuThread *thread failed to be created in either qemu-thread-posix.c or qemu-thread-win32.c. Cc: Stefan Weil Signed-off-by: Fei Li Reviewed-by: Fam Zheng --- util/qemu-thread-posix.c | 3 +++ util/qemu-thread

[Qemu-devel] [PATCH for-4.0 v9 13/16] qemu_thread: supplement error handling for migration

2018-12-25 Thread Fei Li
Update qemu_thread_create()'s callers by - setting an error on qemu_thread_create() failure for callers that set an error on failure; - reporting the error and returning failure for callers that return an error code on failure; - reporting the error and setting some state for callers that just

[Qemu-devel] [PATCH for-4.0 v9 06/16] qemu_thread: Make qemu_thread_create() handle errors properly

2018-12-25 Thread Fei Li
qemu_thread_create() abort()s on error. Not nice. Give it a return value and an Error ** argument, so it can return success/failure. Considering qemu_thread_create() is quite widely used in qemu, split this into two steps: this patch passes the &error_abort to qemu_thread_create() everywhere, and

[Qemu-devel] [PATCH for-4.0 v9 07/16] qemu_thread: supplement error handling for qemu_X_start_vcpu

2018-12-25 Thread Fei Li
The callers of qemu_init_vcpu() already passed the **errp to handle errors. In view of this, add a new Error parameter to qemu_init_vcpu() and all qemu_X_start_vcpu() functions called by qemu_init_vcpu() to propagate the error and let the further callers check it. Besides, make qemu_init_vcpu() re

[Qemu-devel] [PATCH for-4.0 v9 12/16] qemu_thread: supplement error handling for iothread_complete/qemu_signalfd_compat

2018-12-25 Thread Fei Li
For iothread_complete: utilize the existed errp to propagate the error and do the corresponding cleanup to replace the temporary &error_abort. For qemu_signalfd_compat: add a local_err to hold the error, and return the corresponding error code to replace the temporary &error_abort. Cc: Markus Arm

[Qemu-devel] [PATCH for-4.0 v9 10/16] qemu_thread: supplement error handling for h_resize_hpt_prepare

2018-12-25 Thread Fei Li
Add a local_err to hold the error, and return the corresponding error code to replace the temporary &error_abort. Cc: Markus Armbruster Cc: David Gibson Signed-off-by: Fei Li --- hw/ppc/spapr_hcall.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hw/ppc/spapr_

[Qemu-devel] [PATCH for-4.0 v9 03/16] migration: remove unused &local_err parameter in multifd_save_cleanup

2018-12-25 Thread Fei Li
Always call migrate_set_error() to set the error state without relying on whether multifd_save_cleanup() succeeds. As the passed &local_err is never used in multifd_save_cleanup(), remove it. And make the function be: void multifd_save_cleanup(void). Cc: Dr. David Alan Gilbert Signed-off-by: Fei

[Qemu-devel] [PATCH for-4.0 v9 15/16] qemu_thread: supplement error handling for touch_all_pages

2018-12-25 Thread Fei Li
Supplement the error handling for touch_all_pages: add an Error parameter for it to propagate the error to its caller to do the handling in case it fails. Cc: Markus Armbruster Signed-off-by: Fei Li --- util/oslib-posix.c | 25 - 1 file changed, 16 insertions(+), 9 delet

[Qemu-devel] [PATCH for-4.0 v9 11/16] qemu_thread: supplement error handling for emulated_realize

2018-12-25 Thread Fei Li
Utilize the existed errp to propagate the error and do the corresponding cleanup to replace the temporary &error_abort. Cc: Cc: Markus Armbruster Cc: Gerd Hoffmann Signed-off-by: Fei Li --- hw/usb/ccid-card-emulated.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff

[Qemu-devel] [PATCH for-4.0 v9 05/16] migration: unify error handling for process_incoming_migration_co

2018-12-25 Thread Fei Li
In the current code, if process_incoming_migration_co() fails we do the same error handing: set the error state, close the source file, do the cleanup for multifd, and then exit(EXIT_FAILURE). To make the code clearer, add a "goto fail" to unify the error handling. Cc: Markus Armbruster Cc: Dr. D

[Qemu-devel] [PATCH for-4.0 v9 14/16] qemu_thread: supplement error handling for vnc_start_worker_thread

2018-12-25 Thread Fei Li
Supplement the error handling for vnc_thread_worker_thread: add an Error parameter for it to propagate the error to its caller to handle in case it fails, and make it return a Boolean to indicate whether it succeeds. Cc: Markus Armbruster Cc: Gerd Hoffmann Signed-off-by: Fei Li --- ui/vnc-jobs

[Qemu-devel] [PATCH for-4.0 v9 08/16] qemu_thread: supplement error handling for qmp_dump_guest_memory

2018-12-25 Thread Fei Li
Utilize the existed errp to propagate the error instead of the temporary &error_abort. Cc: Markus Armbruster Cc: Marc-André Lureau Signed-off-by: Fei Li --- dump.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dump.c b/dump.c index c35d6ddd22..ef5ea324fa 100644 ---

[Qemu-devel] [PATCH for-4.0 v9 02/16] migration: fix the multifd code when receiving less channels

2018-12-25 Thread Fei Li
In our current code, when multifd is used during migration, if there is an error before the destination receives all new channels, the source keeps running, however the destination does not exit but keeps waiting until the source is killed deliberately. Fix this by dumping the specific error and l

[Qemu-devel] [PATCH for-4.0 v9 09/16] qemu_thread: supplement error handling for pci_edu_realize

2018-12-25 Thread Fei Li
Utilize the existed errp to propagate the error instead of the temporary &error_abort. Cc: Markus Armbruster Cc: Jiri Slaby Signed-off-by: Fei Li --- hw/misc/edu.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/misc/edu.c b/hw/misc/edu.c index 3f4ba7ded3..011fe6e

[Qemu-devel] [PATCH for-4.0 v9 04/16] migration: add more error handling for postcopy_ram_enable_notify

2018-12-25 Thread Fei Li
Call postcopy_ram_incoming_cleanup() to do the cleanup when postcopy_ram_enable_notify fails. Besides, report the error message when qemu_ram_foreach_migratable_block() fails. Cc: Dr. David Alan Gilbert Signed-off-by: Fei Li Reviewed-by: Dr. David Alan Gilbert --- migration/postcopy-ram.c | 1

[Qemu-devel] [PATCH for-4.0 v9 00/16] qemu_thread_create: propagate the error to callers to handle

2018-12-25 Thread Fei Li
Hi, This idea comes from BiteSizedTasks, and this patch series implement the error checking of qemu_thread_create: make qemu_thread_create return a flag to indicate if it succeeded rather than failing with an error; make all callers check it. The first and the last patch fixes some segmentation f

[Qemu-devel] [PATCH for-4.0 v9 01/16] Fix segmentation fault when qemu_signal_init fails

2018-12-25 Thread Fei Li
When qemu_signal_init() fails in qemu_init_main_loop(), we return without setting an error. Its callers crash then when they try to report the error with error_report_err(). To avoid such segmentation fault, add a new Error parameter to make the call trace to propagate the err to the final caller

[Qemu-devel] [PATCH v1] dump: Set correct vaddr for ELF dump

2018-12-25 Thread Jon Doron
vaddr needs to be equal to the paddr since the dump file represents the physical memory image. Without setting vaddr correctly, GDB would load all the different memory regions on top of each other to vaddr 0, thus making GDB showing the wrong memory data for a given address. Signed-off-by: Jon Do

Re: [Qemu-devel] [PATCH for-4.0 v8 6/7] qemu_thread_create: propagate the error to callers to handle

2018-12-25 Thread Fei Li
Hi all, As I am leaving my current company and most reviewers are on holiday, I'd like to send a new version now: v9: "qemu_thread: Make qemu_thread_create() handle errors properly", although some details like whether it is appropriate to report the error to be seen by the management layer. And I

Re: [Qemu-devel] [PATCH] hw/core: fix whitespace in a sentence

2018-12-25 Thread Philippe Mathieu-Daudé
On 12/24/18 4:49 PM, Wainer dos Santos Moschetta wrote: > Signed-off-by: Wainer dos Santos Moschetta Reviewed-by: Philippe Mathieu-Daudé > --- > hw/core/machine.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/core/machine.c b/hw/core/machine.c > index 4439ea663f.

Re: [Qemu-devel] [PATCH v2] softfloat: enforce softfloat if the host's FMA is broken

2018-12-25 Thread Philippe Mathieu-Daudé
On Tue, Dec 25, 2018 at 12:15 PM Philippe Mathieu-Daudé wrote: > > Hi Emilio, > > On 12/25/18 8:03 AM, Emilio G. Cota wrote: > > The added branch to the FMA ops is marked as unlikely and therefore > > its impact on performance (measured with fp-bench) is within noise range > > when measured on an

Re: [Qemu-devel] [PATCH v2] softfloat: enforce softfloat if the host's FMA is broken

2018-12-25 Thread Philippe Mathieu-Daudé
Hi Emilio, On 12/25/18 8:03 AM, Emilio G. Cota wrote: > The added branch to the FMA ops is marked as unlikely and therefore > its impact on performance (measured with fp-bench) is within noise range > when measured on an Intel(R) Xeon(R) Gold 6142 CPU @ 2.60GHz. Did you forget to write here the r

Re: [Qemu-devel] [PATCH v2 27/52] audio: use size_t where makes sense

2018-12-25 Thread Philippe Mathieu-Daudé
Hi Zoltán, On 12/23/18 9:52 PM, Kővágó, Zoltán wrote: > Signed-off-by: Kővágó, Zoltán > --- > audio/alsaaudio.c | 8 +- > audio/audio.c | 162 > audio/audio.h | 4 +- > audio/audio_int.h | 22 +++--- > audio/audio_temp

Re: [Qemu-devel] [PATCH v2 52/52] usbaudio: change playback counters to 64 bit

2018-12-25 Thread Philippe Mathieu-Daudé
On 12/23/18 9:52 PM, Kővágó, Zoltán wrote: > With stereo playback, they need about 375 minutes of continuous audio > playback to overflow, which is usually not a problem (as stopping and > later resuming playback resets the counters). But with 7.1 audio, they > only need about 95 minutes to overfl

Re: [Qemu-devel] [PATCH v2 00/52] Audio 5.1 patches

2018-12-25 Thread Philippe Mathieu-Daudé
Hi Zoltán, On 12/23/18 9:51 PM, Kővágó, Zoltán wrote: > I've updated my audio patchset to the current git master. Other than that not > much happened since my last update [1], fixed a few small problems that I > noticed while rebasing my patches. For a such series with refactors and typedefs chan

Re: [Qemu-devel] [PATCH v2 23/52] audio: remove audio_MIN, audio_MAX

2018-12-25 Thread Philippe Mathieu-Daudé
On 12/24/18 9:48 PM, Kővágó Zoltán wrote: > On 2018-12-24 18:16, Philippe Mathieu-Daudé wrote: >> On 12/24/18 3:16 AM, Zoltán Kővágó wrote: >>> Hi Phil, >>> >>> On 2018-12-24 00:49, Philippe Mathieu-Daudé wrote: Hi Zoltán, On 12/23/18 9:51 PM, Kővágó, Zoltán wrote: > There's alre

Re: [Qemu-devel] [Qemu-block] do not lseek in qcow2 block_status

2018-12-25 Thread Vladimir Sementsov-Ogievskiy
24.12.2018 23:42, Nir Soffer wrote: > On Mon, Dec 24, 2018 at 5:50 PM Vladimir Sementsov-Ogievskiy > mailto:vsement...@virtuozzo.com>> wrote: > > Hi all! > > bdrv_co_block_status digs bs->file for additional, more accurate search > for hole > inside region, reported as DATA by bs si

Re: [Qemu-devel] [PATCH] i386: mark the 'INTEL_PT' CPUID bit as unmigratable

2018-12-25 Thread Kang, Luwei
> From: Qemu-devel [mailto:qemu-devel-bounces+luwei.kang=intel@nongnu.org] > On Behalf Of Paolo Bonzini > Sent: Friday, December 21, 2018 8:44 PM > To: qemu-devel@nongnu.org > Cc: ehabk...@redhat.com; qemu-sta...@nongnu.org > Subject: [Qemu-devel] [PATCH] i386: mark the 'INTEL_PT' CPUID bit as