Misc fixes patches
Subsystems (2)
The following changes since commit 462ad017ed76889d46696a3581e1b52343f9b683:
Merge tag 'pixman-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging (2023-11-07 19:00:03 +0800)
are available in the Git repository at:
https://gitlab.com/berrange/qemu tags/misc-fixes-pull-request
for you to fetch changes up to 3e7ebf58e808afb422e5000bbf77dc4aa88dd6e6:
scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd (2023-11-07 16:45:18 +0000)
----------------------------------------------------------------
* Print error with f32 audio format in wav backend instead of abort
* Drop redundant listener name suffix
* Update libvirt mailing list address
* Cleanup RSA key error paths
* Fix CPU uarch ABI script QMP command calling
----------------------------------------------------------------
Daniel P. Berrangé (2):
audio: don't abort on f32 audio format in wav backend
MAINTAINERS: update libvirt devel mailing list address
Fabiano Rosas (1):
io: Stop appending -listen to net listeners
Markus Armbruster (1):
crypto/rsakey-builtin.c.inc: Clean up two error paths
Zhao Liu (1):
scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd
MAINTAINERS | 2 +- audio/wavaudio.c | 4 ++++ crypto/rsakey-builtin.c.inc | 8 ++------ io/net-listener.c | 4 +--- scripts/cpu-x86-uarch-abi.py | 4 ++-- 5 files changed, 10 insertions(+), 12 deletions(-)
Signature · 1 line
2.41.0
[PULL 5/5] scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd
From: Zhao Liu <[email protected]>
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.
--- scripts/cpu-x86-uarch-abi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/cpu-x86-uarch-abi.py +2 -2
@@ -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():
Signature · 1 line
2.41.0
[PULL 4/5] MAINTAINERS: update libvirt devel mailing list address
In reply to Daniel P. BerrangéEffective immediately, the libvirt project has moved its list off [email protected], to [email protected]
--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
MAINTAINERS +1 -1
@@ -4062,7 +4062,7 @@ F: gitdm.config F: contrib/gitdm/* Incompatible changes -R: [email protected] +R: [email protected] F: docs/about/deprecated.rst Build System
Signature · 1 line
2.41.0
Re: [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address
Quoted 7 lines · Daniel P. Berrangé
Effective immediately, the libvirt project has moved its list off [email protected], to [email protected]
Signed-off-by Daniel P. Berrangé <[email protected]>--- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
FYI I already sent this one:
https://lore.kernel.org/qemu-devel/[email protected]/
I hope it gets merged smoothly.
Regards,
Phil.
[PULL 3/5] audio: don't abort on f32 audio format in wav backend
In reply to Daniel P. BerrangéPrint a debug message as is done for other unsupported audio formats to give the user the chance to understand their mistake.
--- audio/wavaudio.c | 4 ++++ 1 file changed, 4 insertions(+)
audio/wavaudio.c +4 -0
@@ -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 (); }
Signature · 1 line
2.41.0
[PULL 1/5] crypto/rsakey-builtin.c.inc: Clean up two error paths
In reply to Daniel P. BerrangéFrom: Markus Armbruster <[email protected]>
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().
--- crypto/rsakey-builtin.c.inc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-)
crypto/rsakey-builtin.c.inc +2 -6
@@ -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; }
Signature · 1 line
2.41.0
[PULL 2/5] io: Stop appending -listen to net listeners
In reply to Daniel P. BerrangéFrom: Fabiano Rosas <[email protected]>
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.
--- io/net-listener.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
io/net-listener.c +1 -3
@@ -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,
Signature · 1 line
2.41.0
Stefan Hajnoczi
AppliedApplied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/8.2 for any user-visible changes.