* [PULL 1/5] crypto/rsakey-builtin.c.inc: Clean up two error paths
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
@ 2023-11-07 19:08 ` Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 2/5] io: Stop appending -listen to net listeners Daniel P. Berrangé
` (4 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2023-11-07 19:08 UTC (permalink / raw)
To: qemu-devel
Cc: Cleber Rosa, John Snow, Daniel P. Berrangé, Gerd Hoffmann,
Marc-André Lureau, Markus Armbruster
From: Markus Armbruster <armbru@redhat.com>
When qcrypto_builtin_rsa_public_key_parse() is about to fail, but no
error has been set, it makes one up. Actually, there's just one way
to fail without setting an error. Set it there instead.
Same for qcrypto_builtin_rsa_private_key_parse().
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
crypto/rsakey-builtin.c.inc | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/crypto/rsakey-builtin.c.inc b/crypto/rsakey-builtin.c.inc
index aeeacc8f9b..46cc7afe87 100644
--- a/crypto/rsakey-builtin.c.inc
+++ b/crypto/rsakey-builtin.c.inc
@@ -88,15 +88,13 @@ static QCryptoAkCipherRSAKey *qcrypto_builtin_rsa_public_key_parse(
goto error;
}
if (seq_length != 0) {
+ error_setg(errp, "Invalid RSA public key");
goto error;
}
return rsa;
error:
- if (errp && !*errp) {
- error_setg(errp, "Invalid RSA public key");
- }
qcrypto_akcipher_rsakey_free(rsa);
return NULL;
}
@@ -169,15 +167,13 @@ static QCryptoAkCipherRSAKey *qcrypto_builtin_rsa_private_key_parse(
return rsa;
}
if (seq_length != 0) {
+ error_setg(errp, "Invalid RSA private key");
goto error;
}
return rsa;
error:
- if (errp && !*errp) {
- error_setg(errp, "Invalid RSA private key");
- }
qcrypto_akcipher_rsakey_free(rsa);
return NULL;
}
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PULL 2/5] io: Stop appending -listen to net listeners
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 1/5] crypto/rsakey-builtin.c.inc: Clean up two error paths Daniel P. Berrangé
@ 2023-11-07 19:08 ` Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 3/5] audio: don't abort on f32 audio format in wav backend Daniel P. Berrangé
` (3 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2023-11-07 19:08 UTC (permalink / raw)
To: qemu-devel
Cc: Cleber Rosa, John Snow, Daniel P. Berrangé, Gerd Hoffmann,
Marc-André Lureau, Fabiano Rosas
From: Fabiano Rosas <farosas@suse.de>
All callers of qio_net_listener_set_name() already add some sort of
"listen" or "listener" suffix.
For intance, we currently have "migration-socket-listener-listen" and
"vnc-listen-listen" as ioc names.
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
io/net-listener.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/io/net-listener.c b/io/net-listener.c
index 1c984d69c6..47405965a6 100644
--- a/io/net-listener.c
+++ b/io/net-listener.c
@@ -109,9 +109,7 @@ void qio_net_listener_add(QIONetListener *listener,
QIOChannelSocket *sioc)
{
if (listener->name) {
- char *name = g_strdup_printf("%s-listen", listener->name);
- qio_channel_set_name(QIO_CHANNEL(sioc), name);
- g_free(name);
+ qio_channel_set_name(QIO_CHANNEL(sioc), listener->name);
}
listener->sioc = g_renew(QIOChannelSocket *, listener->sioc,
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PULL 3/5] audio: don't abort on f32 audio format in wav backend
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 1/5] crypto/rsakey-builtin.c.inc: Clean up two error paths Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 2/5] io: Stop appending -listen to net listeners Daniel P. Berrangé
@ 2023-11-07 19:08 ` Daniel P. Berrangé
2023-11-07 19:08 ` [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address Daniel P. Berrangé
` (2 subsequent siblings)
5 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2023-11-07 19:08 UTC (permalink / raw)
To: qemu-devel
Cc: Cleber Rosa, John Snow, Daniel P. Berrangé, Gerd Hoffmann,
Marc-André Lureau
Print a debug message as is done for other unsupported audio formats
to give the user the chance to understand their mistake.
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
audio/wavaudio.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/audio/wavaudio.c b/audio/wavaudio.c
index ea20fed0cc..a8798a1c42 100644
--- a/audio/wavaudio.c
+++ b/audio/wavaudio.c
@@ -97,6 +97,10 @@ static int wav_init_out(HWVoiceOut *hw, struct audsettings *as,
dolog ("WAVE files can not handle 32bit formats\n");
return -1;
+ case AUDIO_FORMAT_F32:
+ dolog("WAVE files can not handle float formats\n");
+ return -1;
+
default:
abort();
}
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
` (2 preceding siblings ...)
2023-11-07 19:08 ` [PULL 3/5] audio: don't abort on f32 audio format in wav backend Daniel P. Berrangé
@ 2023-11-07 19:08 ` Daniel P. Berrangé
2023-11-07 20:16 ` Philippe Mathieu-Daudé
2023-11-07 19:08 ` [PULL 5/5] scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd Daniel P. Berrangé
2023-11-08 14:20 ` [PULL 0/5] Misc fixes patches Stefan Hajnoczi
5 siblings, 1 reply; 8+ messages in thread
From: Daniel P. Berrangé @ 2023-11-07 19:08 UTC (permalink / raw)
To: qemu-devel
Cc: Cleber Rosa, John Snow, Daniel P. Berrangé, Gerd Hoffmann,
Marc-André Lureau
Effective immediately, the libvirt project has moved its list off
libvir-list@redhat.com, to devel@lists.libvirt.org
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
MAINTAINERS | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/MAINTAINERS b/MAINTAINERS
index b86ea7f75a..751860e064 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -4062,7 +4062,7 @@ F: gitdm.config
F: contrib/gitdm/*
Incompatible changes
-R: libvir-list@redhat.com
+R: devel@lists.libvirt.org
F: docs/about/deprecated.rst
Build System
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address
2023-11-07 19:08 ` [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address Daniel P. Berrangé
@ 2023-11-07 20:16 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 8+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-11-07 20:16 UTC (permalink / raw)
To: Daniel P. Berrangé, qemu-devel
Cc: Cleber Rosa, John Snow, Gerd Hoffmann, Marc-André Lureau
On 7/11/23 20:08, Daniel P. Berrangé wrote:
> Effective immediately, the libvirt project has moved its list off
> libvir-list@redhat.com, to devel@lists.libvirt.org
>
> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
> ---
> MAINTAINERS | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
FYI I already sent this one:
https://lore.kernel.org/qemu-devel/20231106110336.358-60-philmd@linaro.org/
I hope it gets merged smoothly.
Regards,
Phil.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PULL 5/5] scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
` (3 preceding siblings ...)
2023-11-07 19:08 ` [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address Daniel P. Berrangé
@ 2023-11-07 19:08 ` Daniel P. Berrangé
2023-11-08 14:20 ` [PULL 0/5] Misc fixes patches Stefan Hajnoczi
5 siblings, 0 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2023-11-07 19:08 UTC (permalink / raw)
To: qemu-devel
Cc: Cleber Rosa, John Snow, Daniel P. Berrangé, Gerd Hoffmann,
Marc-André Lureau, Zhao Liu, Vladimir Sementsov-Ogievskiy
From: Zhao Liu <zhao1.liu@intel.com>
When run this script, there's the error:
python3 scripts/cpu-x86-uarch-abi.py /tmp/qmp
Traceback (most recent call last):
File "/path-to-qemu/qemu/scripts/cpu-x86-uarch-abi.py", line 96, in <module>
cpu = shell.cmd("query-cpu-model-expansion",
TypeError: QEMUMonitorProtocol.cmd() takes 2 positional arguments but 3 were given
Commit 7f521b023bc28 ("scripts/cpu-x86-uarch-abi.py: use .command()
instead of .cmd()") converts the the original .cmd() to .command()
(which was later renamed to "cmd" to replace the original one).
But the new .cmd() only accepts typing.Mapping as the parameter instead
of typing.Dict (see _qmp.execute()).
Change the paremeters of "query-cpu-model-expansion" to typing.Mapping
format to fix this error.
Fixes: 7f521b023bc28 ("scripts/cpu-x86-uarch-abi.py: use .command() instead of .cmd()")
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
scripts/cpu-x86-uarch-abi.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/cpu-x86-uarch-abi.py b/scripts/cpu-x86-uarch-abi.py
index f6baeeff24..052ddd7514 100644
--- a/scripts/cpu-x86-uarch-abi.py
+++ b/scripts/cpu-x86-uarch-abi.py
@@ -94,8 +94,8 @@
for name in sorted(names):
cpu = shell.cmd("query-cpu-model-expansion",
- { "type": "static",
- "model": { "name": name }})
+ type="static",
+ model={ "name": name })
got = {}
for (feature, present) in cpu["model"]["props"].items():
--
2.41.0
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PULL 0/5] Misc fixes patches
2023-11-07 19:08 [PULL 0/5] Misc fixes patches Daniel P. Berrangé
` (4 preceding siblings ...)
2023-11-07 19:08 ` [PULL 5/5] scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd Daniel P. Berrangé
@ 2023-11-08 14:20 ` Stefan Hajnoczi
5 siblings, 0 replies; 8+ messages in thread
From: Stefan Hajnoczi @ 2023-11-08 14:20 UTC (permalink / raw)
To: Daniel P. Berrangé
Cc: qemu-devel, Cleber Rosa, John Snow, Daniel P. Berrangé,
Gerd Hoffmann, Marc-André Lureau
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread