Re: [Qemu-devel] [PATCH v5 29/42] nbd: Use CAF when looking for dirty bitmap

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
13.06.2019 1:09, Max Reitz wrote: > When looking for a dirty bitmap to share, we should handle filters by > just including them in the search (so they do not break backing chains). > > Signed-off-by: Max Reitz > --- > nbd/server.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

[Qemu-devel] [PATCH v21 00/21] Add RX archtecture support

2019-06-18 Thread Yoshinori Sato
/y/ys/ysato/qemu.git tags/rx-20190618 Testing binaries bellow. u-boot Download - https://osdn.net/users/ysato/pf/qemu/dl/u-boot.bin.gz starting $ gzip -d u-boot.bin.gz $ qemu-system-rx -bios u-boot.bin linux and pico-root (only sash) Download - https://osdn.net/users/ysato/pf/qemu/dl/zImage

[Qemu-devel] [PATCH v21 12/21] target/rx: Collect all bytes during disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Collected, to be used in the next patch. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-23-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson

[Qemu-devel] [PATCH v21 15/21] hw/timer: RX62N internal timer modules

2019-06-18 Thread Yoshinori Sato
renesas_tmr: 8bit timer modules. renesas_cmt: 16bit compare match timer modules. This part use many renesas's CPU. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by:

[Qemu-devel] [PATCH v21 12/21] hw/intc: RX62N interrupt controller (ICUa)

2019-06-18 Thread Yoshinori Sato
This implementation supported only ICUa. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PATCH v21 14/21] hw/char: RX62N serial communication interface (SCI)

2019-06-18 Thread Yoshinori Sato
This module supported only non FIFO type. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PATCH v21 16/21] hw/rx: Honor -accel qtest

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Issue an error if no kernel, no bios, and not qtest'ing. Fixes make check-qtest-rx: test/qom-test. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-16-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH RESEND v21 03/21] hw/registerfields.h: Add 8bit and 16bit register macros

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé Some RX peripheral using 8bit and 16bit registers. Added 8bit and 16bit APIs. Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-11-ys...@users.sourceforge.jp> Tested-by: Philippe

[Qemu-devel] [PATCH RESEND v21 12/21] target/rx: Collect all bytes during disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Collected, to be used in the next patch. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-23-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson

[Qemu-devel] [PATCH RESEND v21 20/21] Add rx-softmmu

2019-06-18 Thread Yoshinori Sato
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-17-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson pick ed65c02993 target/rx: Add RX to SysEmuTarget pick 01372568ae tests: Add rx to

[Qemu-devel] [PATCH RESEND v21 11/21] target/rx: Emit all disassembly in one prt()

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Many of the multi-part prints have been eliminated by previous patches. Eliminate the rest of them. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-22-ys...@users.sourceforge.jp>

[Qemu-devel] [PATCH RESEND v21 04/21] target/rx: TCG translation

2019-06-18 Thread Yoshinori Sato
This part only supported RXv1 instructions. Instruction manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PULL 01/14] iotests: Hide timestamps for skipped tests

2019-06-18 Thread Kevin Wolf
From: Max Reitz Currently, the "thistime" variable is not reinitialized on every loop iteration. This leads to tests that do not yield a run time (because they failed or were skipped) printing the run time of the previous test that did. Fix that by reinitializing "thistime" for every test.

[Qemu-devel] KVM call minutes for 2019-06-18

2019-06-18 Thread Juan Quintela
Hi This are the random notes that I took about today community call. Please review and add anything that you consider relevant. Multiprocess qemu Overview - qemu (basically) runs as a single process - emulates several devices - the idea is to run the device emulations in a different process

[Qemu-devel] [PULL 06/14] file-posix: Update open_flags in raw_set_perm()

2019-06-18 Thread Kevin Wolf
From: Max Reitz raw_check_perm() + raw_set_perm() can change the flags associated with the current FD. If so, we have to update BDRVRawState.open_flags accordingly. Otherwise, we may keep reopening the FD even though the current one already has the correct flags. Signed-off-by: Max Reitz

[Qemu-devel] [PULL 11/14] block: Add *tighten_restrictions to *check*_perm()

2019-06-18 Thread Kevin Wolf
From: Max Reitz This patch makes three functions report whether the necessary permission change tightens restrictions or not. These functions are: - bdrv_check_perm() - bdrv_check_update_perm() - bdrv_child_check_perm() Callers can use this result to decide whether a failure is fatal or not

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

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

Re: [Qemu-devel] [PULL 0/6] Python queue, 2019-06-11

2019-06-18 Thread Cleber Rosa
On Tue, Jun 18, 2019 at 10:01:53AM -0400, Cleber Rosa wrote: > On Tue, Jun 18, 2019 at 02:27:29PM +0100, Peter Maydell wrote: > > On Tue, 11 Jun 2019 at 18:15, Eduardo Habkost wrote: > > > > > > Changes from 2019-06-07: Python 2 deprecation and Python 3 check > > > for 3.5+ were removed. > > > >

Re: [Qemu-devel] [QEMU PATCH v3 7/9] KVM: i386: Add support for save and restore nested state

2019-06-18 Thread Liran Alon
> On 18 Jun 2019, at 18:48, Dr. David Alan Gilbert wrote: > > * Liran Alon (liran.a...@oracle.com) wrote: >> >>> On 18 Jun 2019, at 12:03, Dr. David Alan Gilbert >>> wrote: >>> >>> * Liran Alon (liran.a...@oracle.com) wrote: +static const VMStateDescription vmstate_vmx_vmcs12 =

Re: [Qemu-devel] [PULL 0/6] Python queue, 2019-06-11

2019-06-18 Thread Cleber Rosa
On Tue, Jun 18, 2019 at 02:27:29PM +0100, Peter Maydell wrote: > On Tue, 11 Jun 2019 at 18:15, Eduardo Habkost wrote: > > > > Changes from 2019-06-07: Python 2 deprecation and Python 3 check > > for 3.5+ were removed. > > > > The following changes since commit

[Qemu-devel] [PATCH v21 05/21] target/rx: RX disassembler

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-5-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson --- include/disas/dis-asm.h |5 + target/rx/disas.c | 1480

[Qemu-devel] [PATCH v21 09/21] target/rx: Emit all disassembly in one prt()

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Many of the multi-part prints have been eliminated by previous patches. Eliminate the rest of them. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-22-ys...@users.sourceforge.jp>

[Qemu-devel] [PATCH v21 18/21] hw/rx: Honor -accel qtest

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Issue an error if no kernel, no bios, and not qtest'ing. Fixes make check-qtest-rx: test/qom-test. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-16-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé

[Qemu-devel] [PATCH RESEND v21 05/21] target/rx: TCG helper

2019-06-18 Thread Yoshinori Sato
v21 changes Use cpu_env Signed-off-by: Yoshinori Sato Message-Id: <20190616142836.10614-3-ys...@users.sourceforge.jp> Reviewed-by: Richard Henderson Message-Id: <20190607091116.49044-3-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson [PMD:

[Qemu-devel] [PATCH RESEND v21 10/21] target/rx: Use prt_ldmi for XCHG_mr disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Note that the ld == 3 case handled by prt_ldmi is decoded as XCHG_rr and cannot appear here. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-21-ys...@users.sourceforge.jp> Tested-by:

[Qemu-devel] [PULL 2/2] Travis: print acceptance tests logs in case of job failure

2019-06-18 Thread Eduardo Habkost
From: Cleber Rosa Because Travis doesn't allow us to keep files produced during tests (such as log files), let's print the complete job log to the "console" in case of job failures. This is a debugging aid, and given that there's been some timeouts happening on some tests, we absolutely needs

Re: [Qemu-devel] [PULL 0/2] Python queue, 2019-06-18

2019-06-18 Thread Peter Maydell
On Tue, 18 Jun 2019 at 15:40, Eduardo Habkost wrote: > > The following changes since commit cdfaa2720f4a09e5254868bd1f6e33f3e9eae76f: > > Merge remote-tracking branch > 'remotes/armbru/tags/pull-monitor-2019-06-17-v2' into staging (2019-06-18 > 10:47:00 +0100) > > are available in the Git

Re: [Qemu-devel] [RFC PATCH v2 00/12] Multi-phase reset

2019-06-18 Thread Peter Maydell
On Tue, 4 Jun 2019 at 17:25, Damien Hedde wrote: > > Hi all, > > Here's the second version of the multi-phase reset proposal patches. Sorry for leaving this one hanging again. Some initial general comments... > # DESCRIPTION > > Basically the reset procedure is split in 3 parts: > INIT PHASE:

[Qemu-devel] [PATCH v21 09/21] target/rx: Replace operand with prt_ldmi in disassembler

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson This has consistency with prt_ri(). It loads all data before beginning output. It uses exactly one call to prt() to emit the full instruction. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

[Qemu-devel] [PATCH v21 02/21] qemu/bitops.h: Add extract8 and extract16

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-10-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/qemu/bitops.h | 38

[Qemu-devel] [PATCH v21 10/21] target/rx: Use prt_ldmi for XCHG_mr disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Note that the ld == 3 case handled by prt_ldmi is decoded as XCHG_rr and cannot appear here. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-21-ys...@users.sourceforge.jp> Tested-by:

[Qemu-devel] [PATCH v21 06/21] target/rx: Disassemble rx_index_addr into a string

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson We were eliding all zero indexes. It is only ld==0 that does not have an index in the instruction. This also allows us to avoid breaking the final print into multiple pieces. Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

[Qemu-devel] [PATCH v21 18/21] qemu/bitops.h: Add extract8 and extract16

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-10-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/qemu/bitops.h | 38

[Qemu-devel] [PATCH v21 10/21] target/rx: Collect all bytes during disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Collected, to be used in the next patch. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-23-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson

[Qemu-devel] [PATCH v21 03/21] target/rx: TCG helper

2019-06-18 Thread Yoshinori Sato
v21 changes Use cpu_env Signed-off-by: Yoshinori Sato Message-Id: <20190616142836.10614-3-ys...@users.sourceforge.jp> Reviewed-by: Richard Henderson Message-Id: <20190607091116.49044-3-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson [PMD:

Re: [Qemu-devel] [PATCH v2 6/9] block/qcow2-bitmap: do not remove bitmaps on reopen-ro

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
18.06.2019 17:30, John Snow wrote: > > > On 6/3/19 6:14 AM, Vladimir Sementsov-Ogievskiy wrote: >> 01.06.2019 3:06, John Snow wrote: >>> >>> >>> On 5/31/19 12:31 PM, Vladimir Sementsov-Ogievskiy wrote: qcow2_reopen_bitmaps_ro wants to store bitmaps and then mark them all readonly. But

Re: [Qemu-devel] [PATCH] blockdev: enable non-root nodes for transaction drive-backup source

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
18.06.2019 17:24, John Snow wrote: > > > On 6/18/19 10:08 AM, Vladimir Sementsov-Ogievskiy wrote: >> We forget to enable it for transaction .prepare, while it is already >> enabled in do_drive_backup since commit a2d665c1bc362 >> "blockdev: loosen restrictions on drive-backup source node"

Re: [Qemu-devel] [PATCH 3/3] target/tricore: Use translate_loop

2019-06-18 Thread Richard Henderson
On 6/18/19 5:06 AM, Bastian Koppelmann wrote: >> Have a look at the end of thumb_tr_translate_insn & insn_crosses_page to see >> how to handle this properly. > > I copied it more or less from target/riscv. I guess that needs fixing as well > :) Yes, I noticed the riscv problem during review of

[Qemu-devel] [PATCH RESEND v21 01/21] MAINTAINERS: Add RX

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-18-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson --- MAINTAINERS | 19 +++ 1 file changed, 19 insertions(+) diff --git

[Qemu-devel] [PATCH RESEND v21 14/21] hw/intc: RX62N interrupt controller (ICUa)

2019-06-18 Thread Yoshinori Sato
This implementation supported only ICUa. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

Re: [Qemu-devel] [PATCH] migration: Improve accuracy of vCPU throttling with per-vCPU timers

2019-06-18 Thread Peter Xu
On Tue, Jun 18, 2019 at 12:25:43PM +, Cosmin Marin wrote: > Hi Peter, > > thanks for reviewing the patch. Indeed, I agree that it's almost > impossible to determine which solution it's better from the scalability > perspective. However, I feel that using per-vCPU timers is the

[Qemu-devel] [PATCH RESEND v21 19/21] hw/rx: Restrict the RX62N microcontroller to the RX62N CPU core

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé While the VIRT machine can use different microcontrollers, the RX62N microcontroller is tied to the RX62N CPU core. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato --- hw/rx/rx-virt.c | 8 1 file changed, 8 insertions(+) diff --git

[Qemu-devel] [PATCH RESEND v21 17/21] hw/rx: RX Target hardware definition

2019-06-18 Thread Yoshinori Sato
rx62n - RX62N cpu. rx-virt - RX QEMU virtual target. v21 changes. rx_load_image move to rx-virt.c Signed-off-by: Yoshinori Sato Message-Id: <20190616142836.10614-17-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [Bug 1833101] Re: vexpress-a9 (but not -a15) creates two pl111 LCDs due to duplicate sysbus_create_simple("pl111", ...) calls

2019-06-18 Thread David Lindsay
Thanks for following up, and helping me figure some things out. I coincidentally stumbled on https://translatedcode.wordpress.com/2016/11/03/installing-debian-on- qemus-32-bit-arm-virt-board/ a few days ago, landed on the page you linked, and immediately wanted to try it. Thanks very much for

Re: [Qemu-devel] [PATCH v5 29/42] nbd: Use CAF when looking for dirty bitmap

2019-06-18 Thread Eric Blake
On 6/12/19 5:09 PM, Max Reitz wrote: > When looking for a dirty bitmap to share, we should handle filters by > just including them in the search (so they do not break backing chains). > > Signed-off-by: Max Reitz > --- > nbd/server.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-)

[Qemu-devel] [PULL 07/14] block: Add bdrv_child_refresh_perms()

2019-06-18 Thread Kevin Wolf
From: Max Reitz If a block node uses bdrv_child_try_set_perm() to change the permission it takes on its child, the result may be very short-lived. If anything makes the block layer recalculate the permissions internally, it will invoke the node driver's .bdrv_child_perm() implementation. The

Re: [Qemu-devel] [PATCH v5 25/42] mirror: Deal with filters

2019-06-18 Thread Max Reitz
On 18.06.19 16:55, Vladimir Sementsov-Ogievskiy wrote: > 18.06.2019 17:47, Max Reitz wrote: >> On 18.06.19 15:12, Vladimir Sementsov-Ogievskiy wrote: >>> 13.06.2019 1:09, Max Reitz wrote: This includes some permission limiting (for example, we only need to take the RESIZE permission for

[Qemu-devel] [PULL 13/14] iotests: Test failure to loosen restrictions

2019-06-18 Thread Kevin Wolf
From: Max Reitz Signed-off-by: Max Reitz Signed-off-by: Kevin Wolf --- tests/qemu-iotests/182 | 21 + tests/qemu-iotests/182.out | 6 ++ 2 files changed, 27 insertions(+) diff --git a/tests/qemu-iotests/182 b/tests/qemu-iotests/182 index 3a90ebfbfd..7f494eb9bb

Re: [Qemu-devel] [QEMU PATCH v3 7/9] KVM: i386: Add support for save and restore nested state

2019-06-18 Thread Dr. David Alan Gilbert
* Liran Alon (liran.a...@oracle.com) wrote: > > > On 18 Jun 2019, at 12:03, Dr. David Alan Gilbert > > wrote: > > > > * Liran Alon (liran.a...@oracle.com) wrote: > >> > >> +static const VMStateDescription vmstate_vmx_vmcs12 = { > >> + .name = "cpu/kvm_nested_state/vmx/vmcs12", > >> +

[Qemu-devel] [PULL 12/14] block: Ignore loosening perm restrictions failures

2019-06-18 Thread Kevin Wolf
From: Max Reitz We generally assume that loosening permission restrictions can never fail. We have seen in the past that this assumption is wrong. This has led to crashes because we generally pass _abort when loosening permissions. However, a failure in such a case should actually be handled

[Qemu-devel] [PULL 05/14] block: drop bs->job

2019-06-18 Thread Kevin Wolf
From: 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

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

2019-06-18 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 +++- block/io.c| 18 -- 2 files changed, 19 insertions(+), 7

Re: [Qemu-devel] [QEMU PATCH v3 6/9] vmstate: Add support for kernel integer types

2019-06-18 Thread Dr. David Alan Gilbert
* Liran Alon (liran.a...@oracle.com) wrote: > > > > On 18 Jun 2019, at 11:55, Dr. David Alan Gilbert > > wrote: > > > > * Liran Alon (liran.a...@oracle.com) wrote: > >> Reviewed-by: Nikita Leshenko > >> Reviewed-by: Maran Wilson > >> Signed-off-by: Liran Alon > >> --- > >>

[Qemu-devel] [PATCH v21 16/21] hw/char: RX62N serial communication interface (SCI)

2019-06-18 Thread Yoshinori Sato
This module supported only non FIFO type. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

Re: [Qemu-devel] [PATCH v5 24/42] block: Use child access functions for QAPI queries

2019-06-18 Thread Max Reitz
On 18.06.19 14:06, Vladimir Sementsov-Ogievskiy wrote: > 13.06.2019 1:09, Max Reitz wrote: >> query-block and query-named-block-nodes now return any filtered child >> under "backing", not just bs->backing or COW children. This is so that >> filters do not interrupt the reported backing chain.

Re: [Qemu-devel] [PATCH] blockdev: enable non-root nodes for transaction drive-backup source

2019-06-18 Thread John Snow
On 6/18/19 10:08 AM, Vladimir Sementsov-Ogievskiy wrote: > We forget to enable it for transaction .prepare, while it is already > enabled in do_drive_backup since commit a2d665c1bc362 > "blockdev: loosen restrictions on drive-backup source node" > > Signed-off-by: Vladimir

[Qemu-devel] [PATCH] qmp: make qmp-shell work with python3

2019-06-18 Thread Igor Mammedov
python3 doesn't have raw_input(), so qmp-shell breaks. Use input() instead and override it with raw_input() if running on python2. Signed-off-by: Igor Mammedov --- scripts/qmp/qmp-shell | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/qmp/qmp-shell

[Qemu-devel] [PATCH RESEND v21 18/21] hw/rx: Honor -accel qtest

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Issue an error if no kernel, no bios, and not qtest'ing. Fixes make check-qtest-rx: test/qom-test. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-16-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé

Re: [Qemu-devel] [PATCH v5 25/42] mirror: Deal with filters

2019-06-18 Thread Max Reitz
On 18.06.19 15:12, Vladimir Sementsov-Ogievskiy wrote: > 13.06.2019 1:09, Max Reitz wrote: >> This includes some permission limiting (for example, we only need to >> take the RESIZE permission for active commits where the base is smaller >> than the top). >> >> Signed-off-by: Max Reitz > > ohm,

[Qemu-devel] [PATCH RESEND v21 07/21] target/rx: RX disassembler

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-5-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson --- include/disas/dis-asm.h |5 + target/rx/disas.c | 1480

[Qemu-devel] [PULL 0/2] Python queue, 2019-06-18

2019-06-18 Thread Eduardo Habkost
The following changes since commit cdfaa2720f4a09e5254868bd1f6e33f3e9eae76f: Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2019-06-17-v2' into staging (2019-06-18 10:47:00 +0100) are available in the Git repository at: git://github.com/ehabkost/qemu.git

Re: [Qemu-devel] [PATCH] blockdev: enable non-root nodes for transaction drive-backup source

2019-06-18 Thread John Snow
On 6/18/19 10:08 AM, Vladimir Sementsov-Ogievskiy wrote: > We forget to enable it for transaction .prepare, while it is already > enabled in do_drive_backup since commit a2d665c1bc362 > "blockdev: loosen restrictions on drive-backup source node" > > Signed-off-by: Vladimir

Re: [Qemu-devel] [PATCH] target/arm: Check for dp support for dp VFM, not sp

2019-06-18 Thread Peter Maydell
On Mon, 17 Jun 2019 at 20:03, Richard Henderson wrote: > > On 6/17/19 9:01 AM, Peter Maydell wrote: > > In commit 1120827fa182f0e7622 we accidentally put the > > "UNDEF unless FPU has double-precision support" check in > > the single-precision VFM function. Put it in the dp > > function where it

[Qemu-devel] [PULL 03/14] block/block-backend: blk_iostatus_reset: drop usage of bs->job

2019-06-18 Thread Kevin Wolf
From: 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

Re: [Qemu-devel] [QEMU PATCH v3 8/9] KVM: i386: Add support for KVM_CAP_EXCEPTION_PAYLOAD

2019-06-18 Thread Liran Alon
> On 18 Jun 2019, at 12:07, Dr. David Alan Gilbert wrote: > > * Liran Alon (liran.a...@oracle.com) wrote: >> Kernel commit c4f55198c7c2 ("kvm: x86: Introduce KVM_CAP_EXCEPTION_PAYLOAD") >> introduced a new KVM capability which allows userspace to correctly >> distinguish between pending and

[Qemu-devel] [PATCH] blockdev: enable non-root nodes for transaction drive-backup source

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
We forget to enable it for transaction .prepare, while it is already enabled in do_drive_backup since commit a2d665c1bc362 "blockdev: loosen restrictions on drive-backup source node" Signed-off-by: Vladimir Sementsov-Ogievskiy --- Hmm, I've to add John by hand, get_maintainer.pl don't

[Qemu-devel] [PATCH v21 01/21] MAINTAINERS: Add RX

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-18-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson --- MAINTAINERS | 19 +++ 1 file changed, 19 insertions(+) diff --git

[Qemu-devel] [PATCH v21 04/21] target/rx: TCG translation

2019-06-18 Thread Yoshinori Sato
This part only supported RXv1 instructions. Instruction manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01us0032ej0120_rxsm.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PATCH v21 11/21] target/rx: Emit all disassembly in one prt()

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson Many of the multi-part prints have been eliminated by previous patches. Eliminate the rest of them. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-22-ys...@users.sourceforge.jp>

[Qemu-devel] [PATCH v21 17/21] hw/rx: Restrict the RX62N microcontroller to the RX62N CPU core

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé While the VIRT machine can use different microcontrollers, the RX62N microcontroller is tied to the RX62N CPU core. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato --- hw/rx/rx-virt.c | 8 1 file changed, 8 insertions(+) diff --git

[Qemu-devel] [PATCH v21 20/21] Add rx-softmmu

2019-06-18 Thread Yoshinori Sato
Tested-by: Philippe Mathieu-Daudé Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Yoshinori Sato Message-Id: <20190607091116.49044-17-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson pick ed65c02993 target/rx: Add RX to SysEmuTarget pick 01372568ae tests: Add rx to

Re: [Qemu-devel] [PATCH v21 00/21] Add RX archtecture support

2019-06-18 Thread Yoshinori Sato
r v19. > Follow tcg changes. > Cleanup cpu.c. > simplify rx_cpu_class_by_name and rx_load_image move to rx-virt. > > My git repository is bellow. > git://git.pf.osdn.net/gitroot/y/ys/ysato/qemu.git tags/rx-20190618 > > Testing binaries bellow. > u-boot > Downloa

Re: [Qemu-devel] [PATCH v2 6/9] block/qcow2-bitmap: do not remove bitmaps on reopen-ro

2019-06-18 Thread John Snow
On 6/3/19 6:14 AM, Vladimir Sementsov-Ogievskiy wrote: > 01.06.2019 3:06, John Snow wrote: >> >> >> On 5/31/19 12:31 PM, Vladimir Sementsov-Ogievskiy wrote: >>> qcow2_reopen_bitmaps_ro wants to store bitmaps and then mark them all >>> readonly. But the latter don't work, as >>>

[Qemu-devel] [PATCH RESEND v21 21/21] BootLinuxConsoleTest: Test the RX-Virt machine

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé Add two tests for the rx-virt machine, based on the recommended test setup from Yoshinori Sato: https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg03586.html - U-Boot prompt - Linux kernel with Sash shell These are very quick tests: $ avocado run -t

[Qemu-devel] [PULL 1/2] Revert "travis: Make check-acceptance job more verbose"

2019-06-18 Thread Eduardo Habkost
This reverts commit 6d7a134da4afebe8551a69329478415cfb4cbe91. We'll have a better fix, that will show the full avocado job log only if a test case failed. Signed-off-by: Eduardo Habkost --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml

[Qemu-devel] [PULL 00/14] Block layer patches

2019-06-18 Thread Kevin Wolf
The following changes since commit cdfaa2720f4a09e5254868bd1f6e33f3e9eae76f: Merge remote-tracking branch 'remotes/armbru/tags/pull-monitor-2019-06-17-v2' into staging (2019-06-18 10:47:00 +0100) are available in the Git repository at: git://repo.or.cz/qemu/kevin.git tags/for-upstream for

[Qemu-devel] [PULL 08/14] block/mirror: Fix child permissions

2019-06-18 Thread Kevin Wolf
From: Max Reitz We cannot use bdrv_child_try_set_perm() to give up all restrictions on the child edge, and still have bdrv_mirror_top_child_perm() request BLK_PERM_WRITE. Fix this by making bdrv_mirror_top_child_perm() return 0/BLK_PERM_ALL when we want to give up all permissions, and replacing

[Qemu-devel] [PULL 14/14] block/null: Expose read-zeroes option in QAPI schema

2019-06-18 Thread Kevin Wolf
Commit cd219eb1e55 added the read-zeroes option for the null-co and null-aio block driver, but forgot to add them to the QAPI schema. Therefore, this option wasn't available in -blockdev and blockdev-add until now. Add the missing option in the schema to make it available there, too.

[Qemu-devel] [PULL 04/14] blockdev: blockdev_mark_auto_del: drop usage of bs->job

2019-06-18 Thread Kevin Wolf
From: 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 Signed-off-by: Kevin Wolf ---

[Qemu-devel] [PULL 09/14] block/commit: Drop bdrv_child_try_set_perm()

2019-06-18 Thread Kevin Wolf
From: Max Reitz commit_top_bs never requests or unshares any permissions. There is no reason to make this so explicit here. Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block/commit.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/commit.c

[Qemu-devel] [PATCH v21 13/21] hw/timer: RX62N internal timer modules

2019-06-18 Thread Yoshinori Sato
renesas_tmr: 8bit timer modules. renesas_cmt: 16bit compare match timer modules. This part use many renesas's CPU. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by:

[Qemu-devel] [PATCH v21 06/21] target/rx: CPU definition

2019-06-18 Thread Yoshinori Sato
v21 changes Add cpu-param.h Remove CPU_COMMON rx_load_image move to rx-virt. Signed-off-by: Yoshinori Sato Message-Id: <20190616142836.10614-4-ys...@users.sourceforge.jp> Reviewed-by: Richard Henderson Message-Id: <20190607091116.49044-4-ys...@users.sourceforge.jp> Signed-off-by: Richard

[Qemu-devel] [PATCH v21 07/21] target/rx: Replace operand with prt_ldmi in disassembler

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson This has consistency with prt_ri(). It loads all data before beginning output. It uses exactly one call to prt() to emit the full instruction. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

[Qemu-devel] [PATCH v21 14/21] hw/intc: RX62N interrupt controller (ICUa)

2019-06-18 Thread Yoshinori Sato
This implementation supported only ICUa. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PATCH v21 21/21] BootLinuxConsoleTest: Test the RX-Virt machine

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé Add two tests for the rx-virt machine, based on the recommended test setup from Yoshinori Sato: https://lists.gnu.org/archive/html/qemu-devel/2019-05/msg03586.html - U-Boot prompt - Linux kernel with Sash shell These are very quick tests: $ avocado run -t

[Qemu-devel] [PATCH v21 07/21] target/rx: RX disassembler

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Tested-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-5-ys...@users.sourceforge.jp> Signed-off-by: Richard Henderson --- include/disas/dis-asm.h |5 + target/rx/disas.c | 1480

[Qemu-devel] [PATCH v21 13/21] target/rx: Dump bytes for each insn during disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson There are so many different forms of each RX instruction that it will be very useful to be able to look at the bytes to see on which path a bug may lie. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

[Qemu-devel] [PATCH v21 05/21] target/rx: TCG helper

2019-06-18 Thread Yoshinori Sato
v21 changes Use cpu_env Signed-off-by: Yoshinori Sato Message-Id: <20190616142836.10614-3-ys...@users.sourceforge.jp> Reviewed-by: Richard Henderson Message-Id: <20190607091116.49044-3-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson [PMD:

[Qemu-devel] [PATCH RESEND v21 02/21] qemu/bitops.h: Add extract8 and extract16

2019-06-18 Thread Yoshinori Sato
Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-10-ys...@users.sourceforge.jp> Tested-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/qemu/bitops.h | 38

[Qemu-devel] [PATCH RESEND v21 13/21] target/rx: Dump bytes for each insn during disassembly

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson There are so many different forms of each RX instruction that it will be very useful to be able to look at the bytes to see on which path a bug may lie. Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

[Qemu-devel] [PATCH RESEND v21 16/21] hw/char: RX62N serial communication interface (SCI)

2019-06-18 Thread Yoshinori Sato
This module supported only non FIFO type. Hardware manual. https://www.renesas.com/us/en/doc/products/mpumcu/doc/rx_family/r01uh0033ej0140_rx62n.pdf Signed-off-by: Yoshinori Sato Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[Qemu-devel] [PULL 02/14] block/replication: drop usage of bs->job

2019-06-18 Thread Kevin Wolf
From: 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 Signed-off-by: Kevin Wolf --- include/block/block_int.h | 12

Re: [Qemu-devel] [PATCH v5 25/42] mirror: Deal with filters

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
18.06.2019 17:47, Max Reitz wrote: > On 18.06.19 15:12, Vladimir Sementsov-Ogievskiy wrote: >> 13.06.2019 1:09, Max Reitz wrote: >>> This includes some permission limiting (for example, we only need to >>> take the RESIZE permission for active commits where the base is smaller >>> than the top).

[Qemu-devel] [PATCH v2 0/3] block: BDRV_REQ_PREFETCH

2019-06-18 Thread Vladimir Sementsov-Ogievskiy
Hi all! Here is small new read flag: BDRV_REQ_PREFETCH, which in combination with BDRV_REQ_COPY_ON_READ 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

[Qemu-devel] [PULL 10/14] block: Fix order in bdrv_replace_child()

2019-06-18 Thread Kevin Wolf
From: Max Reitz We have to start by applying the permission restrictions to new_bs before we can loosen them on old_bs. See the comment for the explanation. Signed-off-by: Max Reitz Reviewed-by: Kevin Wolf Signed-off-by: Kevin Wolf --- block.c | 18 +- 1 file changed, 13

Re: [Qemu-devel] [QEMU PATCH v3 6/9] vmstate: Add support for kernel integer types

2019-06-18 Thread Liran Alon
> On 18 Jun 2019, at 11:55, Dr. David Alan Gilbert wrote: > > * Liran Alon (liran.a...@oracle.com) wrote: >> Reviewed-by: Nikita Leshenko >> Reviewed-by: Maran Wilson >> Signed-off-by: Liran Alon >> --- >> include/migration/vmstate.h | 18 ++ >> 1 file changed, 18

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

2019-06-18 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

Re: [Qemu-devel] [RFC PATCH 0/9] hw/acpi: make build_madt arch agnostic

2019-06-18 Thread Igor Mammedov
On Mon, 13 May 2019 14:19:04 +0800 Wei Yang wrote: > Now MADT is highly depend in architecture and machine type and leaves > duplicated code in different architecture. The series here tries to generalize > it. > > MADT contains one main table and several sub tables. These sub tables are >

[Qemu-devel] [PATCH v21 03/21] hw/registerfields.h: Add 8bit and 16bit register macros

2019-06-18 Thread Yoshinori Sato
From: Philippe Mathieu-Daudé Some RX peripheral using 8bit and 16bit registers. Added 8bit and 16bit APIs. Signed-off-by: Yoshinori Sato Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20190607091116.49044-11-ys...@users.sourceforge.jp> Tested-by: Philippe

[Qemu-devel] [PATCH v21 08/21] target/rx: Disassemble rx_index_addr into a string

2019-06-18 Thread Yoshinori Sato
From: Richard Henderson We were eliding all zero indexes. It is only ld==0 that does not have an index in the instruction. This also allows us to avoid breaking the final print into multiple pieces. Reviewed-by: Yoshinori Sato Signed-off-by: Yoshinori Sato Message-Id:

  1   2   3   4   >