[Qemu-devel] [Bug 965867] Re: 9p virtual file system on qemu slow

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

[Qemu-devel] [Bug 965867] Re: 9p virtual file system on qemu slow

2018-10-20 Thread Launchpad Bug Tracker
[Expired for qemu-kvm (Ubuntu) because there has been no activity for 60 days.] ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/965

[Qemu-devel] [Bug 1180777] Re: RDP traffic freeze on quiet network

2018-10-20 Thread Launchpad Bug Tracker
[Expired for qemu-kvm (Ubuntu) because there has been no activity for 60 days.] ** Changed in: qemu-kvm (Ubuntu) Status: Incomplete => Expired -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/118

[Qemu-devel] [Bug 1180777] Re: RDP traffic freeze on quiet network

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

[Qemu-devel] [Bug 1681439] Re: qemu-system-x86_64: hw/ide/core.c:685: ide_cancel_dma_sync: Assertion `s->bus->dma->aiocb == NULL' failed.

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

[Qemu-devel] [PATCH v2] scripts/qemu-binfmt-conf.sh: add bFL handler registration

2018-10-20 Thread Max Filippov
bFLT format header doesn't have enough information to register a handler for a specific architecture. Add switch -f / --flat that registers one of the qemu binaries as a handler for bFLT executable images. Signed-off-by: Max Filippov --- Changes v1->v2: - drop unintended changes to dtc; scripts

Re: [Qemu-devel] [PATCH] scripts/qemu-binfmt-conf.sh: add bFL handler registration

2018-10-20 Thread Max Filippov
On Sat, Oct 20, 2018 at 7:45 PM Max Filippov wrote: > > bFLT format header doesn't have enough information to register a handler > for a specific architecture. Add switch -f / --flat that registers one > of the qemu binaries as a handler for bFLT executable images. > > Signed-off-by: Max Filippov

[Qemu-devel] [PATCH] scripts/qemu-binfmt-conf.sh: add bFL handler registration

2018-10-20 Thread Max Filippov
bFLT format header doesn't have enough information to register a handler for a specific architecture. Add switch -f / --flat that registers one of the qemu binaries as a handler for bFLT executable images. Signed-off-by: Max Filippov --- dtc | 2 +- scripts/qemu-binfmt-c

[Qemu-devel] [Bug 1798451] Re: HVF linux on OSX hangs 2nd time started after adding socket

2018-10-20 Thread Rob Maskell
Thanks for replying Roman, I switched to your tap but even before that I'm not struggling to get the machines to boot even without the smp/numa lines... vga std flashes a lot then hangs with a black screen and a blinking cursor whereas vga vmware quite unexpectedly. Command to start QEMU: qemu-sy

[Qemu-devel] [Bug 1798451] Re: HVF linux on OSX hangs 2nd time started after adding socket

2018-10-20 Thread Rob Maskell
Also seeing quite a few of these errors Unimplemented handler (7f7a56978294) for 0 (f 7f) Unimplemented handler (7f2eaa6c8849) for 0 (f 7f) Unimplemented handler (7f82f92a9294) for 0 (f 7f) Unimplemented handler (7f04702f2294) for 0 (f 7f) -- You received this bug notification because you are

Re: [Qemu-devel] [PATCH 4/5] configs: Add a CONFIG_UNIMP switch for the "unimplemented-device"

2018-10-20 Thread Paolo Bonzini
On 19/10/2018 18:54, Peter Maydell wrote: > On 19 October 2018 at 17:44, Paolo Bonzini wrote: >> On 19/10/2018 18:25, Philippe Mathieu-Daudé wrote: >>> >>> First because I'm using it heavily on MIPS and PPC boards, when no >>> datashits are available. >>> I'll submit that during the next merge win

Re: [Qemu-devel] [PATCH 0/2] linux-user: Don't call gdb_handlesig unnecessarily

2018-10-20 Thread Richard Henderson
On 10/19/18 10:49 AM, Peter Maydell wrote: > This patchset fixes a minor bug in our handling of SIGTRAP > in linux-user. > > The CPU main-loop routines for linux-user generally call > gdb_handlesig() when they're about to queue a SIGTRAP signal. This > is wrong, because queue_signal() will cause

Re: [Qemu-devel] [PATCH v2 03/29] target/riscv: Convert RVXI branch insns to decodetree

2018-10-20 Thread Richard Henderson
On 10/20/18 12:14 AM, Bastian Koppelmann wrote: > -case OPC_RISC_AUIPC: > -if (rd == 0) { > -break; /* NOP */ > -} > -tcg_gen_movi_tl(cpu_gpr[rd], (sextract64(ctx->opcode, 12, 20) << 12) > + > - ctx->base.pc_next); > -break; This shoul

Re: [Qemu-devel] [PATCH v2 02/29] targer/riscv: Activate decodetree and implemnt LUI & AUIPC

2018-10-20 Thread Richard Henderson
On 10/20/18 12:14 AM, Bastian Koppelmann wrote: > +static int32_t ex_shift_##amount(int imm) \ Not that it'll matter in practice, but s/int32_t/int/. That's the type that's passed in, and it's the type that is stored in the argument set structures. r~

[Qemu-devel] [PATCH v4 11/11] qemu-iotests: Test auto-read-only with -drive and -blockdev

2018-10-20 Thread Kevin Wolf
Signed-off-by: Kevin Wolf --- tests/qemu-iotests/232 | 147 + tests/qemu-iotests/232.out | 59 +++ tests/qemu-iotests/group | 1 + 3 files changed, 207 insertions(+) create mode 100755 tests/qemu-iotests/232 create mode 100644 tests/qemu-

[Qemu-devel] [PATCH v4 10/11] block: Make auto-read-only=on default for -drive

2018-10-20 Thread Kevin Wolf
While we want machine interfaces like -blockdev and QMP blockdev-add to add as little auto-detection as possible so that management tools are explicit about their needs, -drive is a convenience option for human users. Enabling auto-read-only=on by default there enables users to use read-only images

Re: [Qemu-devel] [RFC v3 48/56] ppc: acquire the BQL in cpu_has_work

2018-10-20 Thread Emilio G. Cota
On Fri, Oct 19, 2018 at 08:58:31 +0200, Paolo Bonzini wrote: > On 19/10/2018 03:06, Emilio G. Cota wrote: > > Soon we will call cpu_has_work without the BQL. > > > > Cc: David Gibson > > Cc: Alexander Graf > > Cc: qemu-...@nongnu.org > > Signed-off-by: Emilio G. Cota > > --- > > target/ppc/tra

Re: [Qemu-devel] [PULL 00/45] Machine queue, 2018-10-18

2018-10-20 Thread Philippe Mathieu-Daudé
On 19/10/2018 22:23, Eduardo Habkost wrote: On Fri, Oct 19, 2018 at 09:53:45PM +0200, Igor Mammedov wrote: On Fri, 19 Oct 2018 15:44:08 -0300 Eduardo Habkost wrote: On Fri, Oct 19, 2018 at 03:12:31PM +0100, Peter Maydell wrote: On 18 October 2018 at 21:03, Eduardo Habkost wrote: The follow

[Qemu-devel] [Bug 1798451] Re: HVF linux on OSX hangs 2nd time started after adding socket

2018-10-20 Thread Roman Bolshakov
I've had issues with multiple vcpus previously. But I've tried that recently and it worked fine with the fix: https://lists.gnu.org/archive/html/qemu-devel/2018-10/msg03864.html. And I've checked your command, no issues. Could you please try to install qemu from my tap and check if it's gone? b

Re: [Qemu-devel] [PATCH v3 3/6] tests/acceptance: Add test_mips_4kc_malta in BootLinuxConsole

2018-10-20 Thread Philippe Mathieu-Daudé
On 20/10/2018 00:51, Cleber Rosa wrote: > > > On 10/19/18 5:17 PM, Cleber Rosa wrote: >> >> >> On 10/19/18 2:41 PM, Philippe Mathieu-Daudé wrote: >>> On 19/10/2018 19:42, Cleber Rosa wrote: On 10/13/18 11:15 AM, Philippe Mathieu-Daudé wrote: > Similar to the test_x86_64_pc test

[Qemu-devel] [PATCH v2 23/29] target/riscv: Move gen_arith_imm() decoding into trans_* functions

2018-10-20 Thread Bastian Koppelmann
gen_arith_imm() does a lot of decoding manually, which was hard to read in case of the shift instructions and is not necessary anymore with decodetree. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - trans_arith_imm -> gen_arith_imm - Add missing TARGET_RISC64

[Qemu-devel] [PATCH v2 29/29] target/riscv: Rename trans_arith to gen_arith

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann --- target/riscv/insn_trans/trans_rvi.inc.c | 14 +++--- target/riscv/insn_trans/trans_rvm.inc.c | 14 +++--- target/riscv/translate.c| 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/target/riscv/insn_tra

[Qemu-devel] [PATCH v2 27/29] target/riscv: Remove gen_system()

2018-10-20 Thread Bastian Koppelmann
with all 16 bit insns moved to decodetree no path is falling back to gen_system(), so we can remove it. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/translate.c | 32 1 file changed, 32 deletions(-)

[Qemu-devel] [PATCH v2 25/29] target/riscv: Remove shift and slt insn manual decoding

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - trans_shift -> gen_shift target/riscv/insn_trans/trans_rvi.inc.c | 79 + target/riscv/translate.c| 59 ++ 2 files chang

[Qemu-devel] [PATCH v2 18/29] target/riscv: Convert quadrant 2 of RVXC insns to decodetree

2018-10-20 Thread Bastian Koppelmann
This also removes all functions that now became obsolete. Signed-off-by: Bastian Koppelmann --- target/riscv/insn16.decode | 34 +- target/riscv/insn_trans/trans_rvc.inc.c | 103 target/riscv/translate.c| 151 +--- 3 files ch

[Qemu-devel] [PATCH v2 19/29] target/riscv: Remove gen_jalr()

2018-10-20 Thread Bastian Koppelmann
trans_jalr() is the only caller, so move the code into trans_jalr(). Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/insn_trans/trans_rvi.inc.c | 28 +- target/riscv/translate.c| 38

[Qemu-devel] [PATCH v2 16/29] target/riscv: Convert quadrant 0 of RVXC insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - Stack allocate arg_c_* structs - ex_rvc_register returns int - special case of trans_c_addi4spn() returns false target/riscv/Makefile.objs | 9 ++- target/riscv/insn16.decode | 55

[Qemu-devel] [PATCH v2 24/29] target/riscv: make ADD/SUB/OR/XOR/AND insn use arg lists

2018-10-20 Thread Bastian Koppelmann
manual decoding in gen_arith() is not necessary with decodetree. For now the function is called trans_arith as the original gen_arith still exisits. The former will be renamed to gen_arith as soon as the old gen_arith can be removed. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --

[Qemu-devel] [PATCH v2 22/29] target/riscv: Remove manual decoding from gen_store()

2018-10-20 Thread Bastian Koppelmann
With decodetree we don't need to convert RISC-V opcodes into to MemOps as the old gen_store() did. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - trans_store -> gen_store - removed negative memop check target/riscv/insn_trans/

[Qemu-devel] [PATCH v2 21/29] target/riscv: Remove manual decoding from gen_load()

2018-10-20 Thread Bastian Koppelmann
With decodetree we don't need to convert RISC-V opcodes into to MemOps as the old gen_load() did. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - trans_load -> gen_load - removed negative memop check target/riscv/insn_trans/tr

[Qemu-devel] [PATCH v2 26/29] target/riscv: Remove manual decoding of RV32/64M insn

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - Add missing TARGET_RISCV64 conditions - trans_arith_w -> gen_arith_w target/riscv/insn_trans/trans_rvm.inc.c | 75 --- target/riscv/translate.c| 268 +++- 2 files changed

[Qemu-devel] [PATCH v2 14/29] target/riscv: Convert RV64D insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/insn32.decode | 8 + target/riscv/insn_trans/trans_rvd.inc.c | 94 + target/riscv/translate.c| 484 +--- 3 files changed, 103 inser

[Qemu-devel] [PATCH v2 11/29] target/riscv: Convert RV32F insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - REQUIRE_FPU uses do {} while (0) - Add REQUIRE_FPU to arithm helpers target/riscv/insn32.decode | 35 +++ target/riscv/insn_trans/trans_rvf.inc.c | 334 +

[Qemu-devel] [PATCH v2 28/29] target/riscv: Remove decode_RV32_64G()

2018-10-20 Thread Bastian Koppelmann
decodetree handles all instructions now so the fallback is not necessary anymore. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - Add missing gen_exception_illegal target/riscv/translate.c | 24 +--- 1 file changed, 1 insertion(+), 23 deletio

[Qemu-devel] [PATCH v2 20/29] target/riscv: Remove manual decoding from gen_branch()

2018-10-20 Thread Bastian Koppelmann
We now utilizes argument-sets of decodetree such that no manual decoding is necessary. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - trans_branch -> gen_branch target/riscv/insn_trans/trans_rvi.inc.c | 46 +--

[Qemu-devel] [PATCH v2 05/29] target/riscv: Convert RVXI arithmetic insns to decodetree

2018-10-20 Thread Bastian Koppelmann
we cannot remove the call to gen_arith() in decode_RV32_64G() since it is used to translate multiply instructions. Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - RISCV32 now returns false instead of raising an exception - shift translators now also use gen_ar

[Qemu-devel] [PATCH v2 06/29] target/riscv: Convert RVXI fence insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - simplified fence/fence_i as suggested by Richard target/riscv/insn32.decode | 6 ++ target/riscv/insn_trans/trans_rvi.inc.c | 20 target/riscv/translate.c| 14 -

[Qemu-devel] [PATCH v2 13/29] target/riscv: Convert RV32D insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - Add REQUIRE_FPU to arithm helpers target/riscv/insn32.decode | 28 +++ target/riscv/insn_trans/trans_rvd.inc.c | 319 target/riscv/translate.c| 1 + 3 files c

[Qemu-devel] [PATCH v2 07/29] target/riscv: Convert RVXI csr insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/insn32.decode | 9 +++ target/riscv/insn_trans/trans_rvi.inc.c | 79 + target/riscv/translate.c| 43 +- 3 files changed,

[Qemu-devel] [PATCH v2 01/29] target/riscv: Move CPURISCVState pointer to DisasContext

2018-10-20 Thread Bastian Koppelmann
CPURISCVState is rarely used, so there is no need to pass it to every translate function. This paves the way for decodetree which only passes DisasContext to translate functions. Signed-off-by: Bastian Koppelmann --- target/riscv/translate.c | 15 --- 1 file changed, 8 insertions(+),

[Qemu-devel] [PATCH v2 09/29] target/riscv: Convert RV32A insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - simplified gen_amo() with function pointers - rs2 @atom_ld is now decimal target/riscv/insn32.decode | 17 +++ target/riscv/insn_trans/trans_rva.inc.c | 145 target/riscv/t

[Qemu-devel] [PATCH v2 00/29] target/riscv: Convert to decodetree

2018-10-20 Thread Bastian Koppelmann
Hi, this patchset converts the RISC-V decoder to decodetree in three major steps: 1) Convert 32-bit instructions to decodetree [Patch 1-14]: Many of the gen_* functions are called by the decode functions for 16-bit and 32-bit functions. If we move translation code from the gen_* funct

[Qemu-devel] [PATCH v2 08/29] target/riscv: Convert RVXM insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - fixed spacing target/riscv/insn32.decode | 17 + target/riscv/insn_trans/trans_rvm.inc.c | 98 + target/riscv/translate.c| 10

[Qemu-devel] [PATCH v2 15/29] target/riscv: Convert RV priv insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- target/riscv/insn32.decode| 15 +++ .../riscv/insn_trans/trans_privileged.inc.c | 111 ++ target/riscv/translate.c | 49 +--- 3 files c

[Qemu-devel] [PATCH v2 04/29] target/riscv: Convert RVXI load/store insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - fixed spacing target/riscv/insn32.decode | 15 + target/riscv/insn_trans/trans_rvi.inc.c | 78 + target/riscv/translate.c| 7

[Qemu-devel] [PATCH v2 02/29] targer/riscv: Activate decodetree and implemnt LUI & AUIPC

2018-10-20 Thread Bastian Koppelmann
for now only LUI & AUIPC are decoded and translated. If decodetree fails, we fall back to the old decoder. Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - ex_shift_amount returns uint32_t target/riscv/Makefile.objs

[Qemu-devel] [PATCH v2 12/29] target/riscv: Convert RV64F insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - RISCV32 now returns false instead of raising an exception target/riscv/insn32.decode | 6 +++ target/riscv/insn_trans/trans_rvf.inc.c | 68 + 2 f

[Qemu-devel] [PATCH v2 10/29] target/riscv: Convert RV64A insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Reviewed-by: Richard Henderson Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - use simplfied gen_amo() with function pointers target/riscv/insn32.decode | 13 +++ target/riscv/insn_trans/trans_rva.inc.c | 99 + target/riscv/transla

[Qemu-devel] [PATCH v2 03/29] target/riscv: Convert RVXI branch insns to decodetree

2018-10-20 Thread Bastian Koppelmann
Signed-off-by: Bastian Koppelmann Signed-off-by: Peer Adelt --- v1 -> v2: - use ctx->env instead of current_cpu->env_ptr target/riscv/insn32.decode | 19 ++ target/riscv/insn_trans/trans_rvi.inc.c | 49 + target/riscv/translate.c|