Re: [PATCH] trace: avoid "is" with a literal Python 3.8 warnings

2019-10-11 Thread Markus Armbruster
Stefan Hajnoczi writes: > The following statement produces a SyntaxWarning with Python 3.8: > > if len(format) is 0: > scripts/tracetool/__init__.py:459: SyntaxWarning: "is" with a literal. Did > you mean "=="? > > Use the conventional len(x) == 0 syntax instead. > > Reported-by: Daniel P.

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

2019-10-11 Thread Jan Glauber
On Wed, Oct 09, 2019 at 11:15:04AM +0200, Paolo Bonzini wrote: > On 09/10/19 10:02, Jan Glauber wrote: > > I'm still not sure what the actual issue is here, but could it be some bad > > interaction between the notify_me and the list_lock? The are both 4 byte > > and side-by-side: > > > > address

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

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: [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: [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: 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

[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: [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

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

2019-10-11 Thread Markus Armbruster
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 considered all monitor owned block device nodes >> >> >> >> Recommend

[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

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 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

[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

[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

[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

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

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 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 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 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

[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 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)?

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

[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 ++

[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

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: [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 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. >

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 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 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: [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 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: [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 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 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 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: [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 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 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: [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 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: [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

[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 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

[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 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 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 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 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 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 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 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 ---

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 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,

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 ---

[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 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 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: [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

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

[PATCH 2/5] iotests: Test 041 does not work on macOS

2019-10-11 Thread Thomas Huth
041 works fine on Linux, FreeBSD and OpenBSD, so let's mark it as only supported on these systems. Signed-off-by: Thomas Huth --- tests/qemu-iotests/041 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/041 b/tests/qemu-iotests/041 index

[PATCH 5/5] iotests: Enable more tests in the 'auto' group to improve test coverage

2019-10-11 Thread Thomas Huth
According to Kevin, tests 030, 040 and 041 are among the most valuable tests that we have, so we should always run them if possible, even if they take a little bit longer. According to Max, it would be good to have a test for iothreads and migration. 127 and 256 seem to be good candidates for

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

2019-10-11 Thread Philippe Mathieu-Daudé
On 10/11/19 9:26 AM, Sergio Lopez wrote: 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

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

2019-10-11 Thread Philippe Mathieu-Daudé
Hi Michael, On 9/2/19 4:01 PM, Michael Rolnik wrote: This series of patches adds 8bit AVR cores to QEMU. All instruction, except BREAK/DES/SPM/SPMX, are implemented. Not fully tested yet. However I was able to execute simple code with functions. e.g fibonacci calculation. This series of

[PATCH v3 15/16] iotests: Add peek_file* functions

2019-10-11 Thread Max Reitz
Signed-off-by: Max Reitz Reviewed-by: Eric Blake --- tests/qemu-iotests/common.rc | 20 1 file changed, 20 insertions(+) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 12b4751848..fa7bae2422 100644 --- a/tests/qemu-iotests/common.rc +++

[Bug 1847793] [NEW] qemu 4.1.0 - Corrupt guest filesystem after new vm install

2019-10-11 Thread Claus Paetow
Public bug reported: When I install a new vm with qemu 4.1.0 all the guest filesystems are corrupt. The first boot from the install dvd iso is ok and the installer work fine. But the guest system hangs after the installer finishes and I reboot the guest. I can see the grub boot menue but the

[PATCH v6 19/20] target/arm: Rebuild hflags for M-profile.

2019-10-11 Thread Richard Henderson
Continue setting, but not relying upon, env->hflags. Signed-off-by: Richard Henderson --- target/arm/m_helper.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/target/arm/m_helper.c b/target/arm/m_helper.c index 27cd2f3f96..f2512e448e 100644 --- a/target/arm/m_helper.c +++

[PATCH v6 09/20] target/arm: Hoist XSCALE_CPAR, VECLEN, VECSTRIDE in cpu_get_tb_cpu_state

2019-10-11 Thread Richard Henderson
We do not need to compute any of these values for M-profile. Further, XSCALE_CPAR overlaps VECSTRIDE so obviously the two sets must be mutually exclusive. Signed-off-by: Richard Henderson --- target/arm/helper.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff

[RFC v5 006/126] qdev-monitor: well form error hint helpers

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Make qbus_list_bus and qbus_list_dev hint append helpers well formed: rename errp to errp_in, as it is IN-parameter here (which is unusual for errp), rename functions to be error_append_*_hint. Signed-off-by: Vladimir Sementsov-Ogievskiy --- qdev-monitor.c | 24 1 file

[PATCH v6 13/20] target/arm: Split out arm_mmu_idx_el

2019-10-11 Thread Richard Henderson
Avoid calling arm_current_el() twice. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/arm/internals.h | 9 + target/arm/helper.c| 12 +++- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/target/arm/internals.h

[PATCH v6 16/20] target/arm: Rebuild hflags at EL changes

2019-10-11 Thread Richard Henderson
Begin setting, but not relying upon, env->hflags. Signed-off-by: Richard Henderson --- linux-user/syscall.c| 1 + target/arm/cpu.c| 1 + target/arm/helper-a64.c | 3 +++ target/arm/helper.c | 2 ++ target/arm/machine.c| 1 + target/arm/op_helper.c | 1 + 6 files changed, 9

[RFC v5 005/126] vnc: drop Error pointer indirection in vnc_client_io_error

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
We don't need Error **, as all callers pass local Error object, which isn't used after the call, or NULL. Use Error * instead. Signed-off-by: Vladimir Sementsov-Ogievskiy --- ui/vnc.h | 2 +- ui/vnc.c | 20 +++- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git

[RFC v5 012/126] hw/i386/amd_iommu: rename Error ** parameter to more common errp

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Signed-off-by: Vladimir Sementsov-Ogievskiy --- hw/i386/amd_iommu.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hw/i386/amd_iommu.c b/hw/i386/amd_iommu.c index d3726361dd..c496a0679b 100644 --- a/hw/i386/amd_iommu.c +++ b/hw/i386/amd_iommu.c @@ -1533,7

[RFC v5 001/126] hw/core/loader-fit: fix freeing errp in fit_load_fdt

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
fit_load_fdt forget to check that errp is not NULL and to zero it after freeing. Fix it. Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Eric Blake --- hw/core/loader-fit.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hw/core/loader-fit.c

[RFC v5 049/126] USB (serial adapter): introduce ERRP_AUTO_PROPAGATE

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
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() or error_prepend() call). Fix such cases. If we want to

  1   2   3   4   5   6   >