Re: [PATCH 0/5] cpu_map: Add missing -v1 models

2024-11-28 Thread Han Han
Tested on this branch with qemu-kvm-9.1.0-5.el9.x86_64: # for i in $(/usr/libexec/qemu-kvm -cpu help|grep deprecated -v|awk '/Available CPUs/,/Recognized CPUID flags/'|grep '^ '|awk '{print $1}');do if ! virsh cpu-models x86_64|grep -q $i;then echo $i;fi;done Opteron_G4-v1 Opteron_G5-v1 base host

[PATCH v2 6/6] util: virsysinfo: Change return type of functions that never fail to void

2024-11-28 Thread Alexander Kuznetsov
These functions return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/util/virsysinfo.c

[PATCH v2 5/6] hyperv: Change return type of hypervCheckParams to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/hyperv/hyperv_wmi.c

[PATCH v2 4/6] rpc: Change return type of virNetClientAddStream to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/remote/remote_driver

[PATCH v2 3/6] rpc: Change return type of virNetClientAddProgram to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/admin/admin_remote.c

[PATCH v2 2/6] rpc: Change return type of virNetServerAddProgram to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/locking/lock_daemon.

[PATCH v2 1/6] access: Change return type of virAccessDriverStackAppend to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/access/viraccessdriv

[PATCH v2 0/6] Change return type of functions that use VIR_EXPAND_N and never fail to void

2024-11-28 Thread Alexander Kuznetsov
These functions return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Best regards, Alexander Kuznetsov --- v2: - One function/file per commit. Alexander Kuznetsov (6): access: Change return type of virAccessDriverStackAppend

Re: [PATCH v3 3/5] ch: events: Read and parse cloud-hypervisor events

2024-11-28 Thread Purna Pavan Chandra Aekkaladevi
On Thu, Nov 14, 2024 at 02:25:09AM -0800, Purna Pavan Chandra Aekkaladevi wrote: > Thanks for the review, Michal. > > I will add your suggestion to not abort() and fix the possible memory > leak issue in V4. > > On Mon, Nov 11, 2024 at 02:37:00PM +0100, Michal Prívozník wrote: > > On 10/23/24 10:

libvirt-10.10.0 release candidate 2

2024-11-28 Thread Jiri Denemark
I have just tagged v10.10.0-rc2 in the repository and pushed signed tarballs to https://download.libvirt.org/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make sure the issu

[PATCH 5/5] cpu_map: Add missing -v1 models

2024-11-28 Thread Jiri Denemark
CPU models that do not have a list of versions attached are still advertised as aliases to corresponding -v1 variants. We should add the missing variants to the CPU map. Signed-off-by: Jiri Denemark --- src/cpu_map/index.xml | 2 + src/cpu_map/meson.build

[PATCH 4/5] sync_qemu_models_i386: Generate missing -v1 variants

2024-11-28 Thread Jiri Denemark
QEMU supports -v1 variant of any CPU model even though the list of versions is not defined (i.e., even { .version = 1 } item is missing). Signed-off-by: Jiri Denemark --- src/cpu_map/sync_qemu_models_i386.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpu_map/sync_qemu_models_i386

[PATCH 3/5] sync_qemu_models_i386: Ignore old models

2024-11-28 Thread Jiri Denemark
Do not try to generated definition of ancient models (and their versions). We don't want to generate (and then manually get remove before committing) -v1 variants of CPU models that are pretty much useless now. Signed-off-by: Jiri Denemark --- Notes: The main questions is which models should

[PATCH 2/5] sync_qemu_models_i386: Update meson.build

2024-11-28 Thread Jiri Denemark
When adding new CPU models to CPU map it's easy (and very common) to forget to add the new files to meson.build. We already update index.xml with the new models so updating meson.build too makes sense. Signed-off-by: Jiri Denemark --- src/cpu_map/sync_qemu_models_i386.py | 27 +++

[PATCH 1/5] cpu_map: Sort data files in meson.build

2024-11-28 Thread Jiri Denemark
Signed-off-by: Jiri Denemark --- src/cpu_map/meson.build | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cpu_map/meson.build b/src/cpu_map/meson.build index 88d67f4cce..f659ef230e 100644 --- a/src/cpu_map/meson.build +++ b/src/cpu_map/meson.build @@ -4,8 +

[PATCH 0/5] cpu_map: Add missing -v1 models

2024-11-28 Thread Jiri Denemark
CPU models that do not have a list of versions attached are still advertised as aliases to corresponding -v1 variants. We should add the missing variants to the CPU map. Available on gitlab: git fetch https://gitlab.com/jirkade/libvirt.git cpu-versions Pipeline: https://gitlab.com/jirkade/li

[PATCH v2 1/4] util: Change return type of virPCIDeviceSetUsedBy to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since 18f3771, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/hypervisor/virhostdev.c | 6 ++ src/util/virpc

[PATCH v2 4/4] logging: Change return type of virLogDaemonConfigFilePat to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since 18f3771, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/logging/log_daemon.c| 8 ++-- src/logg

[PATCH v2 3/4] util: Change return type of virSCSIVHostDeviceSetUsedBy to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since 18f3771, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/hypervisor/virhostdev.c | 3 +-- src/util/virscsiv

[PATCH v2 2/4] util: Change return type of virSCSIDeviceSetUsedBy to void

2024-11-28 Thread Alexander Kuznetsov
This function return value is invariant since 18f3771, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/hypervisor/virhostdev.c | 12 src/uti

[PATCH v2 0/4] util: Change return type of functions that never fail to void

2024-11-28 Thread Alexander Kuznetsov
These functions return value is invariant since 18f3771, so change its type and remove all dependent checks. Best regards, Alexander Kuznetsov --- v2: - One function per commit. Alexander Kuznetsov (4): util: Change return type of virPCIDeviceSetUsedBy to void util: Change return type of vi

Re: [PATCH] NEWS: Document features/improvements/bug fixes I've participated in

2024-11-28 Thread Jiri Denemark
On Thu, Nov 28, 2024 at 10:40:03 +0100, Michal Privoznik wrote: > There are some features/improvements/bug fixes I've either > contributed or reviewed/merged. Document them for upcoming > release. > > Signed-off-by: Michal Privoznik > --- > NEWS.rst | 28 > 1 file ch

[PATCH] NEWS: Document features/improvements/bug fixes I've participated in

2024-11-28 Thread Michal Privoznik
There are some features/improvements/bug fixes I've either contributed or reviewed/merged. Document them for upcoming release. Signed-off-by: Michal Privoznik --- NEWS.rst | 28 1 file changed, 28 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 4b7f4e8244..65e2

Re: [PATCH] Change return type of functions that use VIR_EXPAND_N and never fail to void

2024-11-28 Thread Peter Krempa
On Wed, Nov 27, 2024 at 18:45:09 +0300, Alexander Kuznetsov wrote: > These functions return value is invariant since VIR_EXPAND_N check > removal in 7d2fd6e, so change its type and remove all dependent checks. > > Found by Linux Verification Center (linuxtesting.org) with Svace. > > Reported-by:

Re: [PATCH 6/8] qemuDomainVirStorageSourceFindByNodeName: Extract nodename matching

2024-11-28 Thread Jiri Denemark
On Thu, Nov 28, 2024 at 10:24:07 +0100, Peter Krempa wrote: > On Thu, Nov 28, 2024 at 10:22:53 +0100, Jiri Denemark wrote: > > On Tue, Nov 26, 2024 at 16:16:17 +0100, Peter Krempa wrote: > > > Extract the matching of the node name of a single virStorage source so > > > that the logic can be extende

Re: [PATCH] util: Change return type of functions that never fail to void

2024-11-28 Thread Peter Krempa
On Wed, Nov 27, 2024 at 18:41:57 +0300, Alexander Kuznetsov wrote: > These functions return value is invariant since 18f3771, so change > its type and remove all dependent checks. > > Found by Linux Verification Center (linuxtesting.org) with Svace. > > Reported-by: Pavel Nekrasov > Signed-off-b

[PATCH] util: Change return type of functions that never fail to void

2024-11-28 Thread Alexander Kuznetsov
These functions return value is invariant since 18f3771, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/hypervisor/virhostdev.c | 21 +++

[PATCH] Change return type of functions that use VIR_EXPAND_N and never fail to void

2024-11-28 Thread Alexander Kuznetsov
These functions return value is invariant since VIR_EXPAND_N check removal in 7d2fd6e, so change its type and remove all dependent checks. Found by Linux Verification Center (linuxtesting.org) with Svace. Reported-by: Pavel Nekrasov Signed-off-by: Alexander Kuznetsov --- src/access/viraccessdr

Re: [PATCH 6/8] qemuDomainVirStorageSourceFindByNodeName: Extract nodename matching

2024-11-28 Thread Peter Krempa
On Thu, Nov 28, 2024 at 10:22:53 +0100, Jiri Denemark wrote: > On Tue, Nov 26, 2024 at 16:16:17 +0100, Peter Krempa wrote: > > Extract the matching of the node name of a single virStorage source so > > that the logic can be extended in the upcoming patch. > > This is confusing. I was expecting the

Re: [PATCH 0/8] qemu: fixes for blockjobs with

2024-11-28 Thread Jiri Denemark
On Tue, Nov 26, 2024 at 16:16:11 +0100, Peter Krempa wrote: > Couple fixes for the feature when used with blockjobs: > - fixes for qemuBlockReopenAccess (code driving 'blockdev-reopen' in >qemu) for bugs noticed during testing of > - the 'auto-read-only' qemu feature doesn't apply od the 'd

Re: [PATCH 6/8] qemuDomainVirStorageSourceFindByNodeName: Extract nodename matching

2024-11-28 Thread Jiri Denemark
On Tue, Nov 26, 2024 at 16:16:17 +0100, Peter Krempa wrote: > Extract the matching of the node name of a single virStorage source so > that the logic can be extended in the upcoming patch. This is confusing. I was expecting the logic in qemuDomainVirStorageSourceFindByNodeName to be extended in th

Re: [PATCH for 10.10.0 0/5] Fix broken XML schemas and 'virschematest'

2024-11-28 Thread Michal Prívozník
On 11/28/24 09:32, Peter Krempa wrote: > 'virschematest' didn't test the majority of files for some time so some > schema problems snuck in. > > Peter Krempa (5): > schemas: domain: Make subelement of NFS disk source > optional > schemas: domaincaps: Add schema for 'panic' device > sche

Re: [PATCH 5/5] virschematest: Don't skip all "directory" tests

2024-11-28 Thread Michal Prívozník
On 11/28/24 09:32, Peter Krempa wrote: > Due to a bug in the optimization to avoid testing symlinked tests > multiple times all tests were skipped. > > In commit f997fcca71a16b102e6ee663 I made an attempt to optimize the > tests by avoiding testing symlinks. This optimization was buggy as I've > p

Re: [PATCH 5/8] qemu: snapshot: Change 'data-file' to read-only after snapshot

2024-11-28 Thread Peter Krempa
On Thu, Nov 28, 2024 at 10:16:10 +0100, Jiri Denemark wrote: > On Tue, Nov 26, 2024 at 16:16:16 +0100, Peter Krempa wrote: > > For the reason outlined in previous commit qemu doesn't do this > > automatically. Handle it manually after the snapshot. > > > > Signed-off-by: Peter Krempa > > --- > >

Re: [PATCH 5/8] qemu: snapshot: Change 'data-file' to read-only after snapshot

2024-11-28 Thread Jiri Denemark
On Tue, Nov 26, 2024 at 16:16:16 +0100, Peter Krempa wrote: > For the reason outlined in previous commit qemu doesn't do this > automatically. Handle it manually after the snapshot. > > Signed-off-by: Peter Krempa > --- > src/qemu/qemu_snapshot.c | 12 ++-- > 1 file changed, 10 insertion

[PATCH for 10.10.0 0/5] Fix broken XML schemas and 'virschematest'

2024-11-28 Thread Peter Krempa
'virschematest' didn't test the majority of files for some time so some schema problems snuck in. Peter Krempa (5): schemas: domain: Make subelement of NFS disk source optional schemas: domaincaps: Add schema for 'panic' device schemas: domaincaps: Add schema for 'canonical' cpu model n

[PATCH 5/5] virschematest: Don't skip all "directory" tests

2024-11-28 Thread Peter Krempa
Due to a bug in the optimization to avoid testing symlinked tests multiple times all tests were skipped. In commit f997fcca71a16b102e6ee663 I made an attempt to optimize the tests by avoiding testing symlinks. This optimization was buggy as I've passed the 'd_name' field of 'struct dirent' which i

[PATCH 4/5] schemas: domaincaps: Add schema for CPU 'blockers'

2024-11-28 Thread Peter Krempa
Due to broken 'virschematest' commit f4dc248a952aaebcc793c7809c6c083d9 forgot to introduce schema for the new element. Fixes: f4dc248a952aaebcc793c7809c6c083d9cc30d0c Signed-off-by: Peter Krempa --- src/conf/schemas/domaincaps.rng | 14 ++ 1 file changed, 14 insertions(+) diff --git

[PATCH 3/5] schemas: domaincaps: Add schema for 'canonical' cpu model name

2024-11-28 Thread Peter Krempa
Due to 'virschematest' being broken commit fff2bbee7feb0fdfbf40aac4fe9 forgot to add schema for the new attribute. Fixes: fff2bbee7feb0fdfbf40aac4fe9efd070f72ce9e Signed-off-by: Peter Krempa --- src/conf/schemas/domaincaps.rng | 5 + 1 file changed, 5 insertions(+) diff --git a/src/conf/sch

[PATCH 2/5] schemas: domaincaps: Add schema for 'panic' device

2024-11-28 Thread Peter Krempa
Due to 'virschematest' being broken commit a52cd504b3618c67abf3a07c669 introduced a new element to the domain caps but didn't add schema for it. Fixes: a52cd504b3618c67abf3a07c669fd5e5ab18aa50 Signed-off-by: Peter Krempa --- src/conf/schemas/domaincaps.rng | 10 ++ 1 file changed, 10 ins

[PATCH 1/5] schemas: domain: Make subelement of NFS disk source optional

2024-11-28 Thread Peter Krempa
Both the 'user' and 'group' attribute are optional so can be empty. Allow it to be omitted completely. The parser and qemu code can handle that. The schema was introduced in 943871f971d680f72726a9d6e9330eec264f6588 and in d018c8dc9ebcd0496c7a564bc2e8b1c9cbd8d96f an offending test was added. Fixe