Re: [PATCH 18/20] qemu: validate: Remove unreachable checks for QEMU_CAPS_AUDIODEV

2022-07-15 Thread Michal Prívozník
On 7/15/22 13:44, Peter Krempa wrote: > We now only support qemu versions which already have the capability so > we can remove this now unused code. > > Signed-off-by: Peter Krempa > --- > src/qemu/qemu_validate.c | 86 > 1 file changed, 86 deletions(-) >

Re: [PATCH for 8.7.0 00/20] Bump minimum supported qemu version to qemu-4.2 (part 1)

2022-07-15 Thread Michal Prívozník
On 7/15/22 13:44, Peter Krempa wrote: > In August Debian 10 officially reaches EOL, thus we can bump minimum > qemu version to 4.2 which is being limited by Ubuntu and RHEL/Centos 8. > > QEMU-4.2 allows us to remove a big bunch of old code though. Few > examples which this series (and the next ite

Re: [PATCH 0/7] qemu: Remove unused code for tuning migration parameters

2022-07-15 Thread Michal Prívozník
On 7/15/22 14:31, Peter Krempa wrote: > All qemu versions supported by libvirt allow setting everything via > migration parameters which is also the preferred code path in libvirt. > > Remove the legacy code. > > Peter Krempa (7): > qemu: Always assume support for QEMU_CAPS_MIGRATION_PARAM_BAND

[PATCH 5/7] qemu: Always assume support for QEMU_CAPS_MIGRATION_PARAM_XBZRLE_CACHE_SIZE

2022-07-15 Thread Peter Krempa
The 'xbzrle-cache-size' parameter was added in qemu-2.11 thus all supported qemu versions now use the new code path. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 56 +--- src/qemu/qemu_migration_params.c | 18 -- 2 files changed, 16 inser

[PATCH 2/7] qemu: capabilities: Retire QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH

2022-07-15 Thread Peter Krempa
The parameter is supported since qemu-2.8. Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 3 +-- src/qemu/qemu_capabilities.h | 2 +- tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 - tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xm

[PATCH 4/7] qemu: capabilties: Retire QEMU_CAPS_MIGRATION_PARAM_DOWNTIME

2022-07-15 Thread Peter Krempa
Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 3 +-- src/qemu/qemu_capabilities.h | 2 +- tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 - tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml | 1 - tests/qemucapabilitiesdata/caps_4.

[PATCH 7/7] qemu: monitor: Remove unused migration property getters/setters

2022-07-15 Thread Peter Krempa
The getters/setters for individual properties of migration speed/downtime/cache size are unused once we switched to setting them purely via migration parameters. Remove the unused helpers. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor.c | 55 - src/qemu/qemu_moni

[PATCH 6/7] qemu: capabilities: Retire QEMU_CAPS_MIGRATION_PARAM_XBZRLE_CACHE_SIZE

2022-07-15 Thread Peter Krempa
Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 3 +-- src/qemu/qemu_capabilities.h | 2 +- tests/qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1 - tests/qemucapabilitiesdata/caps_3.1.0.x86_64.xml | 1 - tests/qemucapabilitiesdata/caps_4.

[PATCH 1/7] qemu: Always assume support for QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH

2022-07-15 Thread Peter Krempa
The 'max-bandwidth' field was added as argument of 'migrate-set-parameters' in qemu-2.8, thus all qemu version supported by libvirt already use the new code path. This patch assumes the presence and removes the legacy code paths. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c| 39 ++

[PATCH 3/7] qemu: driver: Always assume support for QEMU_CAPS_MIGRATION_PARAM_DOWNTIME

2022-07-15 Thread Peter Krempa
The 'downtime-limit' field of 'migrate-set-parameters' was introduced in qemu-2.8, thus all qemu versions supported by libvirt use the new code. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 30 +- 1 file changed, 9 insertions(+), 21 deletions(-) diff --gi

[PATCH 0/7] qemu: Remove unused code for tuning migration parameters

2022-07-15 Thread Peter Krempa
All qemu versions supported by libvirt allow setting everything via migration parameters which is also the preferred code path in libvirt. Remove the legacy code. Peter Krempa (7): qemu: Always assume support for QEMU_CAPS_MIGRATION_PARAM_BANDWIDTH qemu: capabilities: Retire QEMU_CAPS_MIGRATI

Re: [PATCH for 8.7.0 00/20] Bump minimum supported qemu version to qemu-4.2 (part 1)

2022-07-15 Thread Peter Krempa
On Fri, Jul 15, 2022 at 13:54:26 +0200, Claudio Fontana wrote: > Hello Peter, > > can we retire as well support for migration_set_speed then? > > The "if (!bwParam)" branches with calls to qemuMonitorSetMigrationSpeed are > overcomplicating qemu_migration.c and qemu_driver.c in my view. Indeed.

Re: [PATCH for 8.7.0 00/20] Bump minimum supported qemu version to qemu-4.2 (part 1)

2022-07-15 Thread Michal Prívozník
On 7/15/22 13:54, Claudio Fontana wrote: > Hello Peter, > > can we retire as well support for migration_set_speed then? > > The "if (!bwParam)" branches with calls to qemuMonitorSetMigrationSpeed are > overcomplicating qemu_migration.c and qemu_driver.c in my view. While there are only a few su

Re: [PATCH for 8.7.0 00/20] Bump minimum supported qemu version to qemu-4.2 (part 1)

2022-07-15 Thread Claudio Fontana
Hello Peter, can we retire as well support for migration_set_speed then? The "if (!bwParam)" branches with calls to qemuMonitorSetMigrationSpeed are overcomplicating qemu_migration.c and qemu_driver.c in my view. Thanks, Claudio On 7/15/22 13:44, Peter Krempa wrote: > In August Debian 10 off

[PATCH 09/20] tests: domaincaps: Remove test data for qemu-3.1

2022-07-15 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../domaincapsdata/qemu_3.1.0-q35.x86_64.xml | 211 .../domaincapsdata/qemu_3.1.0-tcg.x86_64.xml | 230 -- tests/domaincapsdata/qemu_3.1.0.ppc64.xml | 138 --- tests/domaincapsdata/qemu_3.1.0.x86_64.xml| 211 --

[PATCH 14/20] qemu: Formally deprecate support for qemu < 4.2

2022-07-15 Thread Peter Krempa
Per [1] the Debian 10 reaches EOL in August of 2022. This allows us to bump the minimum supported qemu version to qemu-4.2 which will also allow us to do significant cleanups. This commit bumps the minimum qemu verison and updates the corresponding docs. [1]: https://wiki.debian.org/DebianRelease

[PATCH 17/20] qemu: command: Drop qemuBuildAudioCommandLine thin wrapper

2022-07-15 Thread Peter Krempa
Rename qemuBuildAudioCommandLineArgs to qemuBuildAudioCommandLine and fix the arguments. Signed-off-by: Peter Krempa --- src/qemu/qemu_command.c | 15 +++ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 57e8115db3

[PATCH 18/20] qemu: validate: Remove unreachable checks for QEMU_CAPS_AUDIODEV

2022-07-15 Thread Peter Krempa
We now only support qemu versions which already have the capability so we can remove this now unused code. Signed-off-by: Peter Krempa --- src/qemu/qemu_validate.c | 86 1 file changed, 86 deletions(-) diff --git a/src/qemu/qemu_validate.c b/src/qemu/qem

[PATCH 20/20] qemu: capabilities: Retire QEMU_CAPS_AUDIODEV

2022-07-15 Thread Peter Krempa
Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 3 +-- src/qemu/qemu_capabilities.h | 2 +- tests/qemucapabilitiesdata/caps_4.2.0.aarch64.xml | 1 - tests/qemucapabilitiesdata/caps_4.2.0.ppc64.xml | 1 - tests/qemucapabilitiesdata/caps_4.

[PATCH 19/20] qemuxml2(argv|xml)test: Remove use of QEMU_CAPS_AUDIODEV in fake-caps tests

2022-07-15 Thread Peter Krempa
The code no longer uses the capability so the tests don't need to assert it. Signed-off-by: Peter Krempa --- tests/qemuxml2argvtest.c | 2 +- tests/qemuxml2xmltest.c | 20 +--- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/qemuxml2argvtest.c b/tests/qem

[PATCH 16/20] qemu: command: Drop the code for configuring audio devices via environment variables

2022-07-15 Thread Peter Krempa
Remove the old now unused code. Signed-off-by: Peter Krempa --- src/qemu/qemu_command.c | 183 1 file changed, 183 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 4d9a0eb2e1..57e8115db3 100644 --- a/src/qemu/qemu_command

[PATCH 11/20] domaincapstest: Remove test data for qemu-4.0

2022-07-15 Thread Peter Krempa
qemu-4.0 will no longer be supported. Signed-off-by: Peter Krempa --- .../domaincapsdata/qemu_4.0.0-q35.x86_64.xml | 211 .../domaincapsdata/qemu_4.0.0-tcg.x86_64.xml | 230 - .../qemu_4.0.0-virt.aarch64.xml | 179 - tests/domaincapsda

[PATCH 10/20] qemucapabilitiestest: Remove test data for qemu-4.0

2022-07-15 Thread Peter Krempa
qemu-4.0 will no longer be supported, remove the test data. Signed-off-by: Peter Krempa --- .../caps_4.0.0.aarch64.replies| 20893 - .../caps_4.0.0.aarch64.xml| 363 - .../caps_4.0.0.ppc64.replies | 24461 --- .../qem

[PATCH 13/20] domaincapstest: Remove test data for qemu-4.1

2022-07-15 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../domaincapsdata/qemu_4.1.0-q35.x86_64.xml | 217 .../domaincapsdata/qemu_4.1.0-tcg.x86_64.xml | 233 -- tests/domaincapsdata/qemu_4.1.0.x86_64.xml| 217 3 files changed, 667 deletions(-) delete mode 100644

[PATCH 12/20] qemucapabilitiestest: Remove test data for qemu-4.1

2022-07-15 Thread Peter Krempa
qemu-4.1 will not be supported any more. Signed-off-by: Peter Krempa --- .../caps_4.1.0.x86_64.replies | 25198 .../caps_4.1.0.x86_64.xml | 1971 -- 2 files changed, 27169 deletions(-) delete mode 100644 tests/qemucapabilitiesdata/caps_4.1.0

[PATCH 08/20] tests: qemucapabilities: Remove qemu-3.1 test data

2022-07-15 Thread Peter Krempa
Upcoming patches will raise the minimum required qemu version to 4.2. Signed-off-by: Peter Krempa --- .../caps_3.1.0.ppc64.replies | 23732 --- .../qemucapabilitiesdata/caps_3.1.0.ppc64.xml | 1072 - .../caps_3.1.0.x86_64.replies | 24428

[PATCH 07/20] qemuxml2argvtest: Remove 'qemu-4.0' versions of 'cpu-host-model-cmt' and 'cpu-tsc-frequency'

2022-07-15 Thread Peter Krempa
Minimum qemu version is going to be bumped to qemu-4.2. Upgrading the version of these tests don't make sense as the host cpu in the real capabilities doesn't support the features the tests are attempting to test. Signed-off-by: Peter Krempa --- .../cpu-host-model-cmt.x86_64-4.0.0.args | 33

[PATCH 05/20] qemuxml2argvtest: Remove pre-qemu-4.2 versions of 'cpu-host-model' test

2022-07-15 Thread Peter Krempa
Minimum qemu will be bumped to 4.2 so remove the older test cases. Signed-off-by: Peter Krempa --- .../cpu-host-model.x86_64-3.1.0.args | 36 --- .../cpu-host-model.x86_64-4.0.0.args | 36 --- .../cpu-host-model.x86_64-4.1.0.args | 36 --

[PATCH 02/20] tests: qemuxml2argv: Remove pre-blockdev versions of disk-related tests

2022-07-15 Thread Peter Krempa
Upcoming patches will bump minimum supported qemu version to 4.2 which will use '-blockdev' with qemu so we can drop all the old test cases for pre-blockdev configs. Signed-off-by: Peter Krempa --- .../blkdeviotune-group-num.x86_64-4.1.0.args | 37 -- .../blkdeviotune-max-length.x86

[PATCH for 8.7.0 00/20] Bump minimum supported qemu version to qemu-4.2 (part 1)

2022-07-15 Thread Peter Krempa
In August Debian 10 officially reaches EOL, thus we can bump minimum qemu version to 4.2 which is being limited by Ubuntu and RHEL/Centos 8. QEMU-4.2 allows us to remove a big bunch of old code though. Few examples which this series (and the next iterations of it) will deal with: - old auidiodev

[PATCH 04/20] qemuxml2argvtest: Remove 'qemu-3.1' versions of virtio-(non-)transitional tests

2022-07-15 Thread Peter Krempa
Starting from qemu-4.0 a new device model name is used instead of the 'disable_*' props. Since we are going to bump to qemu-4.2 as minimum this test can be removed. Signed-off-by: Peter Krempa --- .../virtio-non-transitional.x86_64-3.1.0.args | 53 --- .../virtio-transitional.x86

[PATCH 06/20] qemuxml2argvtest: Remove 'qemu-4.0' version of aarch64-features-sve case

2022-07-15 Thread Peter Krempa
Minimum qemu will be bumped to 4.2 so this test no longer makes sense. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/aarch64-features-sve.aarch64-4.0.0.err | 1 - tests/qemuxml2argvtest.c | 2 -- 2 files changed, 3 deletions(-) delete mode 100644 t

[PATCH 03/20] qemuxml2argvtest: Drop 'qemu-4.1' variants of all audio tests

2022-07-15 Thread Peter Krempa
Minimum qemu version will be bumped to qemu-4.2 so we no longer need to care about configuring audiodevs via the environment variables. Signed-off-by: Peter Krempa --- .../audio-alsa-best.x86_64-4.1.0.args | 46 - .../audio-alsa-full.x86_64-4.1.0.err | 1 - .../

[PATCH 01/20] qemuxml2(argv|xml)test: Remove 'qemu-4.1' variant of 'x86-kvm-32-on-64'

2022-07-15 Thread Peter Krempa
Upcoming patches will bump minimum qemu version to 4.2. In this case we the 'latest' case is suffuicient as with qemu-4.2 we already behave as upstream ('qemu64' cpu is used instead of 'qemu32'). Signed-off-by: Peter Krempa --- .../x86-kvm-32-on-64.x86_64-4.1.0.args| 31 -

[libvirt PATCH] qemu_migration: Delete vDPA check

2022-07-15 Thread Eugenio Pérez
Currently, the migration code denies migration as long as the VM has a vhost-vDPA device. While it's true that vhost-vDPA devices cannot be migrated at the moment, there are plans to be able to migrate them soon. Libvirt must treat it equal to vhost-kernel devices: Not all of them can be migrate

Re: [libvirt PATCH] util: remove virObjectUnref() adapters

2022-07-15 Thread Erik Skultety
On Thu, Jul 14, 2022 at 09:52:25AM -0500, Jonathon Jongsma wrote: > These wrapper functions were used to adapt the virObjectUnref() function > signature for different callbacks. But in commit 0d184072, the > virObjectUnref() function was changed to return a void instead of a > bool, so these adapte

Re: [PATCH v2 9/9] qemu: Place helper processes into the same trusted group

2022-07-15 Thread Dario Faggioli
On Wed, 2022-07-13 at 17:25 +0100, Daniel P. Berrangé wrote: > It would need to use SCOPE_THREAD_GROUP, except even that is not > sufficient > as the helper may have fork+exec'd another helper by this point, and > our > call will only affect the first process. > > IOW, to set core scheduling cooki