Re: [PATCH] qio: Inherit follow_coroutine_ctx across TLS

2024-05-17 Thread Daniel P . Berrangé
LS thread in nbd/server.c, > it is more generic if all qio channels that wrap other channels > inherit the follow status, in the same way that they inherit feature > bits. > > CC: Stefan Hajnoczi > CC: Daniel P. Berrangé > CC: qemu-sta...@nongnu.org > Fixes: https://issues.r

Re: [PATCH v2 2/2] iotests: test NBD+TLS+iothread

2024-05-20 Thread Daniel P . Berrangé
On Fri, May 17, 2024 at 10:08:08PM -0500, Eric Blake wrote: > Adding a bit of self-review (in case you want to amend this before > pushing, instead of waiting for me to get back online), > > On Fri, May 17, 2024 at 09:50:15PM GMT, Eric Blake wrote: > > Prevent regressions when using NBD with TLS i

Re: [PATCH v5 09/13] osdep: move O_DSYNC and O_DIRECT defines from file-posix

2024-05-23 Thread Daniel P . Berrangé
On Thu, May 23, 2024 at 04:55:18PM +0200, Stefano Garzarella wrote: > These defines are also useful for vhost-user-blk when it is compiled > in some POSIX systems that do not define them, so let's move them to > “qemu/osdep.h”. > > Suggested-by: Philippe Mathieu-Daudé > Signed-off-by: Stefano Gar

Re: [PATCH v3 2/2] iotests: test NBD+TLS+iothread

2024-06-03 Thread Daniel P . Berrangé
while ss -ltn | grep -sqE ":$port\b"; do > +((port++)) > +if [ $port -eq 65000 ]; then port=5; fi > +done > +echo picked unused port > +} In retrospect I'd probably have suggested putting this into common.qemu as its conceptually independant of

Re: [PATCH 0/2] block/crypto: do not require number of threads upfront

2024-06-03 Thread Daniel P . Berrangé
e, but > I'm not familiar with this code or a crypto expert. Yes, its a case of this is undesirable, but we do it everywhere already, so this isn't making it any worse. For both patches Acked-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com

Re: [PATCH v2] Consider discard option when writing zeros

2024-06-26 Thread Daniel P . Berrangé
On Mon, Jun 24, 2024 at 06:08:26PM +0200, Kevin Wolf wrote: > Am 24.06.2024 um 17:23 hat Stefan Hajnoczi geschrieben: > > On Wed, Jun 19, 2024 at 08:43:25PM +0300, Nir Soffer wrote: > > > Tested using: > > > > Hi Nir, > > This looks like a good candidate for the qemu-iotests test suite. Adding > >

Re: [PATCH 3/4] hw/pci: Convert rom_bar into OnOffAuto

2024-07-08 Thread Daniel P . Berrangé
On Sat, Jul 06, 2024 at 06:29:23PM +0900, Akihiko Odaki wrote: > rom_bar is tristate but was defined as uint32_t so convert it into > OnOffAuto to clarify that. For compatibility, a uint32 value set via > QOM will be converted into OnOffAuto. > > Signed-off-by: Akihiko Odaki > --- > docs/igd-ass

Re: [PATCH v4 1/7] util: Introduce qemu_get_runtime_dir()

2024-07-16 Thread Daniel P . Berrangé
On Tue, Jul 16, 2024 at 04:27:31PM +0900, Akihiko Odaki wrote: > qemu_get_runtime_dir() returns a dynamically allocated directory path > that is appropriate for storing runtime files. It corresponds to "run" > directory in Unix. > > With a tree-wide search, it was found that there are several case

Re: [PATCH v4 0/7] util: Introduce qemu_get_runtime_dir()

2024-07-16 Thread Daniel P . Berrangé
On Tue, Jul 16, 2024 at 11:06:57AM +0300, Michael Tokarev wrote: > 16.07.2024 10:27, Akihiko Odaki wrote: > > qemu_get_runtime_dir() returns a dynamically allocated directory path > > that is appropriate for storing runtime files. It corresponds to "run" > > directory in Unix. > > Since runtime di

Re: [PATCH v4 1/7] util: Introduce qemu_get_runtime_dir()

2024-07-16 Thread Daniel P . Berrangé
On Tue, Jul 16, 2024 at 07:52:00PM +0900, Akihiko Odaki wrote: > On 2024/07/16 18:53, Daniel P. Berrangé wrote: > > On Tue, Jul 16, 2024 at 04:27:31PM +0900, Akihiko Odaki wrote: > > > qemu_get_runtime_dir() returns a dynamically allocated directory path > > > that

Re: [PATCH 05/18] qapi/crypto: Drop temporary 'prefix'

2024-07-30 Thread Daniel P . Berrangé
nit/test-crypto-block.c | 14 +++--- > 7 files changed, 22 insertions(+), 24 deletions(-) Acked-by: Daniel P. Berrangé With 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-https://www.instagram.com/dberrange :|

Re: [PATCH 10/18] qapi/crypto: Drop unwanted 'prefix'

2024-07-30 Thread Daniel P . Berrangé
pher-nettle.c.inc| 8 +++ > crypto/rsakey-builtin.c.inc | 4 ++-- > crypto/rsakey-nettle.c.inc | 4 ++-- > 9 files changed, 32 insertions(+), 33 deletions(-) Acked-by: Daniel P. Berrangé With regards, Daniel -- |: https://ber

Re: [PATCH 11/18] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
+++ > tests/unit/test-crypto-hmac.c | 16 - > tests/unit/test-crypto-ivgen.c | 8 ++--- > tests/unit/test-crypto-pbkdf.c | 44 - > ui/vnc.c | 2 +- > util/hbitmap.c

Re: [PATCH 12/18] qapi/crypto: Rename QCryptoCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
| 18 +++--- > crypto/cipher-gcrypt.c.inc| 56 > crypto/cipher-gnutls.c.inc| 38 +-- > crypto/cipher-nettle.c.inc| 58 - > 26 files changed, 277 insertions(+), 278 deletions(-) Acked-by: Daniel P. Berrangé W

Re: [PATCH 13/18] qapi/crypto: Rename QCryptoIVGenAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
.h | 2 +- > include/crypto/ivgen.h | 14 +++--- > crypto/block-luks.c| 16 > crypto/block-qcow.c| 2 +- > crypto/ivgen.c | 10 +- > tests/unit/test-crypto-block.c | 14 +++--- >

Re: [PATCH 14/18] qapi/crypto: Rename QCryptoAkCipherAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
/test-crypto-akcipher.c | 10 +- > crypto/akcipher-gcrypt.c.inc | 4 ++-- > crypto/akcipher-nettle.c.inc| 4 ++-- > 9 files changed, 19 insertions(+), 20 deletions(-) Acked-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com

Re: [PATCH 15/18] qapi/crypto: Rename QCryptoRSAPaddingAlgorithm to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
nc| 18 +- > crypto/akcipher-nettle.c.inc| 18 +- > 7 files changed, 41 insertions(+), 42 deletions(-) Acked-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dber

Re: [PATCH 16/18] qapi/crypto: Rename QCryptoAFAlg to QCryptoAFAlgo

2024-07-30 Thread Daniel P . Berrangé
> crypto/cipher-afalg.c | 12 ++-- > crypto/hash-afalg.c | 14 +++--- > 5 files changed, 25 insertions(+), 25 deletions(-) Acked-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |:

Re: [PATCH 17/18] qapi/cryptodev: Drop unwanted 'prefix'

2024-07-30 Thread Daniel P . Berrangé
yptodev-builtin.c| 8 > backends/cryptodev-lkcf.c | 2 +- > backends/cryptodev-vhost-user.c | 6 +++--- > backends/cryptodev.c| 6 +++--- > hw/virtio/virtio-crypto.c | 10 +++++- > 6 files changed, 16 insertions(+), 17 deletions(-) Re

Re: [PATCH 18/18] qapi/cryptodev: Rename QCryptodevBackendAlgType to *Algo, and drop prefix

2024-07-30 Thread Daniel P . Berrangé
yptodev.c | 6 +++--- > hw/virtio/virtio-crypto.c| 14 +++--- > 6 files changed, 18 insertions(+), 19 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |:

Re: [PATCH 09/18] qapi/machine: Rename CpuS390* to S390Cpu, and drop 'prefix'

2024-07-30 Thread Daniel P . Berrangé
nclude/hw/qdev-properties-system.h | 2 +- > include/hw/s390x/cpu-topology.h | 2 +- > target/s390x/cpu.h | 2 +- > hw/core/qdev-properties-system.c| 6 +++--- > hw/s390x/cpu-topology.c | 6 +++--- > 9 files changed, 23 insertions(+), 26

Re: [PATCH 01/18] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-07-30 Thread Daniel P . Berrangé
| 1 + > qapi/migration.json | 1 + > qapi/ui.json | 2 ++ > scripts/qapi/common.py | 42 ++++++---------- > scripts/qapi/schema.py | 2 +- > tests/qapi-schema/alternate-array.out| 1 -

Re: [PATCH 11/18] qapi/crypto: Rename QCryptoHashAlgorithm to *Algo, and drop prefix

2024-07-31 Thread Daniel P . Berrangé
On Tue, Jul 30, 2024 at 02:26:49PM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Tue, Jul 30, 2024 at 10:10:25AM +0200, Markus Armbruster wrote: > >> QAPI's 'prefix' feature can make the connection between enumeration > >> ty

Re: [PATCH v3 1/2] nbd: CVE-2024-7409: Close stray client sockets at server shutdown

2024-08-06 Thread Daniel P . Berrangé
> client's socket never got added to the list closed in > nbd_export_close_all), despite that patch intentionally tearing down > the QIONetListener to prevent new clients. > > Reported-by: Alexander Ivanov > Fixes: CVE-2024-7409 > Signed-off-by: Eric Blake > --- >

Re: [PATCH v3 2/2] nbd: Clean up clients more efficiently

2024-08-06 Thread Daniel P . Berrangé
On Mon, Aug 05, 2024 at 09:21:36PM -0500, Eric Blake wrote: > Since an NBD server may be long-living, serving clients that > repeatedly connect and disconnect, it can be more efficient to clean > up after each client disconnects, rather than storing a list of > resources to clean up when the server

Re: [PATCH v4 1/7] nbd: Minor style fixes

2024-08-07 Thread Daniel P . Berrangé
+- > qemu-nbd.c | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrang

Re: [PATCH v4 2/7] nbd/server: Plumb in new args to nbd_client_add()

2024-08-07 Thread Daniel P . Berrangé
typedef struct NBDOption { > @@ -403,9 +409,12 @@ AioContext *nbd_export_aio_context(NBDExport *exp); > NBDExport *nbd_export_find(const char *name); > > void nbd_client_new(QIOChannelSocket *sioc, > +uint32_t handshake_limit, s/handshake_limit/handshake_max_secs/ to m

Re: [PATCH v4 3/7] nbd/server: CVE-2024-7409: Change default max-connections to 100

2024-08-07 Thread Daniel P . Berrangé
surface. On the other hand, by itself, it makes it more obvious that > with a finite limit, we have the problem of an unauthenticated client > holding 100 fds opened as a way to block out a legitimate client from > being able to connect; thus, later patches will further add timeouts >

Re: [PATCH v4 4/7] nbd/server: CVE-2024-7409: Drop non-negotiating clients

2024-08-07 Thread Daniel P . Berrangé
get to start progressing once earlier ones are > forcefully dropped for taking too long, rather than hanging. > > Suggested-by: Daniel P. Berrangé > Signed-off-by: Eric Blake > --- > nbd/server.c | 31 ++- > nbd/trace-events | 1 + > 2 file

Re: [PATCH v4 5/7] nbd/server: CVE-2024-7409: Close stray client sockets at shutdown

2024-08-07 Thread Daniel P . Berrangé
to the list closed in > nbd_export_close_all), despite that patch intentionally tearing down > the QIONetListener to prevent new clients. > > Reported-by: Alexander Ivanov > Fixes: CVE-2024-7409 > Signed-off-by: Eric Blake > --- > blockdev-nbd.c | 35 ++

Re: [PATCH 2/2] qemu-img: CVE-XXX Sanitize untrusted output from NBD server

2024-08-07 Thread Daniel P . Berrangé
h" > > #include "nbd-internal.h" > > #include "qemu/cutils.h" > > +#include "qemu/unicode.h" > > > > /* Definitions for opaque data types */ > > > > @@ -230,7 +231,9 @@ static int nbd_handle_reply_err(QIOChannel *ioc, &

Re: [PATCH 1/2] util: Refactor json-writer's string sanitizer to be public

2024-08-07 Thread Daniel P . Berrangé
> 3 files changed, 88 insertions(+), 46 deletions(-) I was going to ask for a unit test, but "escaped_string" in test-qjson.c looks like it will be covering this sufficiently well already, that we don't need to test it in isolation. Reviewed-by: Daniel P. Berrangé Wi

Re: [PULL 10/11] crypto: push error reporting into TLS session I/O APIs

2024-08-12 Thread Daniel P . Berrangé
On Mon, Aug 12, 2024 at 05:38:41PM +0200, Thomas Huth wrote: > On 24/07/2024 11.47, Daniel P. Berrangé wrote: > > The current TLS session I/O APIs just return a synthetic errno > > value on error, which has been translated from a gnutls error > > value. This looses a lar

[PATCH] iotests: fix expected output from gnutls in NBD test

2024-08-29 Thread Daniel P . Berrangé
Error reporting from gnutls was improved by: commit 57941c9c86357a6a642f9ee3279d881df4043b6d Author: Daniel P. Berrangé Date: Fri Mar 15 14:07:58 2024 + crypto: push error reporting into TLS session I/O APIs This has the effect of changing the output from one of the NBD tests

Re: [PULL 10/11] crypto: push error reporting into TLS session I/O APIs

2024-08-29 Thread Daniel P . Berrangé
On Wed, Aug 28, 2024 at 10:32:15AM +0200, Thomas Huth wrote: > On 27/08/2024 09.05, Markus Armbruster wrote: > > Daniel P. Berrangé writes: > > > > > On Mon, Aug 12, 2024 at 05:38:41PM +0200, Thomas Huth wrote: > > > > On 24/07/2024 11.47, Daniel P. Berra

Re: [PATCH] raw-format: Fix error message for invalid offset/size

2024-08-29 Thread Daniel P . Berrangé
; Fixes: 500e2434207d ('raw-format: Split raw_read_options()') > Signed-off-by: Kevin Wolf > --- > block/raw-format.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-

Re: [PATCH v2 01/19] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-09-04 Thread Daniel P . Berrangé
On Wed, Sep 04, 2024 at 01:18:18PM +0200, Markus Armbruster wrote: > camel_to_upper() converts its argument from camel case to upper case > with '_' between words. Used for generated enumeration constant > prefixes. > > Signed-off-by: Markus Armbruster > Reviewed-by: Daniel P. Berrang?? The

Re: [PATCH v2 01/19] qapi: Smarter camel_to_upper() to reduce need for 'prefix'

2024-09-05 Thread Daniel P . Berrangé
On Thu, Sep 05, 2024 at 07:59:13AM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Wed, Sep 04, 2024 at 01:18:18PM +0200, Markus Armbruster wrote: > >> camel_to_upper() converts its argument from camel case to upper case > >> with '_&

[PULL 00/10] Crypto fixes patches

2024-09-09 Thread Daniel P . Berrangé
* Fix iotests expected output from gnutls errors -------- Daniel P. Berrangé (6): iotests: fix expected output from gnutls crypto: check gnutls & gcrypt support the requested pbkdf hash tests/unit: always build the pbkdf crypto unit

[PULL 02/10] crypto: run qcrypto_pbkdf2_count_iters in a new thread

2024-09-09 Thread Daniel P . Berrangé
-bot2/ [2] https://lore.kernel.org/lkml/20221226031010.4079885-1-maxing@bytedance.com/t/#m1c7f2fdc0ea742776a70fd1aa2a2e414c437f534 Resolves: #2398 Signed-off-by: Tiago Pasqualini Signed-off-by: Daniel P. Berrangé --- crypto/pbkdf.c | 53 +++--- 1

[PULL 01/10] iotests: fix expected output from gnutls

2024-09-09 Thread Daniel P . Berrangé
Error reporting from gnutls was improved by: commit 57941c9c86357a6a642f9ee3279d881df4043b6d Author: Daniel P. Berrangé Date: Fri Mar 15 14:07:58 2024 + crypto: push error reporting into TLS session I/O APIs This has the effect of changing the output from one of the NBD tests

[PULL 03/10] crypto: check gnutls & gcrypt support the requested pbkdf hash

2024-09-09 Thread Daniel P . Berrangé
P. Berrangé --- crypto/pbkdf-gcrypt.c | 2 +- crypto/pbkdf-gnutls.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/pbkdf-gcrypt.c b/crypto/pbkdf-gcrypt.c index a8d8e64f4d..bc0719c831 100644 --- a/crypto/pbkdf-gcrypt.c +++ b/crypto/pbkdf-gcrypt.c @@ -33,7 +33,7

[PULL 07/10] crypto: use consistent error reporting pattern for unsupported cipher modes

2024-09-09 Thread Daniel P . Berrangé
Not all paths in qcrypto_cipher_ctx_new() were correctly distinguishing between valid user input for cipher mode (which should report a user facing error), vs program logic errors (which should assert). Reported-by: Peter Maydell Signed-off-by: Daniel P. Berrangé --- crypto/cipher-nettle.c.inc

[PULL 06/10] crypto: avoid leak of ctx when bad cipher mode is given

2024-09-09 Thread Daniel P . Berrangé
Fixes: Coverity CID 1546884 Reviewed-by: Peter Maydell Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- crypto/cipher-nettle.c.inc | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/crypto/cipher-nettle.c.inc b/crypto/cipher-nettle.c.inc index

[PULL 05/10] tests/unit: build pbkdf test on macOS

2024-09-09 Thread Daniel P . Berrangé
Add CONFIG_DARWIN to the pbkdf test build condition, since we have a way to measure CPU time on this platform since commit bf98afc75efedf1. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- tests/unit/test-crypto-pbkdf.c | 2 +- 1 file changed, 1 insertion(+), 1

[PULL 04/10] tests/unit: always build the pbkdf crypto unit test

2024-09-09 Thread Daniel P . Berrangé
test registration. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Daniel P. Berrangé --- tests/unit/meson.build | 4 +--- tests/unit/test-crypto-pbkdf.c | 13 - 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/tests/unit/meson.build b/tests/unit/meson.build

[PULL 09/10] crypto: Support SHA384 hash when using glib

2024-09-09 Thread Daniel P . Berrangé
From: Dorjoy Chowdhury QEMU requires minimum glib version 2.66.0 as per the root meson.build file and per glib documentation[1] G_CHECKSUM_SHA384 is available since 2.51. [1] https://docs.gtk.org/glib/enum.ChecksumType.html Reviewed-by: Daniel P. Berrangé Signed-off-by: Dorjoy Chowdhury

[PULL 08/10] crypto: Define macros for hash algorithm digest lengths

2024-09-09 Thread Daniel P . Berrangé
From: Dorjoy Chowdhury Reviewed-by: Daniel P. Berrangé Signed-off-by: Dorjoy Chowdhury Signed-off-by: Daniel P. Berrangé --- crypto/hash.c | 14 +++--- include/crypto/hash.h | 8 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/crypto/hash.c b/crypto

[PULL 10/10] crypto: Introduce x509 utils

2024-09-09 Thread Daniel P . Berrangé
-by: Daniel P. Berrangé --- crypto/meson.build | 4 ++ crypto/x509-utils.c | 76 + include/crypto/x509-utils.h | 22 +++ 3 files changed, 102 insertions(+) create mode 100644 crypto/x509-utils.c create mode 100644 include/crypto/x509

Re: [PATCH] hw/nvme: fix example serial in documentation

2022-06-28 Thread Daniel P . Berrangé
On Mon, Jun 27, 2022 at 02:39:57PM +0200, Niklas Cassel via wrote: > The serial prop on the controller is actually describing the nvme > subsystem serial, which has to be identical for all controllers within > the same nvme subsystem. Given this description... > > -device nvme-subsys,id=nvm

Re: [RFC 0/8] Introduce an extensible static analyzer

2022-07-04 Thread Daniel P . Berrangé
On Sat, Jul 02, 2022 at 12:33:23PM +0100, Alberto Faria wrote: > This series introduces a static analyzer for QEMU. It consists of a > single static-analyzer.py script that relies on libclang's Python > bindings, and provides a common framework on which arbitrary static > analysis checks can be dev

Re: [RFC 0/8] Introduce an extensible static analyzer

2022-07-05 Thread Daniel P . Berrangé
On Mon, Jul 04, 2022 at 08:30:08PM +0100, Alberto Faria wrote: > On Mon, Jul 4, 2022 at 5:28 PM Daniel P. Berrangé wrote: > > Have you done any measurement see how much of the overhead is from > > the checks you implemented, vs how much is inherantly forced on us > > by libcl

Re: [RFC 0/8] Introduce an extensible static analyzer

2022-07-05 Thread Daniel P . Berrangé
On Tue, Jul 05, 2022 at 12:28:55PM +0100, Alberto Faria wrote: > On Tue, Jul 5, 2022 at 8:16 AM Daniel P. Berrangé wrote: > > for i in `git ls-tree --name-only -r HEAD:` > > do > > clang-tidy $i 1>/dev/null 2>&1 > > done > > Al

Re: [RFC 0/8] Introduce an extensible static analyzer

2022-07-05 Thread Daniel P . Berrangé
On Sat, Jul 02, 2022 at 12:33:23PM +0100, Alberto Faria wrote: > This series introduces a static analyzer for QEMU. It consists of a > single static-analyzer.py script that relies on libclang's Python > bindings, and provides a common framework on which arbitrary static > analysis checks can be dev

Re: [RFC 0/8] Introduce an extensible static analyzer

2022-07-06 Thread Daniel P . Berrangé
On Wed, Jul 06, 2022 at 10:54:51AM +0100, Alberto Faria wrote: > On Tue, Jul 5, 2022 at 5:12 PM Daniel P. Berrangé wrote: > > On Tue, Jul 05, 2022 at 12:28:55PM +0100, Alberto Faria wrote: > > > On Tue, Jul 5, 2022 at 8:16 AM Daniel P. Berrangé > > > wrote: > &g

Re: [PATCH v3 04/13] tests/vm: switch centos.aarch64 to CentOS 8 Stream

2022-07-07 Thread Daniel P . Berrangé
> tests/vm/centos.aarch64 | 174 ++-- > 1 file changed, 24 insertions(+), 150 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop

Re: [PATCH v3 05/13] tests/vm: update sha256sum for ubuntu.aarch64

2022-07-07 Thread Daniel P . Berrangé
en run as a TCG test. > > Signed-off-by: John Snow > --- > tests/vm/ubuntu.aarch64 | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/

Re: [PATCH v3 08/13] tests/vm: add 1GB extra memory per core

2022-07-07 Thread Daniel P . Berrangé
n Snow > --- > tests/vm/basevm.py | 5 +++++ > 1 file changed, 5 insertions(+) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop1

Re: [PATCH v3 01/13] qga: treat get-guest-fsinfo as "best effort"

2022-07-07 Thread Daniel P . Berrangé
gt; qga/commands-posix.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.b

Re: [PATCH v3 02/13] tests/vm: use 'cp' instead of 'ln' for temporary vm images

2022-07-07 Thread Daniel P . Berrangé
d-by: Thomas Huth > --- > tests/vm/centos | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-

Re: [PATCH v3 03/13] tests/vm: switch CentOS 8 to CentOS 8 Stream

2022-07-07 Thread Daniel P . Berrangé
e changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Daniel P. Berrangé With 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-https://www.instagram.com/dberrange :|

Re: [PATCH v3 06/13] tests/vm: remove ubuntu.i386 VM test

2022-07-07 Thread Daniel P . Berrangé
-- > 2 files changed, 1 insertion(+), 42 deletions(-) > delete mode 100755 tests/vm/ubuntu.i386 Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-

Re: [PATCH v3 07/13] tests/vm: remove duplicate 'centos' VM test

2022-07-07 Thread Daniel P . Berrangé
> 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://entangle-p

Re: [PATCH v3 09/13] tests/vm: upgrade Ubuntu 18.04 VM to 20.04

2022-07-07 Thread Daniel P . Berrangé
4 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://

Re: [PATCH v3 10/13] tests/vm: Remove docker cross-compile test from CentOS VM

2022-07-07 Thread Daniel P . Berrangé
K=1; I don't mind either way though, and feel this is quite poiintless anyway, since mingw is trivial to test in containers Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org

Re: [PATCH v3 10/13] tests/vm: Remove docker cross-compile test from CentOS VM

2022-07-07 Thread Daniel P . Berrangé
On Thu, Jul 07, 2022 at 11:48:35AM -0400, John Snow wrote: > On Thu, Jul 7, 2022 at 4:33 AM Daniel P. Berrangé wrote: > > > > On Thu, Jul 07, 2022 at 12:03:07AM -0400, John Snow wrote: > > > The fedora container has since been split apart, so there's no suitable &

Re: [PULL 06/18] vfio-user: build library

2022-07-12 Thread Daniel P . Berrangé
On Wed, Jun 15, 2022 at 04:51:17PM +0100, Stefan Hajnoczi wrote: > From: Jagannathan Raman > > add the libvfio-user library as a submodule. build it as a meson > subproject. > > libvfio-user is distributed with BSD 3-Clause license and > json-c with MIT (Expat) license > > Signed-off-by: Elena

Re: [PATCH 2/3] vl: Conditionally register PID file unlink notifier

2022-07-12 Thread Daniel P . Berrangé
+++- > 1 file changed, 9 insertions(+), 9 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o-https://fstop138.berrange.com :| |: https://

Re: [PATCH 1/3] qsd: Unlink absolute PID file path

2022-07-12 Thread Daniel P . Berrangé
ttps://bugzilla.redhat.com/show_bug.cgi?id=2092322 > Signed-off-by: Hanna Reitz > --- > storage-daemon/qemu-storage-daemon.c | 11 ++++++- > 1 file changed, 10 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com

Re: [PATCH 3/3] vl: Unlink absolute PID file path

2022-07-12 Thread Daniel P . Berrangé
> > Signed-off-by: Hanna Reitz > --- > softmmu/vl.c | 30 ++ > 1 file changed, 26 insertions(+), 4 deletions(-) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt.org

Re: [PULL 06/18] vfio-user: build library

2022-07-12 Thread Daniel P . Berrangé
On Tue, Jul 12, 2022 at 03:27:09PM +, Jag Raman wrote: > > > On Jul 12, 2022, at 4:39 AM, Daniel P. Berrangé > mailto:berra...@redhat.com>> wrote: > > On Wed, Jun 15, 2022 at 04:51:17PM +0100, Stefan Hajnoczi wrote: > From: Jagannathan Raman mailto:jag.ra..

Re: [PULL 06/18] vfio-user: build library

2022-07-21 Thread Daniel P . Berrangé
Hi Jay / Stefan, We've got a non-determinsitic hang in QEMU CI since this series merged, which we tracked down to a libvfio-user test that is flakey: https://gitlab.com/qemu-project/qemu/-/issues/1114 John Levon has proposed a PR to libvfio-user to turn off the test, but we'll need one of you

Re: [PULL 06/18] vfio-user: build library

2022-07-25 Thread Daniel P . Berrangé
updated. That sounds good, thank you. We should be fine to get the submodule reefreshed even in soft freeze, given that it is fixing a test failure bug. Oh and I just noticed I messed up your name in my message below. I'm very sorry about that. With regards, Daniel > On Jul 21, 2022, a

Re: [RFC v2 02/10] Drop unused static function return values

2022-08-03 Thread Daniel P . Berrangé
On Wed, Aug 03, 2022 at 11:46:26AM +0100, Dr. David Alan Gilbert wrote: > * Alberto Faria (afa...@redhat.com) wrote: > > Make non-void static functions whose return values are ignored by > > all callers return void instead. > > > > These functions were found by static-analyzer.py. > > > > Not all

Re: [RFC v2 02/10] Drop unused static function return values

2022-08-03 Thread Daniel P . Berrangé
On Wed, Aug 03, 2022 at 12:15:20PM +0100, Richard W.M. Jones wrote: > On Wed, Aug 03, 2022 at 12:07:19PM +0100, Alberto Faria wrote: > > On Wed, Aug 3, 2022 at 11:46 AM Dr. David Alan Gilbert > > wrote: > > > > > > * Alberto Faria (afa...@redhat.com) wrote: > > > > Make non-void static functions w

Re: [PATCH v5 5/8] blockdev: Add a new IF type IF_OTHER

2022-08-04 Thread Daniel P . Berrangé
On Thu, Jul 28, 2022 at 10:46:35AM +0100, Peter Maydell wrote: > On Wed, 27 Jul 2022 at 20:03, Kevin Wolf wrote: > > > > Am 18.07.2022 um 11:49 hat Markus Armbruster geschrieben: > > > An OTP device isn't really a parallel flash, and neither are eFuses. > > > More fast-and-lose use of IF_PFLASH ma

Re: [PATCH v5 5/8] blockdev: Add a new IF type IF_OTHER

2022-08-04 Thread Daniel P . Berrangé
On Thu, Aug 04, 2022 at 04:56:15PM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Thu, Jul 28, 2022 at 10:46:35AM +0100, Peter Maydell wrote: > >> On Wed, 27 Jul 2022 at 20:03, Kevin Wolf wrote: > >> > > >> > Am 18.07.20

Re: [PATCH v5 5/8] blockdev: Add a new IF type IF_OTHER

2022-08-04 Thread Daniel P . Berrangé
On Thu, Aug 04, 2022 at 05:30:40PM +0200, Markus Armbruster wrote: > Daniel P. Berrangé writes: > > > On Thu, Aug 04, 2022 at 04:56:15PM +0200, Markus Armbruster wrote: > >> Daniel P. Berrangé writes: > >> > >> > On Thu, Jul 28, 2022 at 10:46:35AM +010

Re: [PATCH v2 11/15] qemu-common: move scripts/qapi

2022-08-11 Thread Daniel P . Berrangé
On Thu, Aug 11, 2022 at 02:50:01PM +0400, Marc-André Lureau wrote: > Hi > > On Thu, Aug 11, 2022 at 2:22 PM Peter Maydell > wrote: > > > On Thu, 11 Aug 2022 at 11:09, Marc-André Lureau > > wrote: > > > On Thu, Aug 11, 2022 at 1:05 PM Markus Armbruster > > wrote: > > >> Your moves tear closely

Re: [RFC PATCH] qemu-options: try and clarify preferred block semantics

2022-08-22 Thread Daniel P . Berrangé
Cc: Daniel P. Berrange > Cc: Thomas Huth > --- > qemu-options.hx | 13 + > 1 file changed, 13 insertions(+) Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/photos/dberrange :| |: https://libvirt

Re: [PATCH 03/51] block: Unify the get_tmp_filename() implementation

2022-08-31 Thread Daniel P . Berrangé
On Wed, Aug 31, 2022 at 04:54:41PM +0400, Marc-André Lureau wrote: > Hi Bin > > On Wed, Aug 24, 2022 at 1:42 PM Bin Meng wrote: > > > From: Bin Meng > > > > At present get_tmp_filename() has platform specific implementations > > to get the directory to use for temporary files. Switch over to us

Re: [PATCH 8/8] meson-build: test-crypto-secret depends on CONFIG_SECRET_KEYRING

2022-09-20 Thread Daniel P . Berrangé
On Fri, Sep 02, 2022 at 06:51:26PM +0200, Juan Quintela wrote: > With this change "make check" works when configured with --disable-keyring. > > Signed-off-by: Juan Quintela > --- > tests/unit/meson.build | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/tests/unit/mes

Re: [PATCH] block: Refactor get_tmp_filename()

2022-09-26 Thread Daniel P . Berrangé
> and use g_file_open_tmp() for a consistent implementation. > > Signed-off-by: Bin Meng > --- > > include/block/block_int-common.h | 2 +- > block.c | 42 ++-- > block/vvfat.c | 8 +++--- > 3 files changed,

Re: [PATCH v3] block: Refactor get_tmp_filename()

2022-09-26 Thread Daniel P . Berrangé
On Sun, Sep 25, 2022 at 12:32:00AM +0800, Bin Meng wrote: > From: Bin Meng > > At present there are two callers of get_tmp_filename() and they are > inconsistent. > > One does: > > /* TODO: extra byte is a hack to ensure MAX_PATH space on Windows. */ > char *tmp_filename = g_malloc0(PAT

Re: [PATCH v3 3/3] util/aio-win32: Correct the event array size in aio_poll()

2022-10-19 Thread Daniel P . Berrangé
tify > && aio_node_check(ctx, node->is_external)) { > + assert(count < MAXIMUM_WAIT_OBJECTS); > events[count++] = event_notifier_get_handle(node->e); > } > } Reviewed-by: Daniel P. Berrangé With regards, Daniel -- |: https:/

[Qemu-block] [PATCH] crypto: initialize sector size even when opening with no IO flag

2018-10-16 Thread Daniel P . Berrangé
The qcow2 block driver expects to see a valid sector size even when it has opened the crypto layer with QCRYPTO_BLOCK_OPEN_NO_IO. Signed-off-by: Daniel P. Berrangé --- crypto/block-qcow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crypto/block-qcow.c b/crypto/block-qcow.c index

Re: [Qemu-block] [PATCH] qcow2: Get the request alignment for encrypted images from QCryptoBlock

2018-10-16 Thread Daniel P . Berrangé
On Mon, Oct 15, 2018 at 06:38:14PM +0200, Max Reitz wrote: > On 11.10.18 12:58, Alberto Garcia wrote: > > This doesn't have any practical effect at the moment because the > > values of BDRV_SECTOR_SIZE, QCRYPTO_BLOCK_LUKS_SECTOR_SIZE and > > QCRYPTO_BLOCK_QCOW_SECTOR_SIZE are all the same (512 byte

Re: [Qemu-block] [PATCH] block: drop moderated sheepdog mailing list from MAINTAINERS file

2018-10-19 Thread Daniel P . Berrangé
Paolo, I think this is a patch for your misc patches queue. On Wed, Mar 21, 2018 at 03:31:24PM +, Daniel P. Berrangé wrote: > The sheepdog mailing list is setup to stop and queue messages from > non-subscribers, pending moderator approval. Unfortunately it seems > that the moderation

Re: [Qemu-block] [PATCH] crypto: Fix defaults in QCryptoBlockCreateOptionsLUKS

2018-11-12 Thread Daniel P . Berrangé
On Mon, Nov 12, 2018 at 03:45:45PM +0100, Alberto Garcia wrote: > ping Sorry, I should have said I queued this patch when adding my previous R-b. > On Fri 05 Oct 2018 04:52:02 PM CEST, Alberto Garcia wrote: > > The values specified in the documentation don't match the actual > > defaults set in q

Re: [Qemu-block] [Qemu-devel] [RFC PATCH 0/2] Acceptance tests for qemu-img

2018-11-12 Thread Daniel P . Berrangé
On Mon, Nov 12, 2018 at 09:59:56AM -0500, Cleber Rosa wrote: > > On 11/12/18 5:49 AM, Kevin Wolf wrote: > > Am 09.11.2018 um 23:12 hat Cleber Rosa geschrieben: > >> The initial goal of this RFC is to get feedback on tests not specific > >> to the QEMU main binary, but specific to other components

Re: [Qemu-block] [Qemu-devel] [RFC PATCH 0/2] Acceptance tests for qemu-img

2018-11-13 Thread Daniel P . Berrangé
On Tue, Nov 13, 2018 at 10:39:57AM +0100, Markus Armbruster wrote: > Drive-by comment... > > Cleber Rosa writes: > > [...] > > My impression is that the "infrastructure for block tests" is not that > > different from the infrastructure needed by other tests, specially other > > QEMU tests. > [..

Re: [Qemu-block] [PATCH v3 1/6] qemu-nbd: add support for authorization of TLS clients

2018-11-15 Thread Daniel P . Berrangé
On Mon, Nov 05, 2018 at 04:41:09PM -0600, Eric Blake wrote: > On 10/9/18 8:23 AM, Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > > > Currently any client which can complete the TLS handshake is able to use > > the NBD server. The server admin

Re: [Qemu-block] [PATCH v3 1/6] qemu-nbd: add support for authorization of TLS clients

2018-11-15 Thread Daniel P . Berrangé
On Mon, Nov 05, 2018 at 04:41:09PM -0600, Eric Blake wrote: > On 10/9/18 8:23 AM, Daniel P. Berrangé wrote: > > From: "Daniel P. Berrange" > > > > Currently any client which can complete the TLS handshake is able to use > > the NBD server. The server admin

Re: [Qemu-block] [Qemu-devel] [PATCH v2 09/13] RFC: crypto: Rely on block layer for fragmentation

2018-11-15 Thread Daniel P . Berrangé
n 'qemu-iotests/check -luks' on it to validate it then ... Reviewed-by: Daniel P. Berrangé > --- > block/crypto.c | 80 +++--- > 1 file changed, 30 insertions(+), 50 deletions(-) > > diff --git a/block/crypto.c b/blo

[Qemu-block] [PATCH 0/6] Misc fixes to NBD

2018-11-16 Thread Daniel P . Berrangé
This does two minor fixes to the NBD code and adds significant coverage of the NBD TLS support to detect future problems. The first two patches should be for 3.1. The tests can wait till 4.0 if desired. Daniel P. Berrangé (6): nbd: fix whitespace in server error message nbd: stop waiting

[Qemu-block] [PATCH 1/6 for-3.1] nbd: fix whitespace in server error message

2018-11-16 Thread Daniel P . Berrangé
with server NBD_REP_ERR errors Signed-off-by: Daniel P. Berrangé --- nbd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd/server.c b/nbd/server.c index 4e8f5ae51b..12e8139f95 100644 --- a/nbd/server.c +++ b/nbd/server.c @@ -1135,7 +1135,7 @@ static int

[Qemu-block] [PATCH 4/6] tests: check if qemu-nbd is still alive before waiting

2018-11-16 Thread Daniel P . Berrangé
If the qemu-nbd UNIX socket has not shown up, the tests will sleep a bit and then check again repeatedly for upto 30 seconds. This is pointless if the qemu-nbd process has quit due to an error, so check whether the pid is still alive before waiting and retrying. Signed-off-by: Daniel P. Berrangé

[Qemu-block] [PATCH 2/6 for-3.1] nbd: stop waiting for a NBD response with NBD_CMD_DISC

2018-11-16 Thread Daniel P . Berrangé
Signed-off-by: Vladimir Sementsov-Ogievskiy Message-Id: <20170526110913.89098-1-vsement...@virtuozzo.com> Signed-off-by: Paolo Bonzini Signed-off-by: Daniel P. Berrangé --- block/nbd-client.c | 1 + 1 file changed, 1 insertion(+) diff --git a/block/nbd-client.c b/block/nbd-clie

[Qemu-block] [PATCH 3/6] tests: pull qemu-nbd iotest helpers into common.nbd file

2018-11-16 Thread Daniel P . Berrangé
The helpers for starting/stopping qemu-nbd in 058 will be useful in other test cases, so move them into a common.nbd file. Signed-off-by: Daniel P. Berrangé --- tests/qemu-iotests/058| 47 + tests/qemu-iotests/common.nbd | 56

[Qemu-block] [PATCH 5/6] tests: add iotests helpers for dealing with TLS certificates

2018-11-16 Thread Daniel P . Berrangé
Add helpers to common.tls for creating TLS certificates for a CA, server and client. Signed-off-by: Daniel P. Berrangé --- tests/qemu-iotests/common.tls | 139 ++ 1 file changed, 139 insertions(+) create mode 100644 tests/qemu-iotests/common.tls diff --git a

  1   2   3   4   5   6   7   8   9   10   >