[PATCH for-9.1 0/9] Switch to glib URI parsing code

2024-03-28 Thread Thomas Huth
. By switching to these parsing functions, we can finally drop our own URI parsing code in util/uri.c. NB: We also need to update some of the custom runners in our CI environment first (since they still use Ubuntu 20.04). Thomas Huth (9): tests: Remove Ubuntu 20.04 container tests/lcitool

[PATCH for-9.1 4/9] Bump minimum glib version to v2.66

2024-03-28 Thread Thomas Huth
which will allow further clean-ups in the following patches. Signed-off-by: Thomas Huth --- meson.build | 16 +--- include/glib-compat.h| 27 ++- qga/commands-posix-ssh.c | 4 ++-- 3 files changed, 5 insertions(+), 42 deletions(-) diff --git a

[PATCH for-9.1 2/9] tests/lcitool/libvirt-ci: Update to the latest master branch

2024-03-28 Thread Thomas Huth
We need the latest fixes for the lcitool to be able to properly update our CentOS docker file to CentOS Stream 9. Signed-off-by: Thomas Huth --- tests/lcitool/libvirt-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci index

[PATCH for-9.1 5/9] block/gluster: Use URI parsing code from glib

2024-03-28 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Cc: integrat...@gluster.org Signed-off-by: Thomas Huth --- block/gluster.c | 63 + 1 file

[PATCH for-9.1 3/9] tests: Update our CI to use CentOS Stream 9 instead of 8

2024-03-28 Thread Thomas Huth
RHEL 9 (and thus also the derivatives) are available since two years now, so according to QEMU's support policy, we can drop the active support for the previous major version 8 now. Thus upgrade our CentOS Stream container to major version 9 now. Signed-off-by: Thomas Huth --- .gitlab

[PATCH for-9.1 6/9] block/nbd: Use URI parsing code from glib

2024-03-28 Thread Thomas Huth
. Signed-off-by: Thomas Huth --- block/nbd.c | 66 ++--- 1 file changed, 38 insertions(+), 28 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index ef05f7cdfd..95b507f872 100644 --- a/block/nbd.c +++ b/block/nbd.c @@ -31,7 +31,6 @@ #include "

[PATCH for-9.1 1/9] tests: Remove Ubuntu 20.04 container

2024-03-28 Thread Thomas Huth
Since Ubuntu 22.04 is now available since two years, we can stop actively supporting the previous LTS version of Ubuntu now. Signed-off-by: Thomas Huth --- tests/docker/dockerfiles/ubuntu2004.docker | 157 - tests/lcitool/refresh | 1 - 2 files changed

[PATCH for-9.1 7/9] block/nfs: Use URI parsing code from glib

2024-03-28 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Signed-off-by: Thomas Huth --- block/nfs.c | 102 ++-- 1 file changed, 52 insertions(+), 50

[PATCH for-9.1 8/9] block/ssh: Use URI parsing code from glib

2024-03-28 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Signed-off-by: Thomas Huth --- block/ssh.c | 69 +++-- 1 file changed, 40 insertions(+), 29

Re: [PATCH-for-9.1 v2 2/3] migration: Remove RDMA protocol handling

2024-03-28 Thread Thomas Huth
On 28/03/2024 16.01, Peter Xu wrote: On Thu, Mar 28, 2024 at 11:18:04AM -0300, Fabiano Rosas wrote: Philippe Mathieu-Daudé writes: The whole RDMA subsystem was deprecated in commit e9a54265f5 ("hw/rdma: Deprecate the pvrdma device and the rdma subsystem") released in v8.2. Remove: - RDMA h

Re: [PATCH for-9.1 6/9] block/nbd: Use URI parsing code from glib

2024-03-28 Thread Thomas Huth
On 28/03/2024 15.59, Daniel P. Berrangé wrote: On Thu, Mar 28, 2024 at 09:54:49AM -0500, Eric Blake wrote: On Thu, Mar 28, 2024 at 03:06:03PM +0100, Thomas Huth wrote: Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able

Re: [PATCH-for-9.1 v2 1/3] hw/rdma: Remove pvrdma device and rdmacm-mux helper

2024-03-28 Thread Thomas Huth
m-mux tool from contrib/ Cc: Yuval Shaia Cc: Marcel Apfelbaum Signed-off-by: Philippe Mathieu-Daudé --- Reviewed-by: Thomas Huth

Re: [PATCH-for-9.1 v2 3/3] block/gluster: Remove RDMA protocol handling

2024-03-28 Thread Thomas Huth
docs/system/qemu-block-drivers.rst.inc | 1 - block/gluster.c| 39 -- 3 files changed, 2 insertions(+), 42 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 05/12] system/qtest: Replace sprintf() by g_string_append_printf()

2024-04-10 Thread Thomas Huth
rintf(&enc[i * 2], "%02x", data[i]); ^ 1 warning generated. Signed-off-by: Philippe Mathieu-Daudé --- system/qtest.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH for-9.1 4/9] Bump minimum glib version to v2.66

2024-04-12 Thread Thomas Huth
On 12/04/2024 12.16, Paolo Bonzini wrote: On Thu, Mar 28, 2024 at 3:06 PM Thomas Huth wrote: Now that we dropped support for CentOS 8 and Ubuntu 20.04, we can look into bumping the glib version to a new minimum for further clean-ups. According to repology.org, available versions are

[PATCH v2 01/13] tests: Remove Ubuntu 20.04 container

2024-04-12 Thread Thomas Huth
Since Ubuntu 22.04 is now available since two years, we can stop actively supporting the previous LTS version of Ubuntu now. Signed-off-by: Thomas Huth --- tests/docker/dockerfiles/ubuntu2004.docker | 157 - tests/lcitool/refresh | 1 - 2 files changed

[PATCH v2 07/13] Bump minimum glib version to v2.66

2024-04-12 Thread Thomas Huth
which will allow further clean-ups in the following patches. Signed-off-by: Thomas Huth --- meson.build | 16 +--- include/glib-compat.h| 27 ++- qga/commands-posix-ssh.c | 4 ++-- 3 files changed, 5 insertions(+), 42 deletions(-) diff --git a

[PATCH v2 02/13] tests/lcitool/libvirt-ci: Update to the latest master branch

2024-04-12 Thread Thomas Huth
We need the latest fixes for the lcitool to be able to properly update our CentOS docker file to CentOS Stream 9. Signed-off-by: Thomas Huth --- tests/lcitool/libvirt-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lcitool/libvirt-ci b/tests/lcitool/libvirt-ci index

[PATCH v2 00/13] Drop old distros, bump glib and switch to glib URI parsing code

2024-04-12 Thread Thomas Huth
ch to drop more glib compatibility hunks - Use g_autoptr() in the URI patches for simplification - Don't allow port 0 in the URIs Paolo Bonzini (1): ci: move external build environment setups to CentOS Stream 9 Thomas Huth (12): tests: Remove Ubuntu 20.04 container tests/lcitool/libvirt-ci:

[PATCH v2 09/13] block/gluster: Use URI parsing code from glib

2024-04-12 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Signed-off-by: Thomas Huth --- block/gluster.c | 71 - 1 file changed, 35 insertions(+), 36

[PATCH v2 03/13] tests/docker/dockerfiles: Run lcitool-refresh after the lcitool update

2024-04-12 Thread Thomas Huth
This update adds the removing of the EXTERNALLY-MANAGED marker files that has been added to the lcitool recently. Signed-off-by: Thomas Huth --- tests/docker/dockerfiles/alpine.docker| 3 ++- tests/docker/dockerfiles/centos8.docker | 1 + tests/docker/dockerfiles

[PATCH v2 04/13] tests: Update our CI to use CentOS Stream 9 instead of 8

2024-04-12 Thread Thomas Huth
RHEL 9 (and thus also the derivatives) are available since two years now, so according to QEMU's support policy, we can drop the active support for the previous major version 8 now. Thus upgrade our CentOS Stream container to major version 9 now. Signed-off-by: Thomas Huth --- .gitlab

[PATCH v2 13/13] util/uri: Remove the old URI parsing code

2024-04-12 Thread Thomas Huth
Now that we switched all consumers of the URI code to use the URI parsing functions from glib instead, we can remove our internal URI parsing code since it is not used anymore. Signed-off-by: Thomas Huth --- include/qemu/uri.h | 99 --- util/uri.c | 1466

[PATCH v2 05/13] .travis.yml: Update the jobs to Ubuntu 22.04

2024-04-12 Thread Thomas Huth
, we can drop the entries from the individual jobs and use the global setting again. Signed-off-by: Thomas Huth --- .travis.yml | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a3ae76a7c..56a2a01e14 100644 --- a/.travis.yml +++ b

[PATCH v2 11/13] block/nfs: Use URI parsing code from glib

2024-04-12 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Signed-off-by: Thomas Huth --- block/nfs.c | 110 ++-- 1 file changed, 54 insertions(+), 56

[PATCH v2 06/13] ci: move external build environment setups to CentOS Stream 9

2024-04-12 Thread Thomas Huth
igned-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-ID: <20240412103708.27650-1-pbonz...@redhat.com> Signed-off-by: Thomas Huth --- .../stream/{8 => 9}/build-environment.yml | 31 ++--- .../stream/{8 => 9}/x86_64/configure | 4 +- .../stream/{8 => 9}

[PATCH v2 08/13] Remove glib compatibility code that is not required anymore

2024-04-12 Thread Thomas Huth
Now that we bumped the minumum glib version to 2.66, we can drop the old code. Suggested-by: Paolo Bonzini Signed-off-by: Thomas Huth --- qga/commands-posix-ssh.c | 8 util/error-report.c | 10 -- 2 files changed, 18 deletions(-) diff --git a/qga/commands-posix-ssh.c b

[PATCH v2 10/13] block/nbd: Use URI parsing code from glib

2024-04-12 Thread Thomas Huth
. Reviewed-by: Richard W.M. Jones Signed-off-by: Thomas Huth --- block/nbd.c | 76 ++--- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index ef05f7cdfd..589d28af83 100644 --- a/block/nbd.c +++ b/block/nbd.c

[PATCH v2 12/13] block/ssh: Use URI parsing code from glib

2024-04-12 Thread Thomas Huth
Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Reviewed-by: Richard W.M. Jones Signed-off-by: Thomas Huth --- block/ssh.c | 75 - 1 file

Re: [PATCH v2 09/13] block/gluster: Use URI parsing code from glib

2024-04-17 Thread Thomas Huth
On 12/04/2024 16.40, Eric Blake wrote: On Fri, Apr 12, 2024 at 03:24:11PM +0200, Thomas Huth wrote: Since version 2.66, glib has useful URI parsing functions, too. Use those instead of the QEMU-internal ones to be finally able to get rid of the latter. Signed-off-by: Thomas Huth --- block

Re: [PATCH v2 04/13] tests: Update our CI to use CentOS Stream 9 instead of 8

2024-04-17 Thread Thomas Huth
On 17/04/2024 18.15, Daniel P. Berrangé wrote: On Fri, Apr 12, 2024 at 03:24:06PM +0200, Thomas Huth wrote: RHEL 9 (and thus also the derivatives) are available since two years now, so according to QEMU's support policy, we can drop the active support for the previous major version 8 now.

[PATCH v3 01/13] tests: Remove Ubuntu 20.04 container

2024-04-18 Thread Thomas Huth
Since Ubuntu 22.04 is now available since two years, we can stop actively supporting the previous LTS version of Ubuntu now. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth --- tests/docker/dockerfiles/ubuntu2004.docker | 157 - tests/lcitool/refresh

[PATCH v3 00/13] Drop old distros, bump glib and switch to glib URI parsing code

2024-04-18 Thread Thomas Huth
es for simplification - Don't allow port 0 in the URIs Paolo Bonzini (1): ci: move external build environment setups to CentOS Stream 9 Thomas Huth (12): tests: Remove Ubuntu 20.04 container tests/lcitool/libvirt-ci: Update to the latest master branch tests/docker/dockerfiles: Run

[PATCH v3 09/13] block/gluster: Use URI parsing code from glib

2024-04-18 Thread Thomas Huth
g_uri_get_path() as input). Reviewed-by: Eric Blake Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- block/gluster.c | 71 - 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/block/gluster.c b/block/gluster.c index cc74af06dc

[PATCH v3 07/13] Bump minimum glib version to v2.66

2024-04-18 Thread Thomas Huth
which will allow further clean-ups in the following patches. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- meson.build | 16 +--- include/glib-compat.h| 27 ++- qga/commands-posix-ssh.c | 4 ++-- 3 files changed, 5 insertions

[PATCH v3 05/13] .travis.yml: Update the jobs to Ubuntu 22.04

2024-04-18 Thread Thomas Huth
, we can drop the entries from the individual jobs and use the global setting again. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- .travis.yml | 13 +++-- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a3ae76a7c..56a2a01e14

[PATCH v3 03/13] tests/docker/dockerfiles: Run lcitool-refresh after the lcitool update

2024-04-18 Thread Thomas Huth
recious installation environment. Our containers are disposable though, so a venv has no benefit. Removing the 'EXTERNALLY-MANAGED' allows the historical arbitrary use of 'pip' outside a venv. lcitool just does this unconditionally given the containers are not precious." Reviewed-

[PATCH v3 13/13] util/uri: Remove the old URI parsing code

2024-04-18 Thread Thomas Huth
Now that we switched all consumers of the URI code to use the URI parsing functions from glib instead, we can remove our internal URI parsing code since it is not used anymore. Reviewed-by: Eric Blake Signed-off-by: Thomas Huth --- include/qemu/uri.h | 99 --- util/uri.c | 1466

[PATCH v3 02/13] tests/lcitool/libvirt-ci: Update to the latest master branch

2024-04-18 Thread Thomas Huth
We need the latest fixes for the lcitool to be able to properly update our CentOS docker file to CentOS Stream 9. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- tests/lcitool/libvirt-ci | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/lcitool/libvirt-ci

[PATCH v3 11/13] block/nfs: Use URI parsing code from glib

2024-04-18 Thread Thomas Huth
; since the latter rather sounds like the users were breaking a law here. Reviewed-by: Eric Blake Signed-off-by: Thomas Huth --- block/nfs.c | 110 ++-- 1 file changed, 54 insertions(+), 56 deletions(-) diff --git a/block/nfs.c b/block/nfs.c ind

[PATCH v3 10/13] block/nbd: Use URI parsing code from glib

2024-04-18 Thread Thomas Huth
. Reviewed-by: Richard W.M. Jones Reviewed-by: Eric Blake Signed-off-by: Thomas Huth --- block/nbd.c | 76 ++--- 1 file changed, 37 insertions(+), 39 deletions(-) diff --git a/block/nbd.c b/block/nbd.c index ef05f7cdfd..589d28af83 100644 --- a/block

[PATCH v3 04/13] tests: Update our CI to use CentOS Stream 9 instead of 8

2024-04-18 Thread Thomas Huth
dates-are-coming-for-centos-stream-8-and-centos-linux-7/ "After May 31, 2024, CentOS Stream 8 will be archived and no further updates will be provided." Thus upgrade our CentOS Stream container to major version 9 now. Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --

[PATCH v3 12/13] block/ssh: Use URI parsing code from glib

2024-04-18 Thread Thomas Huth
os or other mistakes. Reviewed-by: Richard W.M. Jones Signed-off-by: Thomas Huth --- block/ssh.c | 75 - 1 file changed, 40 insertions(+), 35 deletions(-) diff --git a/block/ssh.c b/block/ssh.c index 2748253d4a..a88171d4b5 100644 --- a/block/

[PATCH v3 08/13] Remove glib compatibility code that is not required anymore

2024-04-18 Thread Thomas Huth
Now that we bumped the minumum glib version to 2.66, we can drop the old code. Suggested-by: Paolo Bonzini Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- qga/commands-posix-ssh.c | 8 util/error-report.c | 10 -- 2 files changed, 18 deletions(-) diff

[PATCH v3 06/13] ci: move external build environment setups to CentOS Stream 9

2024-04-18 Thread Thomas Huth
igned-off-by: Paolo Bonzini Reviewed-by: Thomas Huth Message-ID: <20240412103708.27650-1-pbonz...@redhat.com> Reviewed-by: Daniel P. Berrangé Signed-off-by: Thomas Huth --- .../stream/{8 => 9}/build-environment.yml | 31 ++--- .../stream/{8 => 9}/x86_64/config

Re: [PULL 1/1] hw/ufs: Fix buffer overflow bug

2024-04-29 Thread Thomas Huth
On 30/04/2024 02.17, Richard Henderson wrote: On 4/28/24 20:25, Jeuk Kim wrote: From: Jeuk Kim It fixes the buffer overflow vulnerability in the ufs device. The bug was detected by sanitizers. You can reproduce it by: cat << EOF |\ qemu-system-x86_64 \ -display none -machine accel=qtest -m 5

Re: [PULL 1/1] hw/ufs: Fix buffer overflow bug

2024-04-29 Thread Thomas Huth
On 30/04/2024 06.32, Thomas Huth wrote: On 30/04/2024 02.17, Richard Henderson wrote: On 4/28/24 20:25, Jeuk Kim wrote: From: Jeuk Kim It fixes the buffer overflow vulnerability in the ufs device. The bug was detected by sanitizers. You can reproduce it by: cat << EOF |\ qemu-system-

Re: [PATCH v4 11/12] tests/qtest/vhost-user-blk-test: use memory-backend-shm

2024-05-09 Thread Thomas Huth
shm,id=mem,size=256M,share=on " " -M memory-backend=mem -m 256M "); for (i = 0; i < vus_instances; i++) { Acked-by: Thomas Huth

Re: [PATCH v4 12/12] tests/qtest/vhost-user-test: add a test case for memory-backend-shm

2024-05-09 Thread Thomas Huth
test_read_guest_mem, &opts); +opts.before = vhost_user_test_setup_shm; +qos_add_test("vhost-user/read-guest-mem/shm", + "virtio-net", + test_read_guest_mem, &opts); + if (qemu_memfd_check(MFD_ALLOW_SEALING)) { opts.before = vhost_user_test_setup_memfd; qos_add_test("vhost-user/read-guest-mem/memfd", Acked-by: Thomas Huth

Re: [PATCH v7 4/4] tests/qtest: Introduce tests for UFS

2023-07-26 Thread Thomas Huth
Could you maybe use "qtest-ufs.XX" or something more prominent instead? ... in case the files don't get deleted correctly, it's easier to know at which test to look at later. With that change: Acked-by: Thomas Huth

Re: How to tame CI?

2023-07-26 Thread Thomas Huth
On 26/07/2023 15.00, Peter Maydell wrote: On Wed, 26 Jul 2023 at 13:06, Juan Quintela wrote: To make things easier, this is the part that show how it breaks (this is the gcov test): 357/423 qemu:block / io-qcow2-copy-before-write ERROR 6.38s exit status

[PATCH] tests/qemu-iotests/183: Fix timeout issue when running tests in parallel

2023-08-14 Thread Thomas Huth
looking for "-j..." in the MAKEFLAGS environment variable. Signed-off-by: Thomas Huth --- PS: Yeah, I know, this is a little bit ugly ... if someone has a better idea how to fix this, please let me know. tests/qemu-iotests/183 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

Re: [POC 2/2] add test exposing AHCI reset issue

2023-08-24 Thread Thomas Huth
On 24/08/2023 15.38, Fiona Ebner wrote: Fails without the previous commit "hw/ide: reset: cancel async DMA operation before reseting state". I haven't ever written such a test before, but I wanted something to expose the problem more easily. It hardcodes the behavior that the pending write actua

Re: [PATCH 2/2] tests/qtest/test-hmp: Fix migrate_set_parameter xbzrle-cache-size test

2023-08-25 Thread Thomas Huth
mit 1", "migrate_set_parameter max-bandwidth 1", "netdev_add user,id=net1", Reviewed-by: Thomas Huth

Re: [PATCH 1/2] docs tests: Fix use of migrate_set_parameter

2023-08-25 Thread Thomas Huth
uster --- Reviewed-by: Thomas Huth

[PATCH] qemu-options.hx: Rephrase the descriptions of the -hd* and -cdrom options

2023-08-29 Thread Thomas Huth
The current description says that these options will create a device on the IDE bus, which is only true on x86. So rephrase these sentences a little bit to speak of "default bus" instead. Signed-off-by: Thomas Huth --- qemu-options.hx | 20 1 file changed, 12

Re: [PATCH] qemu-options.hx: Rephrase the descriptions of the -hd* and -cdrom options

2023-08-29 Thread Thomas Huth
On 29/08/2023 18.39, Alex Bennée wrote: Thomas Huth writes: The current description says that these options will create a device on the IDE bus, which is only true on x86. So rephrase these sentences a little bit to speak of "default bus" instead. Signed-off-by: Thomas Huth

Re: [PATCH v2 12/22] hw/m68k: Clean up local variable shadowing

2023-09-26 Thread Thomas Huth
int i; \ ^ hw/m68k/virt.c:130:9: note: previous declaration is here int i; ^ Signed-off-by: Philippe Mathieu-Daudé --- hw/m68k/bootinfo.h | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v3 09/16] semihosting: Clean up global variable shadowing

2023-10-04 Thread Thomas Huth
On 04/10/2023 14.16, Alex Bennée wrote: Philippe Mathieu-Daudé writes: Fix: semihosting/config.c:134:49: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] int qemu_semihosting_config_options(const char *optarg)

Re: [PATCH 07/21] qapi: Inline QERR_INVALID_PARAMETER_TYPE definition (constant param)

2023-10-04 Thread Thomas Huth
ot;, "dict"); +error_setg(errp, + "Invalid parameter type for 'props', expected: dict"); return; } } Acked-by: Thomas Huth

Re: [PATCH v3 01/16] hw/audio/soundhw: Clean up global variable shadowing

2023-10-06 Thread Thomas Huth
+++--- 2 files changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH v3 03/16] net/net: Clean up global variable shadowing

2023-10-06 Thread Thomas Huth
parse(QemuOptsList *opts_list, const char *optarg) +void net_client_parse(QemuOptsList *opts_list, const char *optstr) { -if (!qemu_opts_parse_noisily(opts_list, optarg, true)) { + if (!qemu_opts_parse_noisily(opts_list, optstr, true)) { exit(1); } } Reviewed-by: Thomas Huth

Re: [PATCH 1/4] tests/libqtest: Introduce qtest_get_arch_bits()

2023-10-10 Thread Thomas Huth
On 10/10/2023 09.49, Philippe Mathieu-Daudé wrote: Add a method to return the architecture bits (currently 8/32/64). Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/libqtest.h | 8 tests/qtest/libqtest.c | 21 + 2 files changed, 29 insertions(+) diff --g

Re: [PATCH 2/4] tests/qtest: Use qtest_get_arch_bits()

2023-10-10 Thread Thomas Huth
On 10/10/2023 09.49, Philippe Mathieu-Daudé wrote: Some short patch description, please! Why is this necessary/useful? (I think I know, but other might not, and it is also important for the history) Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/arm-cpu-features.c | 49 +++

Re: [PATCH 3/4] tests/libqtest: Introduce qtest_get_base_arch()

2023-10-10 Thread Thomas Huth
On 10/10/2023 10.42, Philippe Mathieu-Daudé wrote: On 10/10/23 09:49, Philippe Mathieu-Daudé wrote: While qtest_get_arch() returns the target architecture name, such "i386" or "x86_64", qtest_get_base_arch() return the "base" (or real underlying) architecture, in this example that is "x86". Sig

Re: [PATCH 4/4] tests/qtest: Use qtest_get_base_arch()

2023-10-10 Thread Thomas Huth
On 10/10/2023 09.49, Philippe Mathieu-Daudé wrote: Additionally use qtest_get_arch_bits() when relevant. Signed-off-by: Philippe Mathieu-Daudé --- tests/qtest/ahci-test.c | 5 ++--- tests/qtest/am53c974-test.c | 4 +--- tests/qtest/bios-tables-test.c| 6 +++--- tests

Re: [PATCH 01/10] system/qtest: Clean up global variable shadowing in qtest_server_init()

2023-10-12 Thread Thomas Huth
object_unparent(qobj); } object_unref(OBJECT(chr)); -object_unref(qtest); +object_unref(qobj); } Reviewed-by: Thomas Huth

Re: [PATCH 03/10] tests/virtio-scsi: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
6,7 +156,7 @@ static QVirtioSCSIQueues *qvirtio_scsi_init(QVirtioDevice *dev) return vs; } -static void hotplug(void *obj, void *data, QGuestAllocator *alloc) +static void hotplug(void *obj, void *data, QGuestAllocator *t_alloc) { QTestState *qts = global_qtest; Reviewed-by: Thomas Huth

Re: [PATCH 06/10] tests/rtl8139: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
: Philippe Mathieu-Daudé --- tests/qtest/rtl8139-test.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 07/10] tests/npcm7xx_adc: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
est.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH 08/10] tests/aio: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
(EventNotifier *n) Reviewed-by: Thomas Huth

Re: [PATCH 09/10] tests/aio-multithread: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
On 09/10/2023 12.02, Philippe Mathieu-Daudé wrote: Rename the argument to avoid: tests/unit/test-aio-multithread.c:226:37: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] static void test_multi_co_mutex(int threads, int seconds)

Re: [PATCH 10/10] tests/coroutine: Clean up global variable shadowing

2023-10-12 Thread Thomas Huth
++-- 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Thomas Huth

Re: [PULL 00/38] Migration 20231016 patches

2023-10-17 Thread Thomas Huth
On 17/10/2023 09.24, Juan Quintela wrote: Stefan Hajnoczi wrote: On Mon, 16 Oct 2023 at 06:11, Juan Quintela wrote: The following changes since commit 63011373ad22c794a013da69663c03f1297a5c56: Merge tag 'pull-riscv-to-apply-20231012-1' of https://github.com/alistair23/qemu into staging

Re: [PATCH 07/13] RFC migration: icp/server is a mess

2023-10-19 Thread Thomas Huth
On 19/10/2023 23.15, Cédric Le Goater wrote: On 10/19/23 22:49, Greg Kurz wrote: Hi Juan, On Thu, 19 Oct 2023 21:08:25 +0200 Juan Quintela wrote: Current code does: - register pre_2_10_vmstate_dummy_icp with "icp/server" and instance    dependinfg on cpu number - for newer machines, it regis

Re: [PATCH 07/13] RFC migration: icp/server is a mess

2023-10-20 Thread Thomas Huth
On 20/10/2023 10.06, Greg Kurz wrote: On Fri, 20 Oct 2023 09:30:44 +0200 Juan Quintela wrote: Greg Kurz wrote: On Thu, 19 Oct 2023 21:08:25 +0200 Juan Quintela wrote: Current code does: - register pre_2_10_vmstate_dummy_icp with "icp/server" and instance dependinfg on cpu number - for

Re: [PATCH v2 06/13] migration: Use VMSTATE_INSTANCE_ID_ANY for s390 devices

2023-10-20 Thread Thomas Huth
On 20/10/2023 11.54, Juan Quintela wrote: Christian Borntraeger wrote: Am 20.10.23 um 11:07 schrieb Juan Quintela: Just with make check I can see that we can have more than one of this devices, so use ANY. ok 5 /s390x/device/introspect/abstract-interfaces ... Broken pipe ../../../../../mnt/cod

Re: [PATCH v2 04/13] migration: Use vmstate_register_any() for ipmi-bt*

2023-10-20 Thread Thomas Huth
On 20/10/2023 11.07, Juan Quintela wrote: Otherwise device-introspection-test fails. $ ./tests/qtest/device-introspect-test ... Broken pipe ../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:195: kill_qemu() tried to terminate QEMU process but encountered exit status 1 (expected 0) Aborte

Re: [PATCH v2 03/13] migration: Use vmstate_register_any() for isa-ide

2023-10-20 Thread Thomas Huth
On 20/10/2023 11.07, Juan Quintela wrote: Otherwise qom-test fails. ok 4 /i386/qom/x-remote qemu-system-i386: savevm_state_handler_insert: Detected duplicate SaveStateEntry: id=isa-ide, instance_id=0x0 Broken pipe ../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:195: kill_qemu() tried

Re: [PATCH v2 13/13] migration: Use vmstate_register_any() for vmware_vga

2023-10-20 Thread Thomas Huth
vga_init(&s->vga, OBJECT(dev), address_space, io, true); -vmstate_register(NULL, 0, &vmstate_vga_common, &s->vga); +vmstate_register_any(NULL, &vmstate_vga_common, &s->vga); s->new_depth = 32; } Reviewed-by: Thomas Huth

Re: [PATCH v2 04/13] migration: Use vmstate_register_any() for ipmi-bt*

2023-10-20 Thread Thomas Huth
On 20/10/2023 11.07, Juan Quintela wrote: Otherwise device-introspection-test fails. $ ./tests/qtest/device-introspect-test ... Broken pipe ../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:195: kill_qemu() tried to terminate QEMU process but encountered exit status 1 (expected 0) Aborte

Re: [PATCH v2 06/13] migration: Use VMSTATE_INSTANCE_ID_ANY for s390 devices

2023-10-20 Thread Thomas Huth
On 20/10/2023 11.07, Juan Quintela wrote: Just with make check I can see that we can have more than one of this devices, so use ANY. ok 5 /s390x/device/introspect/abstract-interfaces ... Broken pipe ../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:195: kill_qemu() tried to terminate QEM

Re: [PATCH v2 03/13] migration: Use vmstate_register_any() for isa-ide

2023-10-22 Thread Thomas Huth
On 20/10/2023 21.42, Juan Quintela wrote: Thomas Huth wrote: On 20/10/2023 11.07, Juan Quintela wrote: Otherwise qom-test fails. ok 4 /i386/qom/x-remote qemu-system-i386: savevm_state_handler_insert: Detected duplicate SaveStateEntry: id=isa-ide, instance_id=0x0 Broken pipe

[PATCH] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
apshot_fallback() and callers GRAPH_RDLOCK") Signed-off-by: Thomas Huth --- block/snapshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/snapshot.c b/block/snapshot.c index 6e16eb803a..50adf5381e 100644 --- a/block/snapshot.c +++ b/block/snapshot.c @@

Re: [PATCH] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
On 23/10/2023 17.26, Markus Armbruster wrote: Thomas Huth writes: No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code can now be successfully com

[PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-23 Thread Thomas Huth
apshot_fallback() and callers GRAPH_RDLOCK") Signed-off-by: Thomas Huth --- v2: Assign "ret" only in one spot block/snapshot.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/block/snapshot.c b/block/snapshot.c index 6e16eb803a..55974273ae 100644 ---

Re: [PATCH v2] block/snapshot: Fix compiler warning with -Wshadow=local

2023-10-24 Thread Thomas Huth
On 24/10/2023 12.37, Markus Armbruster wrote: Markus Armbruster writes: Thomas Huth writes: No need to declare a new variable in the the inner code block here, we can re-use the "ret" variable that has been declared at the beginning of the function. With this change, the code

Re: [PULL 19/39] hw/s390x/s390-skeys: Don't call register_savevm_live() during instance_init()

2023-10-26 Thread Thomas Huth
On 24/10/2023 15.12, Juan Quintela wrote: From: Thomas Huth Since the instance_init() function immediately tries to set the property to "true", the s390_skeys_set_migration_enabled() tries to register a savevm handler during instance_init(). However, instance_init() functions can

Re: [PULL 20/39] hw/s390x/s390-stattrib: Simplify handling of the "migration-enabled" property

2023-10-26 Thread Thomas Huth
On 24/10/2023 15.12, Juan Quintela wrote: From: Thomas Huth There's no need for dedicated handlers here if they don't do anything special. Acked-by: David Hildenbrand Reviewed-by: Eric Farman Acked-by: Juan Quintela Signed-off-by: Thomas Huth Signed-off-by: Juan Quintela

Re: [PATCH 00/10] tests: Clean up global variables shadowing

2023-10-27 Thread Thomas Huth
On 09/10/2023 12.02, Philippe Mathieu-Daudé wrote: Clean up global variables shadowing in tests/ in order to be able to use -Wshadow with Clang. Philippe Mathieu-Daudé (10): system/qtest: Clean up global variable shadowing in qtest_server_init() tests/throttle: Clean up global variabl

Re: [PATCH v2] tests/qemu-iotests/testenv: Use the "r2d" machine for sh4

2024-09-26 Thread Thomas Huth
On 26/09/2024 12.24, Michael Tokarev wrote: 25.09.2024 10:24, Thomas Huth wrote: Commit 0ea0538fae516f9b4 removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead t

Re: [PATCH v3 30/34] migration: remove return after g_assert_not_reached()

2024-09-24 Thread Thomas Huth
| 7 --- migration/ram.c | 2 -- 3 files changed, 10 deletions(-) Reviewed-by: Thomas Huth

Re: [PATCH for-9.1 6/9] block/nbd: Use URI parsing code from glib

2024-09-24 Thread Thomas Huth
On 23/09/2024 18.03, Eric Blake wrote: On Sun, Sep 22, 2024 at 08:51:22PM GMT, Richard W.M. Jones wrote: On Thu, Mar 28, 2024 at 02:13:42PM +, Richard W.M. Jones wrote: On Thu, Mar 28, 2024 at 03:06:03PM +0100, Thomas Huth wrote: Since version 2.66, glib has useful URI parsing functions

[PATCH] docs: Mark "gluster" support in QEMU as deprecated

2024-09-24 Thread Thomas Huth
According to https://marc.info/?l=fedora-devel-list&m=171934833215726 the GlusterFS development effectively ended. Thus mark it as deprecated in QEMU, so we can remove it in a future release if the project does not gain momentum again. Signed-off-by: Thomas Huth --- docs/about/deprecated

[PATCH v2] tests/qemu-iotests/testenv: Use the "r2d" machine for sh4

2024-09-25 Thread Thomas Huth
Commit 0ea0538fae516f9b4 removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d" machine instead to fix this problem. Signed-off-by: Thomas Huth --- v2: "r2d" only works

[PATCH v2] docs: Mark "gluster" support in QEMU as deprecated

2024-09-25 Thread Thomas Huth
According to https://marc.info/?l=fedora-devel-list&m=171934833215726 the GlusterFS development effectively ended. Thus mark it as deprecated in QEMU, so we can remove it in a future release if the project does not gain momentum again. Acked-by: Niels de Vos Signed-off-by: Thomas Huth ---

Re: [PATCH] tests/qemu-iotests/testenv: Use the "r2d" machine for sh4/sh4eb

2024-09-20 Thread Thomas Huth
On 20/09/2024 10.06, Yoshinori Sato wrote: On Wed, 18 Sep 2024 04:43:50 +0900, Thomas Huth wrote: Commit 0ea0538fae516f9b4 removed the default machine of the sh4 binaries, so a lot of iotests are failing now without such a default machine. Teach the iotest harness to use the "r2d&quo

Re: [PATCH] docs: Mark "gluster" support in QEMU as deprecated

2024-09-24 Thread Thomas Huth
On 24/09/2024 16.12, Peter Krempa wrote: On Tue, Sep 24, 2024 at 15:24:51 +0200, Thomas Huth wrote: According to https://marc.info/?l=fedora-devel-list&m=171934833215726 the GlusterFS development effectively ended. Thus mark it as deprecated in QEMU, so we can remove it in a future releas

Re: [PATCH] block-backend: Remove deadcode

2024-10-02 Thread Thomas Huth
; void blk_update_root_state(BlockBackend *blk); bool blk_get_detect_zeroes_from_root_state(BlockBackend *blk); Reviewed-by: Thomas Huth

[PATCH v3] docs: Mark "gluster" support in QEMU as deprecated

2024-10-02 Thread Thomas Huth
gned-off-by: Thomas Huth --- v3: Some rewordings according to Markus' and Daniel's suggestions docs/about/deprecated.rst | 9 + qapi/block-core.json | 8 +++- block/gluster.c | 2 ++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/docs/about/de

<    8   9   10   11   12   13   14   >