Re: [PATCH v2 5/6] tests/lcitool: Remove libxml2

2022-01-20 Thread Daniel P . Berrangé
On Thu, Jan 20, 2022 at 12:05:44PM +0100, Philippe Mathieu-Daudé wrote: > The previous commit removed all uses of libxml2. > > Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/alpine.docker| 1 - > tests/docker/dockerfiles/centos8.docker | 1 - >

Re: [PATCH v2 6/6] tests: Manually remove libxml2 on MSYS2 targets

2022-01-20 Thread Daniel P . Berrangé
yml | 2 -- > 2 files changed, 3 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-photo.org-o-h

Re: [PATCH v2 3/6] tests/lcitool: Install libibumad to cover RDMA on Debian based distros

2022-01-20 Thread Daniel P . Berrangé
; Signed-off-by: Philippe Mathieu-Daudé > --- > tests/docker/dockerfiles/ubuntu1804.docker | 1 + > tests/docker/dockerfiles/ubuntu2004.docker | 1 + > tests/lcitool/projects/qemu.yml| 1 + > 3 files changed, 3 insertions(+) Reviewed-by: Daniel P. Berrangé Regards

Re: [PATCH v2 5/5] python/aqmp: add socket bind step to legacy.py

2022-01-20 Thread Daniel P . Berrangé
On Wed, Jan 19, 2022 at 02:39:16PM -0500, John Snow wrote: > The old QMP library would actually bind to the server address during > __init__(). The new library delays this to the accept() call, because > binding occurs inside of the call to start_[unix_]server(), which is an > async method -- so

Re: [PATCH v2 6/6] gitlab-ci: Support macOS 12 via cirrus-run

2022-01-10 Thread Daniel P . Berrangé
On Sun, Jan 09, 2022 at 06:06:12PM +0100, Philippe Mathieu-Daudé wrote: > Add support for macOS 12 build on Cirrus-CI, similarly to commit > 0e103a65ba1 ("gitlab: support for ... macOS 11 via cirrus-run"). > > Disable deprecation warnings on Objective C to avoid: > > [2789/6622] Compiling

Re: [PATCH v3 02/28] glib-compat: Introduce g_memdup2() wrapper

2021-12-17 Thread Daniel P . Berrangé
On Fri, Dec 17, 2021 at 02:53:05PM +, Alex Bennée wrote: > > Daniel P. Berrangé writes: > > > On Thu, Dec 16, 2021 at 02:11:37PM +, Alex Bennée wrote: > >> > >> Philippe Mathieu-Daudé writes: > >> > >> > When experimenting raisi

Re: [PATCH v3 02/28] glib-compat: Introduce g_memdup2() wrapper

2021-12-17 Thread Daniel P . Berrangé
On Thu, Dec 16, 2021 at 02:11:37PM +, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > > > When experimenting raising GLIB_VERSION_MIN_REQUIRED to 2.68 > > (Fedora 34 provides GLib 2.68.1) we get: > > > > hw/virtio/virtio-crypto.c:245:24: error: 'g_memdup' is deprecated: Use > >

Re: [PATCH v3 02/28] glib-compat: Introduce g_memdup2() wrapper

2021-12-17 Thread Daniel P . Berrangé
On Fri, Dec 17, 2021 at 11:10:31AM +, Alex Bennée wrote: > > Philippe Mathieu-Daudé writes: > > > On 12/16/21 15:11, Alex Bennée wrote: > >> Philippe Mathieu-Daudé writes: > >> > >>> When experimenting raising GLIB_VERSION_MIN_REQUIRED to 2.68 > >>> (Fedora 34 provides GLib 2.68.1) we

Re: [PATCH v2 00/25] Python: delete synchronous qemu.qmp package

2021-12-16 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 02:39:14PM -0500, John Snow wrote: > GitLab: https://gitlab.com/jsnow/qemu/-/commits/python-qmp-legacy-switch > CI: https://gitlab.com/jsnow/qemu/-/pipelines/430491195 > > Hi, this series is part of an effort to publish the qemu.qmp package on > PyPI. It is the first of

Re: [PATCH v2 03/25] python/aqmp: copy type definitions from qmp

2021-12-16 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 02:39:17PM -0500, John Snow wrote: > Copy the remaining type definitions from QMP into the qemu.aqmp.legacy > module. Now, most users don't need to import anything else but > qemu.aqmp.legacy. I'm probably missing the historical discussion but it feels very wierd to be

Re: [PATCH v2 06/25] python/qemu-ga-client: update instructions to newer CLI syntax

2021-12-16 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 02:39:20PM -0500, John Snow wrote: > Signed-off-by: John Snow > --- > python/qemu/qmp/qemu_ga_client.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com

Re: [PATCH v2 14/25] scripts/cpu-x86-uarch-abi: switch to AQMP

2021-12-16 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 02:39:28PM -0500, John Snow wrote: > Signed-off-by: John Snow > --- > scripts/cpu-x86-uarch-abi.py | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com

Re: [PATCH v2 13/25] scripts/cpu-x86-uarch-abi: fix CLI parsing

2021-12-16 Thread Daniel P . Berrangé
On Wed, Dec 15, 2021 at 02:39:27PM -0500, John Snow wrote: > Signed-off-by: John Snow > --- > scripts/cpu-x86-uarch-abi.py | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://ww

Re: [PATCH] QIO: Add force_quit to the QIOChannel to ensure QIO exits cleanly in some corner case

2021-12-02 Thread Daniel P . Berrangé
On Thu, Dec 02, 2021 at 01:14:47PM +0800, Rao, Lei wrote: > Sorry, resending with correct indentation and quoting. > > On 12/1/2021 10:27 PM, Vladimir Sementsov-Ogievskiy wrote: > > 01.12.2021 12:48, Rao, Lei wrote: > > > > > > > > > -----Original M

Re: [PATCH] QIO: Add force_quit to the QIOChannel to ensure QIO exits cleanly in some corner case

2021-12-01 Thread Daniel P . Berrangé
On Wed, Dec 01, 2021 at 09:48:31AM +, Rao, Lei wrote: > > > -Original Message- > From: Daniel P. Berrangé > Sent: Wednesday, December 1, 2021 5:11 PM > To: Rao, Lei > Cc: Zhang, Chen ; ebl...@redhat.com; > vsement...@virtuozzo.com; kw...@redhat.com; hr

Re: [PATCH] QIO: Add force_quit to the QIOChannel to ensure QIO exits cleanly in some corner case

2021-12-01 Thread Daniel P . Berrangé
On Wed, Dec 01, 2021 at 03:54:27PM +0800, Rao, Lei wrote: > We found that the QIO channel coroutine could not be awakened in some > corner cases during our stress test for COLO. > The patch fixes as follow: > #0 0x7fad72e24bf6 in __ppoll (fds=0x5563d75861f0, nfds=1, >

[PATCH 3/3] block: print the server key type and fingerprint on failure

2021-11-18 Thread Daniel P . Berrangé
cipher QEMU will use and whether it will be the same as openssh. Address this by printing the server key type and its corresponding fingerprint in the format QEMU accepts. Signed-off-by: Daniel P. Berrangé --- block/ssh.c | 37 ++--- 1 file changed, 30 insertions

[PATCH 0/3] block: misc fixes & improvements for SSH block driver key fingerprints

2021-11-18 Thread Daniel P . Berrangé
on error. Daniel P. Berrangé (3): block: better document SSH host key fingerprint checking block: support sha256 fingerprint with pre-blockdev options block: print the server key type and fingerprint on failure block/ssh.c| 42 +- docs/system

[PATCH 2/3] block: support sha256 fingerprint with pre-blockdev options

2021-11-18 Thread Daniel P . Berrangé
When support for sha256 fingerprint checking was aded in commit bf783261f0aee6e81af3916bff7606d71ccdc153 Author: Daniel P. Berrangé Date: Tue Jun 22 12:51:56 2021 +0100 block/ssh: add support for sha256 host key fingerprints it was only made to work with -blockdev. Getting

[PATCH 1/3] block: better document SSH host key fingerprint checking

2021-11-18 Thread Daniel P . Berrangé
The docs still illustrate host key fingerprint checking using the old md5 hashes which are considered insecure and obsolete. Change it to illustrate using a sha256 hash. Also show how to extract the hash value from the known_hosts file. Signed-off-by: Daniel P. Berrangé --- docs/system/qemu

Re: [PATCH v2 1/2] iotests: Use aes-128-cbc

2021-11-17 Thread Daniel P . Berrangé
; > Signed-off-by: Hanna Reitz > --- > tests/qemu-iotests/206 | 4 ++-- > tests/qemu-iotests/206.out | 6 +++--- > tests/qemu-iotests/210 | 4 ++-- > tests/qemu-iotests/210.out | 6 +++--- > 4 files changed, 10 insertions(+), 10 deletions(-) Reviewed-by: Daniel P. Berrangé

Re: [PATCH v2 2/2] iotests/149: Skip on unsupported ciphers

2021-11-17 Thread Daniel P . Berrangé
be used to munge the output. - Stop comparing expected output entirely and just then this into a normal python unit test. - Insert your idea here ? > > Signed-off-by: Hanna Reitz > --- > tests/qemu-iotests/149 | 23 ++- > 1 file changed, 18 insertions

Re: Failing QEMU iotests

2021-11-17 Thread Daniel P . Berrangé
On Wed, Nov 17, 2021 at 01:50:12PM +0100, Thomas Huth wrote: > On 17/11/2021 11.59, Hanna Reitz wrote: > > On 17.11.21 11:07, Thomas Huth wrote: > > > > > >  Hi! > > > > > > I think it has been working fine for me a couple of weeks ago, > > > but when I now run: > > > > > >  make check

Re: [PATCH v4 00/25] block layer: split block APIs in global state and I/O

2021-11-15 Thread Daniel P . Berrangé
On Mon, Nov 15, 2021 at 05:03:28PM +0100, Hanna Reitz wrote: > On 25.10.21 12:17, Emanuele Giuseppe Esposito wrote: > > Currently, block layer APIs like block-backend.h contain a mix of > > functions that are either running in the main loop and under the > > BQL, or are thread-safe functions and

Re: [PATCH 05/10] vhost-backend: avoid overflow on memslots_limit

2021-11-12 Thread Daniel P . Berrangé
On Fri, Nov 12, 2021 at 10:46:46AM +0300, Roman Kagan wrote: > On Thu, Nov 11, 2021 at 06:59:43PM +0100, Philippe Mathieu-Daudé wrote: > > On 11/11/21 16:33, Roman Kagan wrote: > > > Fix the (hypothetical) potential problem when the value parsed out of > > > the vhost module parameter in sysfs

Re: [PATCH v8 0/8] hmp, qmp: Add commands to introspect virtio devices

2021-10-27 Thread Daniel P . Berrangé
On Wed, Oct 27, 2021 at 07:41:41AM -0400, Jonah Palmer wrote: > This series introduces new QMP/HMP commands to dump the status of a > virtio device at different levels. > > [Jonah: Rebasing previous patchset from Oct. 5 (v7). Original patches > are from Laurent Vivier from May 2020. > > Rebase

Re: [PATCH 1/9] qapi: New special feature flag "unstable"

2021-10-26 Thread Daniel P . Berrangé
On Tue, Oct 26, 2021 at 05:15:10PM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Tue, Oct 26, 2021 at 11:37:19AM +0200, Markus Armbruster wrote: > >> Kevin Wolf writes: > >> > >> > Am 25.10.2021 um 07:25 hat Markus Armbruster

Re: [PATCH 1/9] qapi: New special feature flag "unstable"

2021-10-26 Thread Daniel P . Berrangé
On Tue, Oct 26, 2021 at 11:37:19AM +0200, Markus Armbruster wrote: > Kevin Wolf writes: > > > Am 25.10.2021 um 07:25 hat Markus Armbruster geschrieben: > >> By convention, names starting with "x-" are experimental. The parts > >> of external interfaces so named may be withdrawn or changed > >>

Re: [PATCH 1/9] qapi: New special feature flag "unstable"

2021-10-26 Thread Daniel P . Berrangé
On Tue, Oct 26, 2021 at 10:22:15AM +0100, Dr. David Alan Gilbert wrote: > * Kevin Wolf (kw...@redhat.com) wrote: > > Am 25.10.2021 um 07:25 hat Markus Armbruster geschrieben: > > > By convention, names starting with "x-" are experimental. The parts > > > of external interfaces so named may be

Re: [RFC 1/2] tls: add macros for coroutine-safe TLS variables

2021-10-25 Thread Daniel P . Berrangé
On Mon, Oct 25, 2021 at 03:07:15PM +0100, Stefan Hajnoczi wrote: > Compiler optimizations can cache TLS values across coroutine yield > points, resulting in stale values from the previous thread when a > coroutine is re-entered by a new thread. > > Serge Guelton developed an

Re: [RFC PATCH v2 04/25] include/block/block: split header into I/O and global state API

2021-10-07 Thread Daniel P . Berrangé
On Tue, Oct 05, 2021 at 10:31:54AM -0400, Emanuele Giuseppe Esposito wrote: > Similarly to the previous patch, split block.h > in block-io.h and block-global-state.h > > block-common.h contains the structures shared between > the two headers, and the functions that can't be categorized as > I/O

Re: [PATCH v7 3/8] qmp: add QMP command x-debug-query-virtio

2021-10-07 Thread Daniel P . Berrangé
On Tue, Oct 05, 2021 at 04:24:21PM -0500, Eric Blake wrote: > On Tue, Oct 05, 2021 at 12:45:48PM -0400, Jonah Palmer wrote: > > From: Laurent Vivier > > > > This new command lists all the instances of VirtIODevice with > > their QOM paths and virtio type/name. > > > > Signed-off-by: Jonah

Re: [RFC PATCH 00/10] security: Introduce qemu_security_policy_taint() API

2021-09-30 Thread Daniel P . Berrangé
On Tue, Sep 14, 2021 at 01:30:27PM +, P J P wrote: > Hello Philippe, all > > >On Thursday, 9 September, 2021, 03:58:40 pm IST, Daniel P. Berrangé > > wrote: > >On Thu, Sep 09, 2021 at 01:20:14AM +0200, Philippe Mathieu-Daudé wrote: > >> This series is ex

Re: [PATCH v2] nbd/server: Add --selinux-label option

2021-09-27 Thread Daniel P . Berrangé
On Wed, Aug 25, 2021 at 02:35:04PM -0500, Eric Blake wrote: > On Fri, Jul 23, 2021 at 05:38:06PM +0100, Daniel P. Berrangé wrote: > > On Fri, Jul 23, 2021 at 06:18:55PM +0200, Kevin Wolf wrote: > > > Am 23.07.2021 um 12:33 hat Richard W.M. Jones geschrieben: > > > &

Re: [PATCH 11/11] Deprecate stable non-JSON -device and -object

2021-09-27 Thread Daniel P . Berrangé
On Mon, Sep 27, 2021 at 12:17:03PM +0200, Kevin Wolf wrote: > Am 27.09.2021 um 10:21 hat Daniel P. Berrangé geschrieben: > > On Mon, Sep 27, 2021 at 10:15:43AM +0200, Paolo Bonzini wrote: > > > On 24/09/21 11:04, Kevin Wolf wrote: > > > > We want to switch both from

Re: [PATCH 11/11] Deprecate stable non-JSON -device and -object

2021-09-27 Thread Daniel P . Berrangé
On Mon, Sep 27, 2021 at 10:15:43AM +0200, Paolo Bonzini wrote: > On 24/09/21 11:04, Kevin Wolf wrote: > > We want to switch both from QemuOpts to the keyval parser in the future, > > which results in some incompatibilities, mainly around list handling. > > Mark the non-JSON version of both as

Re: [PATCH 2/6] iotests: add warning for rogue 'qemu' packages

2021-09-23 Thread Daniel P . Berrangé
On Wed, Sep 22, 2021 at 08:16:21PM -0400, John Snow wrote: > Add a warning for when 'iotests' runs against a qemu namespace that > isn't the one in the source tree. This might occur if you have > (accidentally) installed the Python namespace package to your local > packages. IIUC, it is/was a

Re: [PATCH] block/file-posix: Limit max_iov to IOV_MAX

2021-09-20 Thread Daniel P . Berrangé
CC'ing qemu-block list On Sat, Sep 18, 2021 at 12:06:58PM +0800, lishan wrote: > AIO read/write. The size of iocb->aio_nbytes in the kernel cannot exceed > UIO_MAXIOV = 1024. > max_segments read from the block device layer may be greater than UIO_MAXIOV, > this causes the ioq_submit interface to

Re: [RFC PATCH 06/10] qdev: Use qemu_security_policy_taint() API

2021-09-09 Thread Daniel P . Berrangé
On Thu, Sep 09, 2021 at 01:20:20AM +0200, Philippe Mathieu-Daudé wrote: > Add DeviceClass::taints_security_policy field to allow an > unsafe device to eventually taint the global security policy > in DeviceRealize(). > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/hw/qdev-core.h | 6

Re: [RFC PATCH 03/10] block: Use qemu_security_policy_taint() API

2021-09-09 Thread Daniel P . Berrangé
On Thu, Sep 09, 2021 at 11:40:07AM +0100, Daniel P. Berrangé wrote: > On Thu, Sep 09, 2021 at 01:20:17AM +0200, Philippe Mathieu-Daudé wrote: > > Add the BlockDriver::bdrv_taints_security_policy() handler. > > Drivers implementing it might taint the global QEMU security > > po

Re: [RFC PATCH 02/10] accel: Use qemu_security_policy_taint(), mark KVM and Xen as safe

2021-09-09 Thread Daniel P . Berrangé
On Thu, Sep 09, 2021 at 01:20:16AM +0200, Philippe Mathieu-Daudé wrote: > Add the AccelClass::secure_policy_supported field to classify > safe (within security boundary) vs unsafe accelerators. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/qemu/accel.h | 5 + >

Re: [RFC PATCH 03/10] block: Use qemu_security_policy_taint() API

2021-09-09 Thread Daniel P . Berrangé
On Thu, Sep 09, 2021 at 01:20:17AM +0200, Philippe Mathieu-Daudé wrote: > Add the BlockDriver::bdrv_taints_security_policy() handler. > Drivers implementing it might taint the global QEMU security > policy. > > Signed-off-by: Philippe Mathieu-Daudé > --- > include/block/block_int.h | 6 +- >

Re: [RFC PATCH 00/10] security: Introduce qemu_security_policy_taint() API

2021-09-09 Thread Daniel P . Berrangé
On Thu, Sep 09, 2021 at 01:20:14AM +0200, Philippe Mathieu-Daudé wrote: > Hi, > > This series is experimental! The goal is to better limit the > boundary of what code is considerated security critical, and > what is less critical (but still important!). > > This approach was quickly discussed

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-08 Thread Daniel P . Berrangé
On Wed, Sep 08, 2021 at 05:09:33PM -0400, Peter Xu wrote: > On Wed, Sep 08, 2021 at 05:25:50PM -0300, Leonardo Bras Soares Passos wrote: > > On Tue, Sep 7, 2021 at 8:06 AM Dr. David Alan Gilbert > > wrote: > > > > Possibly, yes. This really need David G's input since he understands > > > > the

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-08 Thread Daniel P . Berrangé
On Tue, Sep 07, 2021 at 12:13:28PM +0100, Dr. David Alan Gilbert wrote: > * Daniel P. Berrangé (berra...@redhat.com) wrote: > > On Wed, Sep 01, 2021 at 11:35:33AM -0400, Peter Xu wrote: > > > On Wed, Sep 01, 2021 at 09:53:07AM +0100, Daniel P. Berrangé wrote: > > > >

Re: [PATCH 02/28] glib-compat: Introduce g_memdup2() wrapper

2021-09-03 Thread Daniel P . Berrangé
On Fri, Sep 03, 2021 at 02:51:21PM +0300, Vladimir Sementsov-Ogievskiy wrote: > That was most probably already discussed, so sorry my question: > > Why we can't just do > > #if ! GLIB_CHECK_VERSION(2, 68, 0) > static inline gpointer g_memdup2(gconstpointer mem, gsize byte_size) > { >

Re: [PATCH 02/28] glib-compat: Introduce g_memdup2() wrapper

2021-09-03 Thread Daniel P . Berrangé
On Fri, Sep 03, 2021 at 01:06:36PM +0200, Philippe Mathieu-Daudé wrote: > When experimenting raising GLIB_VERSION_MIN_REQUIRED to 2.68 > (Fedora 34 provides GLib 2.68.1) we get: > > hw/virtio/virtio-crypto.c:245:24: error: 'g_memdup' is deprecated: Use > 'g_memdup2' instead

Re: [PATCH 03/28] qapi: Replace g_memdup() by g_memdup2_qemu()

2021-09-03 Thread Daniel P . Berrangé
On Fri, Sep 03, 2021 at 01:06:37PM +0200, Philippe Mathieu-Daudé wrote: > Per > https://discourse.gnome.org/t/port-your-module-from-g-memdup-to-g-memdup2-now/5538 > > The old API took the size of the memory to duplicate as a guint, > whereas most memory functions take memory sizes as a

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 07:19:58AM -0300, Leonardo Bras Soares Passos wrote: > On Thu, Sep 2, 2021 at 6:50 AM Daniel P. Berrangé wrote: > > > > On Thu, Sep 02, 2021 at 06:34:01AM -0300, Leonardo Bras Soares Passos wrote: > > > On Thu, Sep 2, 2021 at 5:47 AM Daniel P

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 06:49:06AM -0300, Leonardo Bras Soares Passos wrote: > On Thu, Sep 2, 2021 at 6:20 AM Daniel P. Berrangé wrote: > > > > On Thu, Sep 02, 2021 at 05:52:15AM -0300, Leonardo Bras Soares Passos wrote: > > > On Thu, Sep 2, 2021 at 5:21 AM Daniel P

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 06:34:01AM -0300, Leonardo Bras Soares Passos wrote: > On Thu, Sep 2, 2021 at 5:47 AM Daniel P. Berrangé wrote: > > > > On Thu, Sep 02, 2021 at 03:38:11AM -0300, Leonardo Bras Soares Passos wrote: > > > > > > I would suggest che

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 05:52:15AM -0300, Leonardo Bras Soares Passos wrote: > On Thu, Sep 2, 2021 at 5:21 AM Daniel P. Berrangé wrote: > > > > On Thu, Sep 02, 2021 at 04:22:55AM -0300, Leonardo Bras Soares Passos wrote: > > > Hello Daniel, thanks for the feedback ! &g

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 03:38:11AM -0300, Leonardo Bras Soares Passos wrote: > Hello Daniel, thank you for the feedback! > > Comments inline. > > On Tue, Aug 31, 2021 at 9:57 AM Daniel P. Berrangé > wrote: > > > > On Tue, Aug 31, 2021 at 08:02:3

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-02 Thread Daniel P . Berrangé
On Thu, Sep 02, 2021 at 04:22:55AM -0300, Leonardo Bras Soares Passos wrote: > Hello Daniel, thanks for the feedback ! > > On Tue, Aug 31, 2021 at 10:17 AM Daniel P. Berrangé > wrote: > > > > On Tue, Aug 31, 2021 at 08:02:39AM -0300, Leonardo Bras wrote: > > > C

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-01 Thread Daniel P . Berrangé
On Wed, Sep 01, 2021 at 11:52:13AM -0400, Peter Xu wrote: > On Wed, Sep 01, 2021 at 09:50:56AM +0100, Daniel P. Berrangé wrote: > > On Tue, Aug 31, 2021 at 04:27:04PM -0400, Peter Xu wrote: > > > On Tue, Aug 31, 2021 at 01:57:33PM +0100, Daniel P. Berrangé wrote: > > > &

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-01 Thread Daniel P . Berrangé
On Wed, Sep 01, 2021 at 11:35:33AM -0400, Peter Xu wrote: > On Wed, Sep 01, 2021 at 09:53:07AM +0100, Daniel P. Berrangé wrote: > > On Tue, Aug 31, 2021 at 04:29:09PM -0400, Peter Xu wrote: > > > On Tue, Aug 31, 2021 at 02:16:42PM +0100, Daniel P. Berrangé wrote: > > > &

Re: [PATCH v8 28/34] iotests: move 222 to tests/image-fleecing

2021-09-01 Thread Daniel P . Berrangé
On Wed, Sep 01, 2021 at 02:37:52PM +0200, Hanna Reitz wrote: > On 24.08.21 10:38, Vladimir Sementsov-Ogievskiy wrote: > > Give a good name to test file. > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy > > Reviewed-by: Max Reitz > > --- > > tests/qemu-iotests/{222 => tests/image-fleecing}

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-09-01 Thread Daniel P . Berrangé
On Tue, Aug 31, 2021 at 04:29:09PM -0400, Peter Xu wrote: > On Tue, Aug 31, 2021 at 02:16:42PM +0100, Daniel P. Berrangé wrote: > > On Tue, Aug 31, 2021 at 08:02:39AM -0300, Leonardo Bras wrote: > > > Call qio_channel_set_zerocopy(true) in the start of every multifd thread. &

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-09-01 Thread Daniel P . Berrangé
On Tue, Aug 31, 2021 at 04:27:04PM -0400, Peter Xu wrote: > On Tue, Aug 31, 2021 at 01:57:33PM +0100, Daniel P. Berrangé wrote: > > On Tue, Aug 31, 2021 at 08:02:38AM -0300, Leonardo Bras wrote: > > > MSG_ZEROCOPY is a feature that enables copy avoidance in TCP/UDP socket > &g

Re: [PATCH v1 3/3] migration: multifd: Enable zerocopy

2021-08-31 Thread Daniel P . Berrangé
On Tue, Aug 31, 2021 at 08:02:39AM -0300, Leonardo Bras wrote: > Call qio_channel_set_zerocopy(true) in the start of every multifd thread. > > Change the send_write() interface of multifd, allowing it to pass down > flags for qio_channel_write*(). > > Pass down MSG_ZEROCOPY flag for sending

Re: [PATCH v1 2/3] io: Add zerocopy and errqueue

2021-08-31 Thread Daniel P . Berrangé
On Tue, Aug 31, 2021 at 08:02:38AM -0300, Leonardo Bras wrote: > MSG_ZEROCOPY is a feature that enables copy avoidance in TCP/UDP socket > send calls. It does so by avoiding copying user data into kernel buffers. > > To make it work, three steps are needed: > 1 - A setsockopt() system call,

Re: block/curl: should we be checking curl_easy_setopt() for errors?

2021-08-31 Thread Daniel P . Berrangé
On Mon, Aug 30, 2021 at 04:34:56PM +0100, Peter Maydell wrote: > Coverity complains (CID 1460331, 1459482, 1459336, 1458895) > that we call curl_easy_setopt(), which can return an error value, > but we never check the return value. > > Is it correct? Looking at the libcurl documentation, the

Re: [PATCH] docs: Link to protocol security considerations in uri docs

2021-08-18 Thread Daniel P . Berrangé
On Wed, Aug 18, 2021 at 11:02:48AM -0500, Eric Blake wrote: > On Mon, Aug 16, 2021 at 05:25:02PM +0200, Wouter Verhelst wrote: > > > As a followup, I got this reply from Hanno Böck on oss-security: > > > > > > https://www.openwall.com/lists/oss-security/2021/08/11/8 > > > | The buffering

Re: [PATCH] storage-daemon: Add missing build dependency to the vhost-user-blk-test

2021-08-12 Thread Daniel P . Berrangé
aemon/meson.build | 8 > tests/qtest/meson.build| 7 +-- > 2 files changed, 9 insertions(+), 6 deletions(-) Reviewed-by: Daniel P. Berrangé IIUC, this is the fix for the oss-fuzz test that hangs https://lists.gnu.org/archive/html/qemu-devel/2021-08/msg01850.html can we get this fix

Re: [PATCH] MAINTAINERS: Name and email address change

2021-08-10 Thread Daniel P . Berrangé
On Tue, Aug 10, 2021 at 01:46:51PM +0200, Hanna Reitz wrote: > On 10.08.21 13:29, Philippe Mathieu-Daudé wrote: > > On 8/10/21 11:50 AM, Hanna Reitz wrote: > > > I have changed my name and email address. Update the MAINTAINERS file > > > to match. > > > > > > Signed-off-by: Hanna Reitz > > >

[PATCH for 6.1] tests: filter out TLS distinguished name in certificate checks

2021-08-04 Thread Daniel P . Berrangé
the exact distinguished name text for the purpose of the test though, so it is fine to filter it out. Reported-by: Eric Blake Signed-off-by: Daniel P. Berrangé --- tests/qemu-iotests/233 | 2 +- tests/qemu-iotests/233.out | 4 ++-- tests/qemu-iotests/common.filter | 5 + 3 files

Re: Failing iotest 206

2021-08-04 Thread Daniel P . Berrangé
On Tue, Aug 03, 2021 at 07:17:47PM +0200, Kevin Wolf wrote: > Am 20.07.2021 um 10:32 hat Daniel P. Berrangé geschrieben: > > On Mon, Jul 19, 2021 at 08:12:58PM -0500, Eric Blake wrote: > > > On Mon, Jul 19, 2021 at 10:06:01AM +0200, Thomas Huth wrote: > > > > Hi, >

Re: [PATCH] gitlab-ci.d/buildtest: Disable iotests 197 and 215

2021-07-27 Thread Daniel P . Berrangé
. > > Signed-off-by: Thomas Huth > --- > .gitlab-ci.d/buildtest.yml | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org

Re: [PATCH v2] nbd/server: Add --selinux-label option

2021-07-23 Thread Daniel P . Berrangé
On Fri, Jul 23, 2021 at 06:18:55PM +0200, Kevin Wolf wrote: > Am 23.07.2021 um 12:33 hat Richard W.M. Jones geschrieben: > > Under SELinux, Unix domain sockets have two labels. One is on the > > disk and can be set with commands such as chcon(1). There is a > > different label stored in memory

Re: [PATCH v2] nbd/server: Add --selinux-label option

2021-07-23 Thread Daniel P . Berrangé
cker/dockerfiles/fedora.docker| 1 + > tests/docker/dockerfiles/opensuse-leap.docker | 1 + > tests/docker/dockerfiles/ubuntu1804.docker| 1 + > tests/docker/dockerfiles/ubuntu2004.docker| 1 + > 9 files changed, 58 insertions(+), 2 deletions(-) Reviewed-by: Daniel

Re: [PATCH] nbd/server: Add --selinux-label option

2021-07-22 Thread Daniel P . Berrangé
On Thu, Jul 22, 2021 at 05:32:40PM +0100, Richard W.M. Jones wrote: > Under SELinux, Unix domain sockets have two labels. One is on the > disk and can be set with commands such as chcon(1). There is a > different label stored in memory (called the process label). This can > only be set by the

Transient fail of iotests 215 and 197

2021-07-21 Thread Daniel P . Berrangé
Peter caught the following transient fail on the staging tree: https://gitlab.com/qemu-project/qemu/-/jobs/1438817749 --- /builds/qemu-project/qemu/tests/qemu-iotests/197.out +++ 197.out.bad @@ -12,13 +12,12 @@ 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) read 0/0 bytes at offset

Re: Failing iotest 206

2021-07-20 Thread Daniel P . Berrangé
On Mon, Jul 19, 2021 at 08:12:58PM -0500, Eric Blake wrote: > On Mon, Jul 19, 2021 at 10:06:01AM +0200, Thomas Huth wrote: > > Hi, > > > > iotest 206 fails for me with: > > > > > --- 206.out > > +++ 206.out.bad > > @@ -99,55 +99,19 @@ > > > > {"execute": "blockdev-create", "arguments":

Re: [PATCH v2] docs: document file-posix locking protocol

2021-07-15 Thread Daniel P . Berrangé
On Thu, Jul 15, 2021 at 08:13:40PM +0300, Vladimir Sementsov-Ogievskiy wrote: > 03.07.2021 17:50, Nir Soffer wrote: > > On Sat, Jul 3, 2021 at 4:51 PM Vladimir Sementsov-Ogievskiy > > wrote: > > [..] > > > > + > > > +Important notice: Qemu may fallback to POSIX file locks only if OFD locks > >

Re: [PATCH] block: Add option to use driver whitelist even in tools

2021-07-12 Thread Daniel P . Berrangé
On Mon, Jul 12, 2021 at 10:18:30AM +0200, Kevin Wolf wrote: > Am 09.07.2021 um 19:45 hat Eric Blake geschrieben: > > On Fri, Jul 09, 2021 at 06:41:41PM +0200, Kevin Wolf wrote: > > > Currently, the block driver whitelists are only applied for the system > > > emulator. All other binaries still

[PULL 5/7] migration/tls: Use qcrypto_tls_creds_check_endpoint()

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Avoid accessing QCryptoTLSCreds internals by using the qcrypto_tls_creds_check_endpoint() helper. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- migration/tls.c | 6 +- 1 file changed, 1 insertion

[PULL 4/7] chardev/socket: Use qcrypto_tls_creds_check_endpoint()

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Avoid accessing QCryptoTLSCreds internals by using the qcrypto_tls_creds_check_endpoint() helper. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- chardev/char-socket.c | 18 ++ 1 file

[PULL 3/7] qemu-nbd: Use qcrypto_tls_creds_check_endpoint()

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Avoid accessing QCryptoTLSCreds internals by using the qcrypto_tls_creds_check_endpoint() helper. Tested-by: Akihiko Odaki Reviewed-by: Eric Blake Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- qemu-nbd.c | 19 +++ 1

[PULL 7/7] crypto: Make QCryptoTLSCreds* structures private

2021-06-30 Thread Daniel P . Berrangé
m include/crypto/tlssession.h:24: include/crypto/tlscreds.h:28:10: fatal error: 'gnutls/gnutls.h' file not found #include ^ 1 error generated. Reported-by: Stefan Weil Suggested-by: Daniel P. Berrangé Resolves: https://gitlab.com/qemu-project/qemu/-/issues/407 F

[PULL 2/7] block/nbd: Use qcrypto_tls_creds_check_endpoint()

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Avoid accessing QCryptoTLSCreds internals by using the qcrypto_tls_creds_check_endpoint() helper. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- block/nbd.c| 6 +++--- blockdev-nbd.c | 6 +++--- 2

[PULL 0/7] crypto patches

2021-06-30 Thread Daniel P . Berrangé
The following changes since commit 13d5f87cc3b94bfccc501142df4a7b12fee3a6e7: Merge remote-tracking branch 'remotes/rth-gitlab/tags/pull-axp-20210628' into staging (2021-06-29 10:02:42 +0100) are available in the Git repository at: https://gitlab.com/berrange/qemu tags/tls-deps-pull-request

[PULL 6/7] ui/vnc: Use qcrypto_tls_creds_check_endpoint()

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Avoid accessing QCryptoTLSCreds internals by using the qcrypto_tls_creds_check_endpoint() helper. Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- ui/vnc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui

[PULL 1/7] crypto/tlscreds: Introduce qcrypto_tls_creds_check_endpoint() helper

2021-06-30 Thread Daniel P . Berrangé
From: Philippe Mathieu-Daudé Introduce the qcrypto_tls_creds_check_endpoint() helper to access QCryptoTLSCreds internal 'endpoint' field. Reviewed-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- crypto/tlscreds.c | 12

Re: [RFC PATCH 9/9] hw/sd: Allow card size not power of 2 again

2021-06-24 Thread Daniel P . Berrangé
On Wed, Jun 23, 2021 at 08:00:21PM +0200, Philippe Mathieu-Daudé wrote: > In commit a9bcedd15a5 ("hw/sd/sdcard: Do not allow invalid SD card > sizes") we tried to protect us from CVE-2020-13253 by only allowing > card with power-of-2 sizes. However doing so we disrupted valid user > cases. As a

Re: [PATCH RFC] docs: document file-posix locking protocol

2021-06-22 Thread Daniel P . Berrangé
On Mon, Mar 22, 2021 at 09:27:38PM +0300, Vladimir Sementsov-Ogievskiy wrote: > Let's document how we use file locks in file-posix driver, to allow > external programs to "communicate" in this way with Qemu. > > Signed-off-by: Vladimir Sementsov-Ogievskiy > --- > > Hi all! > > We need to

[PATCH] block/ssh: add support for sha256 host key fingerprints

2021-06-22 Thread Daniel P . Berrangé
-by: Daniel P. Berrangé --- Note I can't actually get iotest '207' to fully pass. It always complains that it can't validate the "known_hosts" file qemu-img: Could not open 'TEST_IMG': no host key was found in known_hosts it seems to rely on some specific developer host setup that my lapt

Re: [PATCH] block/rbd: Add support for rbd image encryption

2021-06-21 Thread Daniel P . Berrangé
On Mon, Jun 21, 2021 at 01:23:46PM +0200, Ilya Dryomov wrote: > On Mon, Jun 21, 2021 at 1:04 PM Daniel P. Berrangé > wrote: > > > > On Mon, Jun 21, 2021 at 12:59:37PM +0200, Ilya Dryomov wrote: > > > On Mon, Jun 21, 2021 at 10:32 AM Daniel P. Berrangé > > >

Re: [PATCH] block/rbd: Add support for rbd image encryption

2021-06-21 Thread Daniel P . Berrangé
On Mon, Jun 21, 2021 at 12:59:37PM +0200, Ilya Dryomov wrote: > On Mon, Jun 21, 2021 at 10:32 AM Daniel P. Berrangé > wrote: > > > > On Sat, Jun 19, 2021 at 09:44:32PM +0200, Ilya Dryomov wrote: > > > On Thu, Jun 17, 2021 at 6:05 PM Or Ozeri wrote: > > >

Re: [PATCH] block/rbd: Add support for rbd image encryption

2021-06-21 Thread Daniel P . Berrangé
On Sat, Jun 19, 2021 at 09:44:32PM +0200, Ilya Dryomov wrote: > On Thu, Jun 17, 2021 at 6:05 PM Or Ozeri wrote: > > > > Starting from ceph Pacific, RBD has built-in support for image-level > > encryption. > > Currently supported formats are LUKS version 1 and 2. > > > > There are 2 new relevant

Re: [PATCH v2 7/7] crypto: Make QCryptoTLSCreds* structures private

2021-06-15 Thread Daniel P . Berrangé
On Tue, Jun 15, 2021 at 07:16:17PM +0200, Philippe Mathieu-Daudé wrote: > On 6/15/21 6:52 PM, Daniel P. Berrangé wrote: > > On Tue, Jun 15, 2021 at 06:47:51PM +0200, Philippe Mathieu-Daudé wrote: > >> Code consuming the "crypto/tlscreds*.h" APIs doesn't need > &

Re: [PATCH v3 7/7] block: detect DKIOCGETBLOCKCOUNT/SIZE before use

2021-06-15 Thread Daniel P . Berrangé
On Tue, Jun 15, 2021 at 06:50:57PM +0200, Max Reitz wrote: > On 03.06.21 15:37, Paolo Bonzini wrote: > > From: Joelle van Dyne > > > > iOS hosts do not have these defined so we fallback to the > > default behaviour. > > > > Co-authored-by: Warner Losh > > Reviewed-by: Peter Maydell > >

Re: [PATCH v2 7/7] crypto: Make QCryptoTLSCreds* structures private

2021-06-15 Thread Daniel P . Berrangé
-channel.c:29: > In file included from include/io/channel-tls.h:26: > In file included from include/crypto/tlssession.h:24: > include/crypto/tlscreds.h:28:10: fatal error: 'gnutls/gnutls.h' file not > found > #include >^~~~~~~~~ > 1 error genera

Re: [PATCH v2 2/7] block/nbd: Use qcrypto_tls_creds_check_endpoint()

2021-06-15 Thread Daniel P . Berrangé
On Tue, Jun 15, 2021 at 06:47:46PM +0200, Philippe Mathieu-Daudé wrote: > Avoid accessing QCryptoTLSCreds internals by using > the qcrypto_tls_creds_check_endpoint() helper. > > Signed-off-by: Philippe Mathieu-Daudé > --- > block/nbd.c| 3 ++- > blockdev-nbd.c | 3 ++- > 2 files changed, 4

[PULL 13/13] usb/dev-mtp: use GDateTime for formatting timestamp for objects

2021-06-14 Thread Daniel P . Berrangé
The GDateTime APIs provided by GLib avoid portability pitfalls, such as some platforms where 'struct timeval.tv_sec' field is still 'long' instead of 'time_t'. When combined with automatic cleanup, GDateTime often results in simpler code too. Reviewed-by: Gerd Hoffmann Signed-off-by: Daniel P

[PULL 07/13] softmmu: add trace point when bdrv_flush_all fails

2021-06-14 Thread Daniel P . Berrangé
The VM stop process has to flush outstanding I/O and this is a critical failure scenario that is hard to diagnose. Add a probe point that records the flush return code. Reviewed-by: Connor Kuehl Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Daniel P. Berrangé --- softmmu/cpus.c | 7

[PULL 06/13] migration: add trace point when vm_stop_force_state fails

2021-06-14 Thread Daniel P . Berrangé
-by: Daniel P. Berrangé --- migration/migration.c | 1 + migration/trace-events | 1 + 2 files changed, 2 insertions(+) diff --git a/migration/migration.c b/migration/migration.c index 4828997f63..4228635d18 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3115,6 +3115,7 @@ static

[PULL 11/13] migration: use GDateTime for formatting timestamp in snapshot names

2021-06-14 Thread Daniel P . Berrangé
-by: Daniel P. Berrangé --- migration/savevm.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/migration/savevm.c b/migration/savevm.c index 52e2d72e4b..72848b946c 100644 --- a/migration/savevm.c +++ b/migration/savevm.c @@ -2775,8 +2775,7 @@ bool save_snapshot(const

[PULL 12/13] block: use GDateTime for formatting timestamp when dumping snapshot info

2021-06-14 Thread Daniel P . Berrangé
The GDateTime APIs provided by GLib avoid portability pitfalls, such as some platforms where 'struct timeval.tv_sec' field is still 'long' instead of 'time_t'. When combined with automatic cleanup, GDateTime often results in simpler code too. Reviewed-by: Max Reitz Signed-off-by: Daniel P

[PULL 10/13] block: remove duplicate trace.h include

2021-06-14 Thread Daniel P . Berrangé
Reviewed-by: Connor Kuehl Reviewed-by: Dr. David Alan Gilbert Signed-off-by: Daniel P. Berrangé --- block/file-posix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 4189b2bfa6..b3fbb9bd63 100644 --- a/block/file-posix.c +++ b/block/file

[PULL 09/13] block: add trace point when fdatasync fails

2021-06-14 Thread Daniel P . Berrangé
Signed-off-by: Daniel P. Berrangé --- block/file-posix.c | 2 ++ block/trace-events | 1 + 2 files changed, 3 insertions(+) diff --git a/block/file-posix.c b/block/file-posix.c index 5ff78ecb34..4189b2bfa6 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -1338,6 +1338,8 @@ static int

<    1   2   3   4   5   6   7   8   9   10   >