RE: [PATCH v1 0/2] TM field check failed

2019-10-11 Thread Zhang, Qi1
Hello, everyone May I know you have comments on this patch set? Thank you! BRs Qi Zhang > -Original Message- > From: Zhang, Qi1 > Sent: Tuesday, October 8, 2019 10:35 AM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; marcel.apfelb...@gmail.com; pbonz...@redhat.com; >

[PATCH] target/i386/kvm: Add Hyper-V direct tlb flush support

2019-10-11 Thread lantianyu1986
From: Tianyu Lan Hyper-V direct tlb flush targets KVM on Hyper-V guest. Enable direct TLB flush for its guests meaning that TLB flush hypercalls are handled by Level 0 hypervisor (Hyper-V) bypassing KVM in Level 1. Due to the different ABI for hypercall parameters between Hyper-V and KVM, KVM

Re: [PATCH v4 2/2] i386: Add support to get/set/migrate Intel Processor Trace feature

2019-10-11 Thread Eduardo Habkost
On Mon, Mar 05, 2018 at 12:48:36AM +0800, Luwei Kang wrote: > From: Chao Peng > > Add Intel Processor Trace related definition. It also add > corresponding part to kvm_get/set_msr and vmstate. > > Signed-off-by: Chao Peng > Signed-off-by: Luwei Kang [...] > diff --git a/target/i386/kvm.c

Re: [PATCH v12 09/11] hmat acpi: Build System Locality Latency and Bandwidth Information Structure(s)

2019-10-11 Thread Tao Xu
On 10/11/2019 10:08 PM, Igor Mammedov wrote: On Thu, 10 Oct 2019 14:53:56 +0800 Tao Xu wrote: On 10/3/2019 10:41 PM, Igor Mammedov wrote: On Fri, 20 Sep 2019 15:43:47 +0800 Tao Xu wrote: From: Liu Jingqi This structure describes the memory access latency and bandwidth information

[PATCH v3] target/i386: Add Snowridge-v2 (no MPX) CPU model

2019-10-11 Thread Xiaoyao Li
Add new version of Snowridge CPU model that removes MPX feature. MPX support is being phased out by Intel. GCC has dropped it, Linux kernel and KVM are also going to do that in the future. Signed-off-by: Xiaoyao Li --- Changes in v3: - Remove the .alias field (ehabkost) Changes in v2:

Re: [RFC v5 000/126] error: auto propagated local_err

2019-10-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191011160552.22907-1-vsement...@virtuozzo.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [RFC v5 000/126] error: auto propagated local_err Type: series Message-id:

Re: [PATCH v12 06/11] numa: Extend CLI to provide memory latency and bandwidth information

2019-10-11 Thread Tao Xu
On 10/11/2019 9:56 PM, Igor Mammedov wrote: On Wed, 9 Oct 2019 14:39:46 +0800 Tao Xu wrote: On 10/2/2019 11:16 PM, Igor Mammedov wrote: On Fri, 20 Sep 2019 15:43:44 +0800 Tao Xu wrote: [...] +struct HMAT_LB_Info { +/* Indicates it's memory or the specified level memory side cache.

Re: [PATCH 2/2] target/i386: Add support for put/get PEBS registers

2019-10-11 Thread Eduardo Habkost
On Thu, Aug 29, 2019 at 01:22:55PM +0800, Luwei Kang wrote: > This patch add a new feature words for IA32_PERF_CAPABILITIES (RO) > register that serve to expose PEBS output Intel PT feature. > The registers relate with PEBS need to be set/get when PEBS output > Intel PT is supported in guest. > >

[PATCH 2/2] migration/compress: disable compress if failed to setup

2019-10-11 Thread Wei Yang
In current logic, if compress_threads_save_setup() returns -1 the whole migration would fail, while we could handle it gracefully by disable compress. Signed-off-by: Wei Yang --- migration/migration.c | 9 + migration/migration.h | 1 + migration/ram.c | 15 --- 3

[PATCH 0/2] migration/compress: refine the compress case

2019-10-11 Thread Wei Yang
Two patches related to compress: 1. simplify the check since compress QEMUFile is not writable 2. handle compress setup failure gracefully Wei Yang (2): migration/compress: compress QEMUFile is not writable migration/compress: disable compress if failed to setup migration/migration.c | 9

[PATCH 1/2] migration/compress: compress QEMUFile is not writable

2019-10-11 Thread Wei Yang
We open a file with empty_ops for compress QEMUFile, which means this is not writable. Signed-off-by: Wei Yang --- migration/qemu-file.c | 16 +++- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/migration/qemu-file.c b/migration/qemu-file.c index

Re: [PATCH] target/riscv: PMP violation due to wrong size parameter

2019-10-11 Thread Jonathan Behrens
How do you know that the access won't straddle a page boundary? Is there a guarantee somewhere that size=0 means that the access is naturally aligned? Jonathan On Fri, Oct 11, 2019 at 7:14 PM Dayeol Lee wrote: > riscv_cpu_tlb_fill() uses the `size` parameter to check PMP violation > using

Re: [RFC v5 000/126] error: auto propagated local_err

2019-10-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191011160552.22907-1-vsement...@virtuozzo.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

Re: [PATCH v2] target/i386: Add Snowridge-v2 (noMPX) CPU model

2019-10-11 Thread Eduardo Habkost
On Sat, Oct 12, 2019 at 09:31:25AM +0800, Xiaoyao Li wrote: > On 10/12/2019 9:21 AM, Eduardo Habkost wrote: > > On Sat, Oct 12, 2019 at 09:15:56AM +0800, Xiaoyao Li wrote: > > > On 10/12/2019 2:21 AM, Eduardo Habkost wrote: > > > > On Fri, Oct 11, 2019 at 10:53:49PM +0800, Xiaoyao Li wrote: > > >

Re: [PATCH v2] target/i386: Add Snowridge-v2 (noMPX) CPU model

2019-10-11 Thread Xiaoyao Li
On 10/12/2019 9:21 AM, Eduardo Habkost wrote: On Sat, Oct 12, 2019 at 09:15:56AM +0800, Xiaoyao Li wrote: On 10/12/2019 2:21 AM, Eduardo Habkost wrote: On Fri, Oct 11, 2019 at 10:53:49PM +0800, Xiaoyao Li wrote: Add new version of Snowridge CPU model that removes MPX feature. MPX support is

Re: [PATCH v2] target/i386: Add Snowridge-v2 (noMPX) CPU model

2019-10-11 Thread Eduardo Habkost
On Sat, Oct 12, 2019 at 09:15:56AM +0800, Xiaoyao Li wrote: > On 10/12/2019 2:21 AM, Eduardo Habkost wrote: > > On Fri, Oct 11, 2019 at 10:53:49PM +0800, Xiaoyao Li wrote: > > > Add new version of Snowridge CPU model that removes MPX feature. > > > > > > MPX support is being phased out by Intel.

Re: [PATCH v2] target/i386: Add Snowridge-v2 (noMPX) CPU model

2019-10-11 Thread Xiaoyao Li
On 10/12/2019 2:21 AM, Eduardo Habkost wrote: On Fri, Oct 11, 2019 at 10:53:49PM +0800, Xiaoyao Li wrote: Add new version of Snowridge CPU model that removes MPX feature. MPX support is being phased out by Intel. GCC has dropped it, Linux kernel and kvm are also going to do that in the future.

Re: [Bug 1805256] Re: [Qemu-devel] qemu_futex_wait() lockups in ARM64: 2 possible issues

2019-10-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191011175536.GB25464@xps13.dannf/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [Bug 1805256] Re: [Qemu-devel] qemu_futex_wait() lockups in ARM64: 2 possible issues Type: series Message-id:

Re: [Bug 1805256] Re: [Qemu-devel] qemu_futex_wait() lockups in ARM64: 2 possible issues

2019-10-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191011175536.GB25464@xps13.dannf/ 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 === #!

Re: Exploring Sphinx, autodoc, apidoc, and coverage tools for python/qemu

2019-10-11 Thread John Snow
On 7/24/19 5:06 PM, John Snow wrote: > Has anyone on this list experimented with these tools? > > I was hoping to use them to document things like the python/machine.py > and python/qmp.py modules to help demonstrate some of our internal > tooling API (for test writers, GSoC/Outreachy interns,

Re: [PATCH v2] iotests/028: Fix for long $TEST_DIRs

2019-10-11 Thread John Snow
On 10/11/19 8:18 AM, Max Reitz wrote: > For long test image paths, the order of the "Formatting" line and the > "(qemu)" prompt after a drive_backup HMP command may be reversed. In > fact, the interaction between the prompt and the line may lead to the > "Formatting" to being greppable at all

Re: [PATCH v4 17/19] spapr: Remove last pieces of SpaprIrq

2019-10-11 Thread David Gibson
On Fri, Oct 11, 2019 at 08:13:33AM +0200, Greg Kurz wrote: > On Fri, 11 Oct 2019 16:07:58 +1100 > David Gibson wrote: > > > On Thu, Oct 10, 2019 at 10:33:04PM +0200, Greg Kurz wrote: > > > On Thu, 10 Oct 2019 08:29:58 +0200 > > > Greg Kurz wrote: > > > > > > > On Thu, 10 Oct 2019 13:02:09

Re: [PATCH v5 0/5] iotests: use python logging

2019-10-11 Thread John Snow
On 10/4/19 11:39 AM, Max Reitz wrote: > On 18.09.19 01:45, John Snow wrote: >> This series uses python logging to enable output conditionally on >> iotests.log(). We unify an initialization call (which also enables >> debugging output for those tests with -d) and then make the switch >> inside

Re: [PULL 01/19] util/hbitmap: strict hbitmap_reset

2019-10-11 Thread John Snow
On 10/11/19 5:48 PM, Eric Blake wrote: > On 10/11/19 4:25 PM, John Snow wrote: >> From: Vladimir Sementsov-Ogievskiy >> >> hbitmap_reset has an unobvious property: it rounds requested region up. >> It may provoke bugs, like in recently fixed write-blocking mode of >> mirror: user calls reset

Re: [PATCH v2 1/1] target/riscv/pmp: Fix bug preventing

2019-10-11 Thread Dayeol Lee
Hi, Alistair, Thank you for reminding me. I already had the local patch, so I re-submitted the patch. Please let me know if that's fair enough (or you have any other comments) Thanks, Dayeol On Fri, Oct 11, 2019 at 3:24 PM Alistair Francis wrote: > On Sun, Oct 6, 2019 at 1:32 AM Chris

[PATCH] target/riscv: PMP violation due to wrong size parameter

2019-10-11 Thread Dayeol Lee
riscv_cpu_tlb_fill() uses the `size` parameter to check PMP violation using pmp_hart_has_privs(). However, if the size is unknown (=0), the ending address will be `addr - 1` as it is `addr + size - 1` in `pmp_hart_has_privs()`. This always causes a false PMP violation on the starting address of

Re: [PATCH v2 1/1] target/riscv/pmp: Fix bug preventing

2019-10-11 Thread Alistair Francis
On Sun, Oct 6, 2019 at 1:32 AM Chris Williams wrote: > > Hello. I hope you don't mind me resubmitting this patch. Please let me know if Not at all! Thanks for the patch. In future if people don't respond you can just keep pinging your patch. > I've formatted it incorrectly or if it needs more

Re: [PATCH 1/3] hw/char: Add the BCM2835 miniuart

2019-10-11 Thread Alistair Francis
On Mon, Oct 7, 2019 at 10:18 AM Philippe Mathieu-Daudé wrote: > > The miniuart code is already present in the multi-device > hw/char/bcm2835_aux.c. Simply extracting it does not generate > patch easy to review. Instead, add it again, rename the function > names accordingly, use the

Re: [PATCH 05/19] hw/arm/bcm2835: Add various unimplemented peripherals

2019-10-11 Thread Alistair Francis
On Tue, Oct 8, 2019 at 2:43 AM Philippe Mathieu-Daudé wrote: > > Hi Alistair, > > On 9/27/19 11:42 PM, Alistair Francis wrote: > > On Thu, Sep 26, 2019 at 10:44 AM Philippe Mathieu-Daudé > > wrote: > >> > >> Base addresses and sizes taken from the "BCM2835 ARM Peripherals" > >> datasheet from

Re: [PATCH 2/4] qemu-io: Support help options for --object

2019-10-11 Thread Eric Blake
On 10/11/19 3:55 PM, Kevin Wolf wrote: Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-io, too. Signed-off-by: Kevin Wolf --- qemu-io.c | 9 - 1 file changed, 8 insertions(+), 1

ideas towards requiring VPATH build

2019-10-11 Thread Eric Blake
I know we've talked about enforcing a VPATH build, but haven't yet flipped the switch. This week, I've played with using a VPATH build (cd qemu; mkdir -p build; cd ./build; ../configure ...; make ...), but find my old habits of expecting an in-tree build to just work (cd qemu; make ...) hard

Re: [PULL 01/19] util/hbitmap: strict hbitmap_reset

2019-10-11 Thread Eric Blake
On 10/11/19 4:25 PM, John Snow wrote: From: Vladimir Sementsov-Ogievskiy hbitmap_reset has an unobvious property: it rounds requested region up. It may provoke bugs, like in recently fixed write-blocking mode of mirror: user calls reset on unaligned region, not keeping in mind that there are

[PULL 16/19] block/qcow2-bitmap: fix and improve qcow2_reopen_bitmaps_rw

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy - Correct check for write access to file child, and in correct place (only if we want to write). - Support reopen rw -> rw (which will be used in following commit), for example, !bdrv_dirty_bitmap_readonly() is not a corruption if bitmap is marked IN_USE

Re: [PATCH 3/4] qemu-img: Support help options for --object

2019-10-11 Thread Eric Blake
On 10/11/19 3:55 PM, Kevin Wolf wrote: Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-img, too. Signed-off-by: Kevin Wolf --- qemu-img.c | 34 +- 1 file

Re: [PATCH 1/4] vl: Split off user_creatable_print_help()

2019-10-11 Thread Eric Blake
On 10/11/19 3:55 PM, Kevin Wolf wrote: Printing help for --object is something that we don't only want in the s/don't/not/ system emulator, but also in tools that support --object. Move it into a separate function in qom/object_interfaces.c to make the code accessible for tools.

[PULL 14/19] block/qcow2-bitmap: do not remove bitmaps on reopen-ro

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy qcow2_reopen_bitmaps_ro wants to store bitmaps and then mark them all readonly. But the latter don't work, as qcow2_store_persistent_dirty_bitmaps removes bitmaps after storing. It's OK for inactivation but bad idea for reopen-ro. And this leads to the

Re: [PATCH 4/4] qemu-nbd: Support help options for --object

2019-10-11 Thread Eric Blake
On 10/11/19 3:55 PM, Kevin Wolf wrote: Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-nbd, too. Signed-off-by: Kevin Wolf --- qemu-nbd.c | 9 - 1 file changed, 8 insertions(+), 1

[PULL 19/19] dirty-bitmaps: remove deprecated autoload parameter

2019-10-11 Thread John Snow
This parameter has been deprecated since 2.12.0 and is eligible for removal. Remove this parameter as it is actually completely ignored; let's not give false hope. Signed-off-by: John Snow Reviewed-by: Eric Blake Reviewed-by: Vladimir Sementsov-Ogievskiy Message-id:

[PULL 11/19] iotests: add test-case to 165 to test reopening qcow2 bitmaps to RW

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Reopening bitmaps to RW was broken prior to previous commit. Check that it works now. Signed-off-by: Vladimir Sementsov-Ogievskiy Message-id: 20190927122355.7344-4-vsement...@virtuozzo.com Signed-off-by: John Snow --- tests/qemu-iotests/165 | 57

[PULL 18/19] MAINTAINERS: Add Vladimir as a reviewer for bitmaps

2019-10-11 Thread John Snow
I already try to make sure all bitmaps patches have been reviewed by both Red Hat and Virtuozzo anyway, so this formalizes the arrangement. Fam meanwhile is no longer as active, so I am removing him as a co-maintainer simply to reflect the current practice. Signed-off-by: John Snow Reviewed-by:

[PULL 15/19] iotests: add test 260 to check bitmap life after snapshot + commit

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Signed-off-by: Vladimir Sementsov-Ogievskiy Message-id: 20190927122355.7344-8-vsement...@virtuozzo.com Signed-off-by: John Snow --- tests/qemu-iotests/260 | 89 ++ tests/qemu-iotests/260.out | 52 ++

[PULL 17/19] qcow2-bitmap: move bitmap reopen-rw code to qcow2_reopen_commit

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The only reason I can imagine for this strange code at the very-end of bdrv_reopen_commit is the fact that bs->read_only updated after calling drv->bdrv_reopen_commit in bdrv_reopen_commit. And in the same time, prior to previous commit, qcow2_reopen_bitmaps_rw

[PULL 08/19] block/dirty-bitmap: refactor bdrv_dirty_bitmap_next

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy bdrv_dirty_bitmap_next is always used in same pattern. So, split it into _next and _first, instead of combining two functions into one and add FOR_EACH_DIRTY_BITMAP macro. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id:

[PULL 12/19] block/qcow2-bitmap: get rid of bdrv_has_changed_persistent_bitmaps

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Firstly, no reason to optimize failure path. Then, function name is ambiguous: it checks for readonly and similar things, but someone may think that it will ignore normal bitmaps which was just unchanged, and this is in bad relation with the fact that we should

[PULL 09/19] block: switch reopen queue from QSIMPLEQ to QTAILQ

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy We'll need reverse-foreach in the following commit, QTAILQ support it, so move to QTAILQ. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz Message-id: 20190927122355.7344-2-vsement...@virtuozzo.com Signed-off-by: John Snow ---

[PULL 13/19] block/qcow2-bitmap: drop qcow2_reopen_bitmaps_rw_hint()

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy The function is unused, drop it. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190927122355.7344-6-vsement...@virtuozzo.com Signed-off-by: John Snow --- block/qcow2.h| 2 -- block/qcow2-bitmap.c | 15

[PULL 07/19] block/dirty-bitmap: drop BdrvDirtyBitmap.mutex

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy mutex field is just a pointer to bs->dirty_bitmap_mutex, so no needs to store it in BdrvDirtyBitmap when we have bs pointer in it (since previous patch). Drop mutex field. Constantly use bdrv_dirty_bitmaps_lock/unlock in block/dirty-bitmap.c to make it more

[PULL 10/19] block: reverse order for reopen commits

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy It's needed to fix reopening qcow2 with bitmaps to RW. Currently it can't work, as qcow2 needs write access to file child, to mark bitmaps in-image with IN_USE flag. But usually children goes after parents in reopen queue and file child is still RO on qcow2

[PULL 05/19] block/dirty-bitmap: drop meta

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Drop meta bitmaps, as they are unused. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190916141911.5255-2-vsement...@virtuozzo.com Signed-off-by: John Snow --- include/block/dirty-bitmap.h | 5 block/dirty-bitmap.c

[PULL 04/19] block/qcow2: proper locking on bitmap add/remove paths

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy qmp_block_dirty_bitmap_add and do_block_dirty_bitmap_remove do acquire aio context since 0a6c86d024c52b. But this is not enough: we also must lock qcow2 mutex when access in-image metadata. Especially it concerns freeing qcow2 clusters. To achieve this, move

[PULL 03/19] block/dirty-bitmap: return int from bdrv_remove_persistent_dirty_bitmap

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy It's more comfortable to not deal with local_err. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190920082543.23444-3-vsement...@virtuozzo.com Signed-off-by: John Snow --- block/qcow2.h| 5 ++---

[PULL 06/19] block/dirty-bitmap: add bs link

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy Add bs field to BdrvDirtyBitmap structure. Drop BlockDriverState parameter from bitmap APIs where possible. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190916141911.5255-3-vsement...@virtuozzo.com Signed-off-by: John Snow

[PULL 01/19] util/hbitmap: strict hbitmap_reset

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy hbitmap_reset has an unobvious property: it rounds requested region up. It may provoke bugs, like in recently fixed write-blocking mode of mirror: user calls reset on unaligned region, not keeping in mind that there are possible unrelated dirty bytes, covered

[PULL 00/19] Bitmaps patches

2019-10-11 Thread John Snow
The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100) are available in the Git repository at: https://github.com/jnsnow/qemu.git tags/bitmaps-pull-request

[PULL 02/19] block: move bdrv_can_store_new_dirty_bitmap to block/dirty-bitmap.c

2019-10-11 Thread John Snow
From: Vladimir Sementsov-Ogievskiy block/dirty-bitmap.c seems to be more appropriate for it and bdrv_remove_persistent_dirty_bitmap already in it. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: John Snow Message-id: 20190920082543.23444-2-vsement...@virtuozzo.com Signed-off-by: John

Re: [Qemu-devel] [PATCH v30 0/8] QEMU AVR 8 bit cores

2019-10-11 Thread Aleksandar Markovic
On Friday, October 11, 2019, Alex Bennée wrote: > > Aleksandar Markovic writes: > > > On Friday, October 11, 2019, Philippe Mathieu-Daudé > > wrote: > > > >> Hi Michael, > >> > >> On 9/2/19 4:01 PM, Michael Rolnik wrote: > >> > >>> This series of patches adds 8bit AVR cores to QEMU. > >>> All

[PATCH 4/4] qemu-nbd: Support help options for --object

2019-10-11 Thread Kevin Wolf
Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-nbd, too. Signed-off-by: Kevin Wolf --- qemu-nbd.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qemu-nbd.c

[PATCH 2/4] qemu-io: Support help options for --object

2019-10-11 Thread Kevin Wolf
Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-io, too. Signed-off-by: Kevin Wolf --- qemu-io.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qemu-io.c

[PATCH 3/4] qemu-img: Support help options for --object

2019-10-11 Thread Kevin Wolf
Instead of parsing help options as normal object properties and returning an error, provide the same help functionality as the system emulator in qemu-img, too. Signed-off-by: Kevin Wolf --- qemu-img.c | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-)

[PATCH 0/4] qemu-img/io/nbd: Support help options for --object

2019-10-11 Thread Kevin Wolf
This series fixes that the tools don't consider help options for --object and just treat them as regular object properties. For example: $ ./qemu-io --object secret,help qemu-io: Parameter 'id' is missing With these patches, we get the expected behaviour like in the system emulator.

[PATCH 1/4] vl: Split off user_creatable_print_help()

2019-10-11 Thread Kevin Wolf
Printing help for --object is something that we don't only want in the system emulator, but also in tools that support --object. Move it into a separate function in qom/object_interfaces.c to make the code accessible for tools. Signed-off-by: Kevin Wolf --- include/qom/object_interfaces.h | 12

Re: [PATCH] qcow2-bitmaps: fix qcow2_can_store_new_dirty_bitmap

2019-10-11 Thread John Snow
On 10/11/19 6:02 AM, Vladimir Sementsov-Ogievskiy wrote: > 10.10.2019 21:46, John Snow wrote: >> >> >> On 10/10/19 11:39 AM, Eric Blake wrote: >>> On 6/7/19 1:53 PM, Vladimir Sementsov-Ogievskiy wrote: 07.06.2019 21:48, Vladimir Sementsov-Ogievskiy wrote: >

Re: [PATCH v2 1/1] IDE: deprecate ide-drive

2019-10-11 Thread John Snow
On 10/11/19 5:12 AM, Peter Krempa wrote: > On Thu, Oct 10, 2019 at 14:08:12 -0400, John Snow wrote: >> On 10/10/19 7:54 AM, Peter Krempa wrote: >>> On Thu, Oct 10, 2019 at 13:42:26 +0200, Philippe Mathieu-Daudé wrote: On 10/10/19 1:26 PM, Peter Krempa wrote: > > [...] > >>> To be honest,

Re: [PATCH v2 1/4] qemu-iotests: remove bash shebang from library files

2019-10-11 Thread Kevin Wolf
Am 11.10.2019 um 22:05 hat Cleber Rosa geschrieben: > On Fri, Oct 11, 2019 at 02:27:25PM +0300, Nir Soffer wrote: > > On Fri, Oct 11, 2019, 12:36 Kevin Wolf wrote: > > > > > Am 09.10.2019 um 21:47 hat Cleber Rosa geschrieben: > > > > Due to not being able to find a reason to have shebangs on

Re: [PATCH v2 1/4] qemu-iotests: remove bash shebang from library files

2019-10-11 Thread Cleber Rosa
On Fri, Oct 11, 2019 at 02:27:25PM +0300, Nir Soffer wrote: > On Fri, Oct 11, 2019, 12:36 Kevin Wolf wrote: > > > Am 09.10.2019 um 21:47 hat Cleber Rosa geschrieben: > > > Due to not being able to find a reason to have shebangs on files that > > > are not executable. > > > > > > While at it, add

Re: [RFC v5 099/126] nbd: introduce ERRP_AUTO_PROPAGATE

2019-10-11 Thread Eric Blake
On 10/11/19 11:05 AM, Vladimir Sementsov-Ogievskiy wrote: If we want to add some info to errp (by error_prepend() or error_append_hint()), we must use the ERRP_AUTO_PROPAGATE macro. Otherwise, this info will not be added when errp == _err (the program will exit prior to the error_append_hint()

[PULL 19/21] migration/multifd: initialize packet->magic/version once at setup stage

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang MultiFDPacket_t's magic and version field never changes during migration, so move these two fields in setup stage. Signed-off-by: Wei Yang Message-Id: <20191011085050.17622-4-richardw.y...@linux.intel.com> Reviewed-by: Juan Quintela Signed-off-by: Dr. David Alan Gilbert ---

[PULL 16/21] migration/postcopy: check PostcopyState before setting to POSTCOPY_INCOMING_RUNNING

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Currently, we set PostcopyState blindly to RUNNING, even we found the previous state is not LISTENING. This will lead to a corner case. First let's look at the code flow: qemu_loadvm_state_main() ret = loadvm_process_command() loadvm_postcopy_handle_run()

[PULL 14/21] migration/postcopy: postpone setting PostcopyState to END

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang There are two places to call function postcopy_ram_incoming_cleanup() postcopy_ram_listen_thread on migration success loadvm_postcopy_handle_listen one setup failure On success, the vm will never accept another migration. On failure, PostcopyState is transited from

[PULL 13/21] migration/postcopy: mis->have_listen_thread check will never be touched

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang If mis->have_listen_thread is true, this means current PostcopyState must be LISTENING or RUNNING. While the check at the beginning of the function makes sure the state transaction happens when its previous PostcopyState is ADVISE or DISCARD. This means we would never touch this

Re: [PATCH v5 00/22] target/arm: Implement ARMv8.5-MemTag, system mode

2019-10-11 Thread no-reply
Patchew URL: https://patchew.org/QEMU/20191011134744.2477-1-richard.hender...@linaro.org/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH v5 00/22] target/arm: Implement ARMv8.5-MemTag, system mode Type: series Message-id:

Re: [RFC v5 080/126] QAPI: introduce ERRP_AUTO_PROPAGATE

2019-10-11 Thread Eric Blake
On 10/11/19 11:05 AM, Vladimir Sementsov-Ogievskiy wrote: If we want to add some info to errp (by error_prepend() or error_append_hint()), we must use the ERRP_AUTO_PROPAGATE macro. Otherwise, this info will not be added when errp == _err (the program will exit prior to the error_append_hint()

Re: [RFC v5 083/126] QMP: introduce ERRP_AUTO_PROPAGATE

2019-10-11 Thread Eric Blake
On 10/11/19 11:05 AM, Vladimir Sementsov-Ogievskiy wrote: If we want to add some info to errp (by error_prepend() or error_append_hint()), we must use the ERRP_AUTO_PROPAGATE macro. Otherwise, this info will not be added when errp == _err (the program will exit prior to the error_append_hint()

[PULL 10/21] migration/postcopy: fix typo in mark_postcopy_blocktime_begin's comment

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Signed-off-by: Wei Yang Message-Id: <20191005220517.24029-3-richardw.y...@linux.intel.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Dr. David Alan Gilbert --- migration/postcopy-ram.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

Re: ACPI table modifications

2019-10-11 Thread Philippe Mathieu-Daudé
Hi Gautam, On 10/11/19 8:47 PM, Gautam Bhat wrote: Hi, I want to add some I2C based temperature sensors to the -M Q35 machine. I want to update the ACPI tables to add this device information. How can I go about  doing this? QEMU provides a MAINTAINERS file with persons to contact sorted by

[PULL 21/21] migration: Support gtree migration

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Eric Auger Introduce support for GTree migration. A custom save/restore is implemented. Each item is made of a key and a data. If the key is a pointer to an object, 2 VMSDs are passed into the GTree VMStateField. When putting the items, the tree is traversed in sorted order by

[PULL 06/21] rcu: Use automatic rc_read unlock in core memory/exec code

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Daniel P. Berrangé Message-Id: <20191007143642.301445-6-dgilb...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- exec.c | 116 ++--- include/exec/ram_addr.h |

[PULL 18/21] migration/multifd: use pages->allocated instead of the static max

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang multifd_send_fill_packet() prepares meta data for following pages to transfer. It would be more proper to fill pages->allocated instead of static max value, especially we want to support flexible packet size. Signed-off-by: Wei Yang Message-Id:

[PULL 15/21] migration/postcopy: rename postcopy_ram_enable_notify to postcopy_ram_incoming_setup

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Function postcopy_ram_incoming_setup and postcopy_ram_incoming_cleanup is a pair. Rename to make it clear for audience. Signed-off-by: Wei Yang Reviewed-by: Dr. David Alan Gilbert Message-Id: <20191010011316.31363-2-richardw.y...@linux.intel.com> Reviewed-by: Peter Xu

[PULL 04/21] migration: Use automatic rcu_read unlock in ram.c

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Use the automatic read unlocker in migration/ram.c Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Daniel P. Berrangé Message-Id: <20191007143642.301445-4-dgilb...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c | 259

[PULL 17/21] migration/multifd: fix a typo in comment of multifd_recv_unfill_packet()

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Signed-off-by: Wei Yang Message-Id: <20191011085050.17622-2-richardw.y...@linux.intel.com> Reviewed-by: Juan Quintela Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c

[PULL 20/21] migration/multifd: pages->used would be cleared when attach to multifd_send_state

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang When we found an available channel in multifd_send_pages(), its pages->used is cleared and then attached to multifd_send_state. It is not necessary to do this twice. Signed-off-by: Wei Yang Message-Id: <20191011085050.17622-5-richardw.y...@linux.intel.com> Reviewed-by: Juan

[PULL 12/21] migration: report SaveStateEntry id and name on failure

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang This provides helpful information on which entry failed. Signed-off-by: Wei Yang Message-Id: <20191005220517.24029-5-richardw.y...@linux.intel.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Dr. David Alan Gilbert --- migration/savevm.c | 2 ++ 1 file changed, 2

[PULL 03/21] migration: Fix missing rcu_read_unlock

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Use the automatic rcu_read unlocker to fix a missing unlock. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Daniel P. Berrangé Message-Id: <20191007143642.301445-3-dgilb...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/ram.c | 27

[PULL 11/21] migration: pass in_postcopy instead of check state again

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Not necessary to do the check again. Signed-off-by: Wei Yang Message-Id: <20191005220517.24029-4-richardw.y...@linux.intel.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- migration/migration.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PULL 09/21] migration/postcopy: map large zero page in postcopy_ram_incoming_setup()

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang postcopy_ram_incoming_setup() and postcopy_ram_incoming_cleanup() are counterpart. It is reasonable to map/unmap large zero page in these two functions respectively. Signed-off-by: Wei Yang Message-Id: <20191005135021.21721-3-richardw.y...@linux.intel.com> Reviewed-by: Dr. David

[PULL 05/21] migration: Use automatic rcu_read unlock in rdma.c

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" Use the automatic read unlocker in migration/rdma.c. Signed-off-by: Dr. David Alan Gilbert Reviewed-by: Daniel P. Berrangé Message-Id: <20191007143642.301445-5-dgilb...@redhat.com> Signed-off-by: Dr. David Alan Gilbert --- migration/rdma.c | 57

[PULL 02/21] rcu: Add automatically released rcu_read_lock variants

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" RCU_READ_LOCK_GUARD() takes the rcu_read_lock and then uses glib's g_auto infrastructure (and thus whatever the compiler's hooks are) to release it on all exits of the block. WITH_RCU_READ_LOCK_GUARD() is similar but is used as a wrapper for the lock, i.e.:

[PULL 08/21] migration/postcopy: allocate tmp_page in setup stage

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang During migration, a tmp page is allocated so that we could place a whole host page during postcopy. Currently the page is allocated during load stage, this is a little bit late. And more important, if we failed to allocate it, the error is not checked properly. Even it is NULL,

[PULL 00/21] migration queue

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" The following changes since commit 98b2e3c9ab3abfe476a2b02f8f51813edb90e72d: Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into staging (2019-10-08 16:08:35 +0100) are available in the Git repository at:

[PULL 07/21] migration: Don't try and recover return path in non-postcopy

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: "Dr. David Alan Gilbert" In normal precopy we can't do reconnection recovery - but we also don't need to, since you can just rerun migration. At the moment if the 'return-path' capability is on, we use the return path in precopy to give a positive 'OK' to the end of migration; however if

[PULL 01/21] migration: use migration_is_active to represent active state

2019-10-11 Thread Dr. David Alan Gilbert (git)
From: Wei Yang Wrap the check into a function to make it easy to read. Signed-off-by: Wei Yang Message-Id: <20190717005341.14140-1-richardw.y...@linux.intel.com> Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Dr. David Alan Gilbert --- include/migration/misc.h | 1 +

Re: [RFC v5 067/126] block: introduce ERRP_AUTO_PROPAGATE

2019-10-11 Thread Eric Blake
On 10/11/19 11:04 AM, Vladimir Sementsov-Ogievskiy wrote: If we want to add some info to errp (by error_prepend() or error_append_hint()), we must use the ERRP_AUTO_PROPAGATE macro. Otherwise, this info will not be added when errp == _err (the program will exit prior to the error_append_hint()

Re: Occasional VM soft lockup when a remote cdrom is attached

2019-10-11 Thread John Snow
On 10/11/19 9:22 AM, Guoheyi wrote: > Hi folks, > > We observed Linux on VM occasionally (at very low rate) got soft lockup > when a remote cdrom is attached. The guest hangs up at below call trace: > That's certainly a new one to me :) > [Tue Oct8 23:02:53 2019]ata_scsi_queuecmd+0xe0/0x2a0

Re: [Qemu-devel] [RFC 2 PATCH 13/16] machine: Add new epyc property in PCMachineState

2019-10-11 Thread Eduardo Habkost
On Fri, Oct 11, 2019 at 04:59:37PM +, Moger, Babu wrote: > > On 10/10/19 10:59 PM, Eduardo Habkost wrote: > > On Fri, Sep 06, 2019 at 07:13:09PM +, Moger, Babu wrote: > >> Adds new epyc property in PCMachineState and also in MachineState. > >> This property will be used to initialize the

Re: [RFC v5 004/126] hmp: drop Error pointer indirection in hmp_handle_error

2019-10-11 Thread Dr. David Alan Gilbert
* Eric Blake (ebl...@redhat.com) wrote: > On 10/11/19 11:03 AM, Vladimir Sementsov-Ogievskiy wrote: > > We don't need Error **, as all callers pass local Error object, which > > isn't used after the call. Use Error * instead. > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy > > --- > >

RE: [PATCH v6 4/4] colo: Update Documentation for continuous replication

2019-10-11 Thread Zhang, Chen
> -Original Message- > From: Lukas Straub > Sent: Saturday, October 12, 2019 12:01 AM > To: Zhang, Chen > Cc: qemu-devel ; Jason Wang > ; Wen Congyang ; > Xie Changlong ; Kevin Wolf > ; Max Reitz ; qemu-block > > Subject: Re: [PATCH v6 4/4] colo: Update Documentation for continuous >

Re: [RFC v5 000/126] error: auto propagated local_err

2019-10-11 Thread Eric Blake
On 10/11/19 11:03 AM, Vladimir Sementsov-Ogievskiy wrote: Hi all! At the request of Markus: full version of errp propagation. Let's look at it. Cover as much as possible, except inserting macro invocation where it's not necessary. It's huge, and so it's an RFC. Is there a repo containing

Re: [RFC v5 007/126] nbd: well form nbd_iter_channel_error errp handler

2019-10-11 Thread Eric Blake
On 10/11/19 11:03 AM, Vladimir Sementsov-Ogievskiy wrote: Make nbd_iter_channel_error errp handler well formed: rename errp to errp_in, as it is IN-parameter here (which is unusual Actually, rename local_err to errp_in. for errp). Signed-off-by: Vladimir Sementsov-Ogievskiy ---

ACPI table modifications

2019-10-11 Thread Gautam Bhat
Hi, I want to add some I2C based temperature sensors to the -M Q35 machine. I want to update the ACPI tables to add this device information. How can I go about doing this? Thanks, Gautam.

  1   2   3   4   5   6   >