Re: [RFC 2/2] virtio-net: use post load hook

2019-10-11 Thread Mikhail Sennikovsky
Am Fr., 11. Okt. 2019 um 12:08 Uhr schrieb Michael S. Tsirkin : >... > And pre save hook can do n->saved_guest_offloads = n->curr_guest_offloads. Would you want to have the saved_guest_offloads as part of the saved state? The curr_guest_offloads info is already there, so why would you want to

Re: [PATCH 4/4] migration/multifd: pages->used would be cleared when attach to multifd_send_state

2019-10-11 Thread Juan Quintela
Wei Yang wrote: > 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 Reviewed-by: Juan Quintela

Re: [PATCH 3/4] migration/multifd: initialize packet->magic/version once at setup stage

2019-10-11 Thread Juan Quintela
Wei Yang wrote: > MultiFDPacket_t's magic and version field never changes during > migration, so move these two fields in setup stage. > > Signed-off-by: Wei Yang Reviewed-by: Juan Quintela It don't really matter, and is faster your way O:-)

Re: [PATCH v4] migration: Support gtree migration

2019-10-11 Thread Juan Quintela
Eric Auger wrote: > 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

Re: [PATCH 1/2] qcow2: Limit total allocation range to INT_MAX

2019-10-11 Thread Philippe Mathieu-Daudé
On 10/10/19 12:08 PM, Max Reitz wrote: When the COW areas are included, the size of an allocation can exceed INT_MAX. This is kind of limited by handle_alloc() in that it already caps avail_bytes at INT_MAX, but the number of clusters still reflects the original length. This can have all sorts

Re: [PATCH] tests: fix counting typo error

2019-10-11 Thread Stefan Hajnoczi
On Thu, Oct 10, 2019 at 08:17:02PM +0800, Tianjia Zhang wrote: > Instead of global variables, local variables should be incrementing, > This is a typo fix. > > Signed-off-by: Tianjia Zhang <77389...@qq.com> > --- > tests/test-rcu-list.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH 2/2] migration/postcopy: map large zero page in postcopy_ram_incoming_setup()

2019-10-11 Thread Dr. David Alan Gilbert
* Wei Yang (richardw.y...@linux.intel.com) wrote: > On Tue, Oct 08, 2019 at 06:24:23PM +0100, Dr. David Alan Gilbert wrote: > >* Wei Yang (richardw.y...@linux.intel.com) wrote: > >> postcopy_ram_incoming_setup() and postcopy_ram_incoming_cleanup() are > >> counterpart. It is reasonable to

Re: [PATCH v2 2/2] migration/postcopy: check PostcopyState before setting to POSTCOPY_INCOMING_RUNNING

2019-10-11 Thread Dr. David Alan Gilbert
* Wei Yang (richardw.y...@linux.intel.com) wrote: > 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() >

Re: [RFC 2/2] virtio-net: use post load hook

2019-10-11 Thread Michael S. Tsirkin
Ugh. Okay. So let's add a new field saved_guest_offloads and have vmstate use that instead of curr_guest_offloads. Now the new post load hook can do n->curr_guest_offloads = n->saved_guest_offloads and apply that. And pre save hook can do n->saved_guest_offloads = n->curr_guest_offloads.

Re: [PATCH] qcow2-bitmaps: fix qcow2_can_store_new_dirty_bitmap

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
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: qcow2_can_store_new_dirty_bitmap works wrong, as it considers only bitmaps already stored

Re: [RFC 2/2] virtio-net: use post load hook

2019-10-11 Thread Mikhail Sennikovsky
Note that the virtio_net_set_features gets also called from the virtio_pci_common_write when guest does virtio device configuration. In that case the curr_guest_offloads are still expected to be reset. Mikhail Am Fr., 11. Okt. 2019 um 11:51 Uhr schrieb Michael S. Tsirkin : > > On Fri, Oct 11,

Re: [PATCH 00/97] Patch Round-up for stable 4.0.1, freeze on 2019-10-10

2019-10-11 Thread Anthony PERARD
On Tue, Oct 01, 2019 at 06:44:39PM -0500, Michael Roth wrote: > Hi everyone, Hi Michael, > Please respond here or CC qemu-sta...@nongnu.org on any patches you > think should be included in the release. [...] > Anthony PERARD (1): > xen-bus: Fix backend state transition on device reset

Re: [RFC 2/2] virtio-net: use post load hook

2019-10-11 Thread Michael S. Tsirkin
On Fri, Oct 11, 2019 at 11:46:22AM +0200, Mikhail Sennikovsky wrote: > Hi Michael, > > Unfortunately your approach will not work, because the > VirtIONet::curr_guest_offloads would still be reset in > virtio_net_set_features: > -- > if (n->has_vnet_hdr) { > n->curr_guest_offloads = >

Re: [RFC 2/2] virtio-net: use post load hook

2019-10-11 Thread Mikhail Sennikovsky
Hi Michael, Unfortunately your approach will not work, because the VirtIONet::curr_guest_offloads would still be reset in virtio_net_set_features: -- if (n->has_vnet_hdr) { n->curr_guest_offloads = virtio_net_guest_offloads_by_features(features); -- (

Sphinx UnpicklingError (was Re: [Patchew-devel] Fwd: Re: [PATCH v4] migration: Support gtree migration)

2019-10-11 Thread Paolo Bonzini
Peter, this UnpicklingError from Sphinx seems to be caused by building manuals in parallel. Can you take a look? Thanks, Paolo On 11/10/19 07:20, Auger Eric wrote: > Hi, > > This failure looks unrelated to this series; and the above script > succeeds on my side. > > Best Regards > > Eric >

Re: [PATCH 1/4] migration/multifd: fix a typo in comment of multifd_recv_unfill_packet()

2019-10-11 Thread Juan Quintela
Wei Yang wrote: > Signed-off-by: Wei Yang > --- > migration/ram.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/migration/ram.c b/migration/ram.c > index 22423f08cd..cf30171f44 100644 > --- a/migration/ram.c > +++ b/migration/ram.c > @@ -838,7 +838,7 @@ static int

[RFC PATCH] accel/kvm: respect section RO flag when mapping phys mem

2019-10-11 Thread Evgeny Yakovlev
Currently kvm_set_phys_mem looks at section's underlying memory region to determine whether mapping is going to be RW or RO. This seems wrong. For example, when x86 firmware attempts to reprogram q35 PAM registers to mark bios shadow copy in RAM as RO. In that case we see section->mr to be

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

2019-10-11 Thread Kevin Wolf
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 a mode hint to emacs, which would be clueless or > plain wrong about these containing shell code. vim still doesn't like the

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

2019-10-11 Thread Thomas Huth
On 11/10/2019 11.07, 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. It is > not well-defined anyway, so just silence everything and wait until we > get a prompt. > > Reported-by: Thomas

Re: [for-4.2 PATCH 3/6] replay: update docs for record/replay with block devices

2019-10-11 Thread Kevin Wolf
Am 11.10.2019 um 08:10 hat Pavel Dovgalyuk geschrieben: > > From: Kevin Wolf [mailto:kw...@redhat.com] > > Am 25.09.2019 um 11:02 hat Pavel Dovgalyuk geschrieben: > > > I started playing with -blockdev: added new blockdev for blkreplay and > > > constructed the following command line: > > > > > >

Re: [for-4.2 PATCH 0/6] Block-related record/replay fixes

2019-10-11 Thread Kevin Wolf
Am 17.09.2019 um 13:57 hat Pavel Dovgalyuk geschrieben: > The set of patches include the block-related updates > of the record/replay icount feature: > - application of 'snapshot' option on the file layer instead of >the top one: command line and documentation fix > - implementation of

[PATCH v2 0/5] active-mirror: support unaligned guest operations

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Commit 9adc1cb49af8d fixed a bug about unaligned (to dirty bitmap granularity) guest writes (and discards) by simply requesting corresponding alignment on mirror-top filter. However forcing large alignment obviously decreases performance of unaligned requests. So it's time for a new solution

Re: [PATCH 3/4] block/mirror: support unaligned write in active mirror

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
11.10.2019 11:58, Max Reitz wrote: > On 11.10.19 10:33, Vladimir Sementsov-Ogievskiy wrote: >> 04.10.2019 19:31, Max Reitz wrote: >>> On 12.09.19 17:13, Vladimir Sementsov-Ogievskiy wrote: Prior 9adc1cb49af8d do_sync_target_write had a bug: it reset aligned-up region in the dirty bitmap,

[PATCH v2 5/5] Revert "mirror: Only mirror granularity-aligned chunks"

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
This reverts commit 9adc1cb49af8d4e54f57980b1eed5c0a4b2dafa6. "mirror: Only mirror granularity-aligned chunks" Since previous commit unaligned chunks are supported by do_sync_target_write. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- block/mirror.c | 29

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

2019-10-11 Thread Peter Krempa
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, I didn't really review the code nor the

Re: [PATCH v4 0/4] qapi: Add detection for the 'savevm' fix for blockdev

2019-10-11 Thread Peter Krempa
On Fri, Oct 11, 2019 at 10:50:23 +0200, Markus Armbruster wrote: > Add 'features' field in the schema for commands and add a feature flag > to advertise that the fix for savevm [1] is present. > > [1] https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg03487.html > > Based-on:

[PATCH v2 4/5] block/mirror: support unaligned write in active mirror

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Prior 9adc1cb49af8d do_sync_target_write had a bug: it reset aligned-up region in the dirty bitmap, which means that we may not copy some bytes and assume them copied, which actually leads to producing corrupted target. So 9adc1cb49af8d forced dirty bitmap granularity to be request_alignment for

[PATCH v2 1/5] hbitmap: handle set/reset with zero length

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Passing zero length to these functions leads to unpredicted results. Zero-length set/reset may occur in active-mirror, on zero-length write (which is unlikely, but not guaranteed to never happen). Let's just do nothing on zero-length request. Signed-off-by: Vladimir Sementsov-Ogievskiy ---

Re: [PATCH 3/4] block/mirror: support unaligned write in active mirror

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
11.10.2019 11:58, Max Reitz wrote: > On 11.10.19 10:33, Vladimir Sementsov-Ogievskiy wrote: >> 04.10.2019 19:31, Max Reitz wrote: >>> On 12.09.19 17:13, Vladimir Sementsov-Ogievskiy wrote: Prior 9adc1cb49af8d do_sync_target_write had a bug: it reset aligned-up region in the dirty bitmap,

[PATCH v2 3/5] block/block-backend: add blk_co_pwritev_part

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Add blk write function with qiov_offset parameter. It's needed for the following commit. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Max Reitz --- include/sysemu/block-backend.h | 4 block/block-backend.c | 17 + 2 files changed, 17 insertions(+), 4

Re: [PATCH v4 1/4] tests/qapi-schema: Tidy up test output indentation

2019-10-11 Thread Peter Krempa
On Fri, Oct 11, 2019 at 10:50:24 +0200, Markus Armbruster wrote: > Command and event details are indented three spaces, everything else > four. Messed up in commit 156402e5042. Use four spaces consistently. > > Signed-off-by: Markus Armbruster > --- > tests/qapi-schema/doc-good.out |

Re: [PATCH 3/4] block/mirror: support unaligned write in active mirror

2019-10-11 Thread Max Reitz
On 11.10.19 10:33, Vladimir Sementsov-Ogievskiy wrote: > 04.10.2019 19:31, Max Reitz wrote: >> On 12.09.19 17:13, Vladimir Sementsov-Ogievskiy wrote: >>> Prior 9adc1cb49af8d do_sync_target_write had a bug: it reset aligned-up >>> region in the dirty bitmap, which means that we may not copy some

[PATCH v2 2/5] block/mirror: simplify do_sync_target_write

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
do_sync_target_write is called from bdrv_mirror_top_do_write after write/discard operation, all inside active_write/active_write_settle protecting us from mirror iteration. So the whole area is dirty for sure, no reason to examine dirty bitmap. Signed-off-by: Vladimir Sementsov-Ogievskiy

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

2019-10-11 Thread Max Reitz
For long test image paths, the order of the "Formatting" line and the "(qemu)" prompt after a drive_backup HMP command may be reversed. It is not well-defined anyway, so just silence everything and wait until we get a prompt. Reported-by: Thomas Huth Signed-off-by: Max Reitz ---

[PATCH v2 7/7] libqos: add VIRTIO PCI 1.0 support

2019-10-11 Thread Stefan Hajnoczi
Implement the VIRTIO 1.0 virtio-pci interface. The main change here is that the register layout is no longer a fixed layout in BAR 0. Instead we have to iterate of PCI Capabilities to find descriptions of where various registers are located. The vring registers are also more fine-grained,

[PATCH v2 6/7] libqos: make the virtio-pci BAR index configurable

2019-10-11 Thread Stefan Hajnoczi
The Legacy virtio-pci interface always uses BAR 0. VIRTIO 1.0 may need to use a different BAR index, so make it configurable. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.h | 2 ++ tests/libqos/virtio-pci.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v2 5/7] libqos: expose common virtqueue setup/cleanup functions

2019-10-11 Thread Stefan Hajnoczi
The VIRTIO 1.0 code will need to perform additional steps but it will reuse the common virtqueue setup/cleanup code. Make these functions public. Make sure to invoke callbacks via QVirtioBus instead of directly calling the virtio-pci Legacy versions of these functions. Signed-off-by: Stefan

[PATCH v2 4/7] libqos: add MSI-X callbacks to QVirtioPCIDevice

2019-10-11 Thread Stefan Hajnoczi
The MSI-X vectors are programmed differently in the VIRTIO 1.0 and Legacy interfaces. Introduce callbacks so different implementations can be used depending on the interface version. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.h | 12 tests/libqos/virtio-pci.c | 37

[PATCH v2 3/7] libqos: pass full QVirtQueue to set_queue_address()

2019-10-11 Thread Stefan Hajnoczi
Instead of just passing the vring page frame number, pass the full QVirtQueue. This will allow the VIRTIO 1.0 transport to program the fine-grained vring address registers in the future. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio.h | 2 +- tests/libqos/virtio-mmio.c | 6 --

Re: [PATCH v2 2/2] qapi: Allow introspecting fix for savevm's cooperation with blockdev

2019-10-11 Thread Kevin Wolf
Am 11.10.2019 um 08:08 hat Markus Armbruster geschrieben: > Kevin Wolf writes: > > > Am 02.10.2019 um 13:57 hat Markus Armbruster geschrieben: > >> Eric Blake writes: > >> > >> > On 10/1/19 2:34 PM, Markus Armbruster wrote: > >> >> Peter Krempa writes: > >> >> > >> >>> savevm was buggy as it

[PATCH 2/4] migration/multifd: use pages->allocated instead of the static max

2019-10-11 Thread 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 --- migration/ram.c | 3 +-- 1 file changed, 1 insertion(+), 2

[PATCH v2 2/7] libqos: add iteration support to qpci_find_capability()

2019-10-11 Thread Stefan Hajnoczi
VIRTIO 1.0 PCI devices have multiple PCI_CAP_ID_VNDR capabilities so we need a way to iterate over them. Extend qpci_find_capability() to take the last address. Signed-off-by: Stefan Hajnoczi --- tests/libqos/pci.h | 2 +- tests/libqos/pci.c | 18 -- 2 files changed, 13

[PATCH 0/4] migration/multifd: trivial cleanup for multifd

2019-10-11 Thread Wei Yang
Here are four trivial cleanups related to multifd. Fix a typo, use a proper variable and setup never changed variables only once. Wei Yang (4): migration/multifd: fix a typo in comment of multifd_recv_unfill_packet() migration/multifd: use pages->allocated instead of the static max

[PATCH v2 1/7] libqos: extract Legacy virtio-pci.c code

2019-10-11 Thread Stefan Hajnoczi
The current libqos virtio-pci.c code implements the VIRTIO Legacy interface. Extract existing code in preparation for VIRTIO 1.0 support. Signed-off-by: Stefan Hajnoczi --- tests/libqos/virtio-pci.h | 2 -- tests/libqos/virtio-pci.c | 25 ++--- 2 files changed, 10

[PATCH v2 0/7] libqos: add VIRTIO PCI 1.0 support

2019-10-11 Thread Stefan Hajnoczi
v2: * Fix checkpatch.pl issues, except MAINTAINERS file warning. libqos already has maintainers and the new virtio-pci-modern.[ch] files don't need extra entries since they are already covered by the existing libqos/ entry. New VIRTIO devices are Non-Transitional. This means they only

[PATCH 4/4] migration/multifd: pages->used would be cleared when attach to multifd_send_state

2019-10-11 Thread 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 --- migration/ram.c | 1 - 1 file changed, 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c

Re: [PATCH 00/23] iotests: Add and use $SOCK_DIR

2019-10-11 Thread Max Reitz
On 11.10.19 09:27, Thomas Huth wrote: > On 10/10/2019 17.24, Max Reitz wrote: >> Hi, >> >> Perhaps the main reason we cannot run important tests such as 041 in CI >> is that when they care Unix sockets in $TEST_DIR, the path may become >> too long to connect to them. >> >> To get by this problem,

[PATCH v4 4/4] qapi: Allow introspecting fix for savevm's cooperation with blockdev

2019-10-11 Thread Markus Armbruster
From: Peter Krempa 'savevm' was buggy as it considered all monitor-owned block device nodes for snapshot. With the introduction of -blockdev, the common usage made all nodes including protocol and backing file nodes be monitor-owned and thus considered for snapshot. This is a problem since the

[PATCH 1/4] migration/multifd: fix a typo in comment of multifd_recv_unfill_packet()

2019-10-11 Thread Wei Yang
Signed-off-by: Wei Yang --- migration/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index 22423f08cd..cf30171f44 100644 --- a/migration/ram.c +++ b/migration/ram.c @@ -838,7 +838,7 @@ static int

[PATCH v4 2/4] qapi: Add feature flags to commands in qapi

2019-10-11 Thread Markus Armbruster
From: Peter Krempa Similarly to features for struct types introduce the feature flags also for commands. This will allow notifying management layers of fixes and compatible changes in the behaviour of a command which may not be detectable any other way. The changes were heavily inspired by

[PATCH 3/4] migration/multifd: initialize packet->magic/version once at setup stage

2019-10-11 Thread 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 --- migration/ram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/migration/ram.c b/migration/ram.c index 6a3bef0434..71d845b851

[PATCH v4 1/4] tests/qapi-schema: Tidy up test output indentation

2019-10-11 Thread Markus Armbruster
Command and event details are indented three spaces, everything else four. Messed up in commit 156402e5042. Use four spaces consistently. Signed-off-by: Markus Armbruster --- tests/qapi-schema/doc-good.out | 4 +- tests/qapi-schema/event-case.out | 2 +-

[PATCH v4 0/4] qapi: Add detection for the 'savevm' fix for blockdev

2019-10-11 Thread Markus Armbruster
Add 'features' field in the schema for commands and add a feature flag to advertise that the fix for savevm [1] is present. [1] https://lists.gnu.org/archive/html/qemu-devel/2019-09/msg03487.html Based-on: <20191001191514.11208-1-arm...@redhat.com> v4: - PATCH 1: New - PATCH 2: Factor out

[PATCH v4 3/4] tests: qapi: Test 'features' of commands

2019-10-11 Thread Markus Armbruster
From: Peter Krempa Signed-off-by: Peter Krempa Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- tests/test-qmp-cmds.c | 24 tests/qapi-schema/qapi-schema-test.json | 22 ++

Re: [Qemu-devel] [PULL 5/5] multifd: Use number of channels as listen backlog

2019-10-11 Thread Wei Yang
On Wed, Sep 04, 2019 at 08:29:15AM +0200, Juan Quintela wrote: >Reviewed-by: Daniel P. Berrangé >Signed-off-by: Juan Quintela >--- > migration/socket.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/migration/socket.c b/migration/socket.c >index

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

2019-10-11 Thread Greg Kurz
On Fri, 11 Oct 2019 08:13:33 +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 +1100 > >

Re: [PATCH 0/7] libqos: add VIRTIO PCI 1.0 support

2019-10-11 Thread Stefan Hajnoczi
On Thu, Oct 10, 2019 at 02:12:00PM -0700, no-re...@patchew.org wrote: > 4/7 Checking commit e3477ab2dc8e (libqos: add MSI-X callbacks to > QVirtioPCIDevice) > ERROR: line over 90 characters > #31: FILE: tests/libqos/virtio-pci.c:283: > +static void qvirtio_pci_set_queue_vector(QVirtioPCIDevice

Re: [PATCH 3/4] block/mirror: support unaligned write in active mirror

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
04.10.2019 19:31, Max Reitz wrote: > On 12.09.19 17:13, Vladimir Sementsov-Ogievskiy wrote: >> Prior 9adc1cb49af8d do_sync_target_write had a bug: it reset aligned-up >> region in the dirty bitmap, which means that we may not copy some bytes >> and assume them copied, which actually leads to

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

2019-10-11 Thread Jan Glauber
On Fri, Oct 11, 2019 at 10:18:18AM +0200, Paolo Bonzini wrote: > On 11/10/19 08:05, Jan Glauber wrote: > > On Wed, Oct 09, 2019 at 11:15:04AM +0200, Paolo Bonzini wrote: > >>> ...but if I bump notify_me size to uint64_t the issue goes away. > >> > >> Ouch. :) Is this with or without my patch(es)?

[Qemu-devel] [PATCH] tests/rebuild-expected-aml.sh: Modern shell scripting (use $() instead of ``)

2019-10-11 Thread luoyifan
Various shell files contain a mix of obsolete `` and modern $(); It would be nice to convert to use $() everywhere. Signed-off-by: Yifan Luo --- tests/data/acpi/rebuild-expected-aml.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/data/acpi/rebuild-expected-aml.sh

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

2019-10-11 Thread Paolo Bonzini
On 11/10/19 08:05, Jan Glauber wrote: > On Wed, Oct 09, 2019 at 11:15:04AM +0200, Paolo Bonzini wrote: >>> ...but if I bump notify_me size to uint64_t the issue goes away. >> >> Ouch. :) Is this with or without my patch(es)? You didn't answer this question. >> Also, what if you just add a dummy

Re: [PATCH 00/23] iotests: Add and use $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 11/10/2019 10.03, Max Reitz wrote: > On 11.10.19 09:27, Thomas Huth wrote: >> On 10/10/2019 17.24, Max Reitz wrote: >>> Hi, >>> >>> Perhaps the main reason we cannot run important tests such as 041 in CI >>> is that when they care Unix sockets in $TEST_DIR, the path may become >>> too long to

Re: [RFC 3/3] acpi: cpuhp: add CPHP_GET_CPU_ID_CMD command

2019-10-11 Thread Laszlo Ersek
On 10/10/19 21:26, Eduardo Habkost wrote: > Topology info is already available on CPUID. Independently of everything else, thanks for pointing this out. The edk2 library called "LocalApicLib" has two relevant functions: > /** > Get Package ID/Core ID/Thread ID of a processor. > > The

Re: [PATCH v3 2/3] tests: qapi: Test 'features' of commands

2019-10-11 Thread Markus Armbruster
Peter Krempa writes: > On Thu, Oct 10, 2019 at 15:53:30 +0200, Markus Armbruster wrote: >> Peter Krempa writes: >> >> > Signed-off-by: Peter Krempa >> > --- >> > tests/qapi-schema/qapi-schema-test.json | 26 ++ >> > tests/qapi-schema/qapi-schema-test.out | 29

Re: [PATCH 00/23] iotests: Add and use $SOCK_DIR

2019-10-11 Thread Max Reitz
On 11.10.19 09:27, Thomas Huth wrote: > On 10/10/2019 17.24, Max Reitz wrote: >> Hi, >> >> Perhaps the main reason we cannot run important tests such as 041 in CI >> is that when they care Unix sockets in $TEST_DIR, the path may become >> too long to connect to them. >> >> To get by this problem,

Re: [RFC 0/3] acpi: cphp: add CPHP_GET_CPU_ID_CMD command to cpu hotplug MMIO interface

2019-10-11 Thread Laszlo Ersek
On 10/10/19 21:20, Eduardo Habkost wrote: > On Thu, Oct 10, 2019 at 05:57:54PM +0200, Igor Mammedov wrote: >> On Thu, 10 Oct 2019 09:59:42 -0400 >> "Michael S. Tsirkin" wrote: >> >>> On Thu, Oct 10, 2019 at 03:39:12PM +0200, Igor Mammedov wrote: On Thu, 10 Oct 2019 05:56:55 -0400

Re: [PATCH 04/23] iotests: Filter $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 11/10/2019 09.54, Max Reitz wrote: > On 10.10.19 20:42, Eric Blake wrote: >> On 10/10/19 10:24 AM, Max Reitz wrote: >>> Signed-off-by: Max Reitz >>> --- >>>   tests/qemu-iotests/common.filter | 8 ++-- >>>   1 file changed, 6 insertions(+), 2 deletions(-) >>> >>> diff --git

Re: [PATCH 04/23] iotests: Filter $SOCK_DIR

2019-10-11 Thread Max Reitz
On 10.10.19 21:50, Eric Blake wrote: > On 10/10/19 10:24 AM, Max Reitz wrote: >> Signed-off-by: Max Reitz >> --- >>   tests/qemu-iotests/common.filter | 8 ++-- >>   1 file changed, 6 insertions(+), 2 deletions(-) >> > >> @@ -218,7 +221,8 @@ _filter_nbd() >>   # Filter out the TCP port

Re: [PATCH 14/23] iotests/194: Create sockets in $SOCK_DIR

2019-10-11 Thread Max Reitz
On 10.10.19 21:43, Eric Blake wrote: > On 10/10/19 10:24 AM, Max Reitz wrote: >> Signed-off-by: Max Reitz >> --- >>   tests/qemu-iotests/194 | 4 ++-- >>   1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/tests/qemu-iotests/194 b/tests/qemu-iotests/194 >> index

Re: [PATCH 04/23] iotests: Filter $SOCK_DIR

2019-10-11 Thread Max Reitz
On 10.10.19 20:42, Eric Blake wrote: > On 10/10/19 10:24 AM, Max Reitz wrote: >> Signed-off-by: Max Reitz >> --- >>   tests/qemu-iotests/common.filter | 8 ++-- >>   1 file changed, 6 insertions(+), 2 deletions(-) >> >> diff --git a/tests/qemu-iotests/common.filter >>

Re: [PATCH 01/23] iotests: Introduce $SOCK_DIR

2019-10-11 Thread Max Reitz
On 10.10.19 20:18, Eric Blake wrote: > On 10/10/19 10:24 AM, Max Reitz wrote: >> Unix sockets generally have a maximum path length.  Depending on your >> $TEST_DIR, it may be exceeded and then all tests that create and use >> Unix sockets there may fail. >> >> Circumvent this by adding a new

Re: [PATCH 3/4] hw/i386: add facility to expose CPU topology over fw-cfg

2019-10-11 Thread Laszlo Ersek
On 10/11/19 08:50, Laszlo Ersek wrote: > On 10/10/19 20:08, Michael S. Tsirkin wrote: >> On Thu, Oct 10, 2019 at 06:23:00PM +0200, Laszlo Ersek wrote: >>> On 10/10/19 14:48, Igor Mammedov wrote: >>> it doesn't really matter if it's ACPI blob or fw_cfg, what firmware needs is a table of

Re: Problems with c8bb23cbdbe3 on ppc64le

2019-10-11 Thread Max Reitz
On 10.10.19 18:15, Anton Nefedov wrote: > On 10/10/2019 6:17 PM, Max Reitz wrote: >> Hi everyone, >> >> (CCs just based on tags in the commit in question) >> >> I have two bug reports which claim problems of qcow2 on XFS on ppc64le >> machines since qemu 4.1.0. One of those is about bad

Re: [PATCH v2 2/2] nbd: Allow description when creating NBD blockdev

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
11.10.2019 0:00, Eric Blake wrote: > Allow blockdevs to match the feature already present in qemu-nbd -D. > Enhance iotest 223 to cover it. > > Signed-off-by: Eric Blake Reviewed-by: Vladimir Sementsov-Ogievskiy > --- > qapi/block.json| 8 +--- > blockdev-nbd.c

Re: [PATCH v3 2/3] tests: qapi: Test 'features' of commands

2019-10-11 Thread Peter Krempa
On Thu, Oct 10, 2019 at 15:53:30 +0200, Markus Armbruster wrote: > Peter Krempa writes: > > > Signed-off-by: Peter Krempa > > --- > > tests/qapi-schema/qapi-schema-test.json | 26 ++ > > tests/qapi-schema/qapi-schema-test.out | 29 + > >

Re: [PATCH RESEND v6 1/2] x86/cpu: Add support for UMONITOR/UMWAIT/TPAUSE

2019-10-11 Thread Tao Xu
On 10/11/2019 3:41 PM, Xu, Tao3 wrote: [...] diff --git a/target/i386/kvm.c b/target/i386/kvm.c index 11b9c854b5..a465c893b5 100644 --- a/target/i386/kvm.c +++ b/target/i386/kvm.c @@ -401,6 +401,12 @@ uint32_t kvm_arch_get_supported_cpuid(KVMState *s, uint32_t function, if

Re: [PATCH 12/23] iotests/183: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/183 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Thomas Huth

[PATCH RESEND v6 1/2] x86/cpu: Add support for UMONITOR/UMWAIT/TPAUSE

2019-10-11 Thread Tao Xu
UMONITOR, UMWAIT and TPAUSE are a set of user wait instructions. This patch adds support for user wait instructions in KVM. Availability of the user wait instructions is indicated by the presence of the CPUID feature flag WAITPKG CPUID.0x07.0x0:ECX[5]. User wait instructions may be executed at any

[PATCH RESEND v6 0/2] x86: Enable user wait instructions

2019-10-11 Thread Tao Xu
UMONITOR, UMWAIT and TPAUSE are a set of user wait instructions. UMONITOR arms address monitoring hardware using an address. A store to an address within the specified address range triggers the monitoring hardware to wake up the processor waiting in umwait. UMWAIT instructs the processor to

Re: [RFC 0/3] acpi: cphp: add CPHP_GET_CPU_ID_CMD command to cpu hotplug MMIO interface

2019-10-11 Thread Laszlo Ersek
On 10/10/19 20:15, Michael S. Tsirkin wrote: > On Thu, Oct 10, 2019 at 05:57:54PM +0200, Igor Mammedov wrote: >>> Then we should consider switching acpi to use fw cfg. >>> Or build another interface that can scale. >> >> Could be an option, it would be a pain to write a driver in AML for fwcfg >>

Re: [PATCH 11/23] iotests/182: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/182 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Thomas Huth

[PATCH RESEND v6 2/2] target/i386: Add support for save/load IA32_UMWAIT_CONTROL MSR

2019-10-11 Thread Tao Xu
UMWAIT and TPAUSE instructions use 32bits IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch is to Add support for save/load IA32_UMWAIT_CONTROL MSR in guest. Co-developed-by: Jingqi Liu

Re: [PATCH 10/23] iotests/181: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/181 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Thomas Huth

Re: [PATCH 09/23] iotests/147: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/147 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Thomas Huth

Re: [PATCH 07/23] iotests/140: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/140 | 8 > tests/qemu-iotests/140.out | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 08/23] iotests/143: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/143 | 6 +++--- > tests/qemu-iotests/143.out | 2 +- > 2 files changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v2 1/2] nbd: Don't send oversize strings

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
11.10.2019 0:00, Eric Blake wrote: > Qemu as server currently won't accept export names larger than 256 > bytes, nor create dirty bitmap names longer than 1023 bytes, so most > uses of qemu as client or server have no reason to get anywhere near > the NBD spec maximum of a 4k limit per string. >

[PATCH] target/i386: Remove MPX support on Snowridge CPU model

2019-10-11 Thread Xiaoyao Li
MPX support is being phased out by Intel. Following other CPU models like Skylake, Icelake and Cascadelake, do not enable it by default. Signed-off-by: Xiaoyao Li --- I'm not sure is there anyone already use Snowridge CPU model and whether to add it in pc_compat_4_1, since Snowridge has not been

Re: [PATCH 06/23] iotests/083: Create socket in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Signed-off-by: Max Reitz > --- > tests/qemu-iotests/083 | 6 +++--- > tests/qemu-iotests/083.out | 34 +- > 2 files changed, 20 insertions(+), 20 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 00/23] iotests: Add and use $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > Hi, > > Perhaps the main reason we cannot run important tests such as 041 in CI > is that when they care Unix sockets in $TEST_DIR, the path may become > too long to connect to them. > > To get by this problem, this series lets the check script create a

Re: [PATCH v8 04/15] hw/i386/pc: replace use of strtol with qemu_strtol in x86_load_linux()

2019-10-11 Thread Sergio Lopez
Philippe Mathieu-Daudé writes: > Hi Sergio, > > On 10/10/19 4:31 PM, Sergio Lopez wrote: >> Follow checkpatch.pl recommendation and replace the use of strtol with >> qemu_strtol in x86_load_linux(). >> >> Signed-off-by: Sergio Lopez >> --- >> hw/i386/pc.c | 11 +-- >> 1 file

Re: [PATCH 02/23] iotests.py: Store socket files in $SOCK_DIR

2019-10-11 Thread Thomas Huth
On 10/10/2019 17.24, Max Reitz wrote: > iotests.py itself does not store socket files, but it machine.py and > qtest.py do. iotests.py needs to pass the respective path to them, and > they need to adhere to it. > > Signed-off-by: Max Reitz > --- > python/qemu/machine.py| 15

[PATCH 0/1] pci: pass along the return value of dma_memory_rw

2019-10-11 Thread Klaus Jensen
Hi, While working on fixing the emulated nvme device to pass more tests in the blktests suite, I discovered that the pci_dma_rw function ignores the return value of dma_memory_rw. The nvme device needs to handle DMA errors gracefully in order to pass the block/011 test ("disable PCI device while

[PATCH 1/1] pci: pass along the return value of dma_memory_rw

2019-10-11 Thread Klaus Jensen
Some might actually care about the return value of dma_memory_rw. So let us pass it along instead of ignoring it. Signed-off-by: Klaus Jensen --- include/hw/pci/pci.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h index

Re: Is network backend vde worth keeping? (was: Is network backend netmap worth keeping?)

2019-10-11 Thread Thomas Huth
On 09/10/2019 11.13, Thomas Huth wrote: > On 07/10/2019 20.21, Markus Armbruster wrote: >> Markus Armbruster writes: >> >>> Please excuse the attention-grabbing subject. >> >> Again. >> >> [...] >>> So, to make use of QEMU's netmap backend (CONFIG_NETMAP), you have to >>> build and install netmap

Re: [RFC 0/3] acpi: cphp: add CPHP_GET_CPU_ID_CMD command to cpu hotplug MMIO interface

2019-10-11 Thread Laszlo Ersek
On 10/10/19 17:57, Igor Mammedov wrote: > On Thu, 10 Oct 2019 09:59:42 -0400 > "Michael S. Tsirkin" wrote: > >> On Thu, Oct 10, 2019 at 03:39:12PM +0200, Igor Mammedov wrote: >>> On Thu, 10 Oct 2019 05:56:55 -0400 >>> "Michael S. Tsirkin" wrote: >>> On Wed, Oct 09, 2019 at 09:22:49AM

Re: [PATCH 3/4] hw/i386: add facility to expose CPU topology over fw-cfg

2019-10-11 Thread Laszlo Ersek
On 10/10/19 20:08, Michael S. Tsirkin wrote: > On Thu, Oct 10, 2019 at 06:23:00PM +0200, Laszlo Ersek wrote: >> On 10/10/19 14:48, Igor Mammedov wrote: >> >>> it doesn't really matter if it's ACPI blob or fw_cfg, >>> what firmware needs is a table of possible CPUs with APIC IDs. >> >> To repeat my

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

2019-10-11 Thread Greg Kurz
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 +1100 > > > David Gibson wrote: > > > > > > > On Wed, Oct 09, 2019 at

RE: [for-4.2 PATCH 3/6] replay: update docs for record/replay with block devices

2019-10-11 Thread Pavel Dovgalyuk
> From: Kevin Wolf [mailto:kw...@redhat.com] > Am 25.09.2019 um 11:02 hat Pavel Dovgalyuk geschrieben: > > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > Am 20.09.2019 um 09:25 hat Pavel Dovgalyuk geschrieben: > > > > > From: Kevin Wolf [mailto:kw...@redhat.com] > > > > > Am 19.09.2019 um

[Bug 1847440] Re: ppc64le: KVM guest fails to boot with an error `virtio_scsi: probe of virtio1 failed with error -22` on master

2019-10-11 Thread David Gibson
Oh... are you using the SLOF (guest firmware) image included in the qemu tree, or is it coming from a separate package? If it's from a separate package, that could be the problem - it needs to be updated before that qemu patch is safe. -- You received this bug notification because you are a

<    1   2   3   4   5   6   >