Re: [PATCH] virnodedeviceobj: Don't unlock virNodeDeviceObj in virNodeDeviceObjListRemove()

2022-02-01 Thread Michal Prívozník
On 2/1/22 15:43, Michal Privoznik wrote: > When virNodeDeviceObjListRemove() is called, the passed > virNodeDeviceObj is removed from internal list of node devices > and then unrefed and unlocked. While the former is warranted (the > object was refed at the beginning of the function) the unlock is

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Michal Prívozník
On 2/2/22 01:06, Martin Kletzander wrote: > On Tue, Feb 01, 2022 at 05:23:33PM +0100, Tim Wiederhake wrote: >> On Tue, 2022-02-01 at 16:07 +, Daniel P. Berrangé wrote: >>> On Tue, Feb 01, 2022 at 03:25:55PM +0100, Martin Kletzander wrote: >>> > On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wied

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Martin Kletzander
On Tue, Feb 01, 2022 at 05:23:33PM +0100, Tim Wiederhake wrote: On Tue, 2022-02-01 at 16:07 +, Daniel P. Berrangé wrote: On Tue, Feb 01, 2022 at 03:25:55PM +0100, Martin Kletzander wrote: > On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wiederhake wrote: > > Signed-off-by: Tim Wiederhake > >

[libvirt PATCH] meson: Don't overwrite includedir

2022-02-01 Thread Andrea Bolognani
The current implementation of the workaround for yajl's broken pkg-config file accidentally overwrites the value of includedir that is later used by the installation process. Rename the local variable to avoid this issue. Fixes: c97075e1e46e9305d62620d8b05046aae0139438 Closes: https://gitlab.com/l

Re: [libvirt PATCH v5 0/7] cgroup and thread management in ch driver

2022-02-01 Thread Michal Prívozník
On 2/1/22 18:22, Praveen K Paladugu wrote: > > > On 1/28/2022 10:05 AM, Michal Prívozník wrote: >> On 1/25/22 17:19, Praveen K Paladugu wrote: >>> This patchset adds support for cgroup management of ch threads. This >>> version >>> correctly manages cgroups for vcpu and emulator threads created b

Re: [PATCH 4/4] src: Use g_steal_pointer() more

2022-02-01 Thread Michal Prívozník
On 2/1/22 17:59, Erik Skultety wrote: > On Tue, Feb 01, 2022 at 05:23:52PM +0100, Michal Prívozník wrote: >> On 2/1/22 17:18, Erik Skultety wrote: >>> On Mon, Jan 31, 2022 at 03:53:42PM +0100, Michal Privoznik wrote: There are few places where the g_steal_pointer() is open coded. Switch t

[libvirt PATCH 0/3] rpm: Fix and improve handling of directories

2022-02-01 Thread Andrea Bolognani
With respect to the permissions topic mentioned in patch 3/3, I'm currently working on some patches that aim to improve that situation as well. Andrea Bolognani (3): rpm: Move /etc/libvirt from -daemon to -libs rpm: Move /var/lib/libvirt from -libs to -daemon rpm: List more directories lib

[libvirt PATCH 3/3] rpm: List more directories

2022-02-01 Thread Andrea Bolognani
This has two advantages: it makes it possible for the admin to ask rpm what package they belong to, and results in them ending up with stricter permissions than they would have if we let libvirt create them at runtime. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 29

[libvirt PATCH 2/3] rpm: Move /var/lib/libvirt from -libs to -daemon

2022-02-01 Thread Andrea Bolognani
The server, not the client, uses local storage. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 58c2fafac6..ce82def2af 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -1683,6 +16

[libvirt PATCH 1/3] rpm: Move /etc/libvirt from -daemon to -libs

2022-02-01 Thread Andrea Bolognani
Files like libvirt.conf influence the behavior of the library itself. The daemon depends on the library, so the directory is guaranteed to be present both on the client side and on the server side. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 3 +-- 1 file changed, 1 insertion(+), 2 del

Re: [libvirt PATCH v5 0/7] cgroup and thread management in ch driver

2022-02-01 Thread Praveen K Paladugu
On 1/28/2022 10:05 AM, Michal Prívozník wrote: On 1/25/22 17:19, Praveen K Paladugu wrote: This patchset adds support for cgroup management of ch threads. This version correctly manages cgroups for vcpu and emulator threads created by ch. cgroup management for iothreads is not yet supported.

Re: [PATCH 4/4] src: Use g_steal_pointer() more

2022-02-01 Thread Erik Skultety
On Tue, Feb 01, 2022 at 05:23:52PM +0100, Michal Prívozník wrote: > On 2/1/22 17:18, Erik Skultety wrote: > > On Mon, Jan 31, 2022 at 03:53:42PM +0100, Michal Privoznik wrote: > >> There are few places where the g_steal_pointer() is open coded. > >> Switch them to calling the g_steal_pointer() func

Re: [PATCH 4/4] src: Use g_steal_pointer() more

2022-02-01 Thread Michal Prívozník
On 2/1/22 17:18, Erik Skultety wrote: > On Mon, Jan 31, 2022 at 03:53:42PM +0100, Michal Privoznik wrote: >> There are few places where the g_steal_pointer() is open coded. >> Switch them to calling the g_steal_pointer() function instead. >> Generated by the following spatch: >> >> @ rule1 @ >>

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Tim Wiederhake
On Tue, 2022-02-01 at 16:07 +, Daniel P. Berrangé wrote: > On Tue, Feb 01, 2022 at 03:25:55PM +0100, Martin Kletzander wrote: > > On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wiederhake wrote: > > > Signed-off-by: Tim Wiederhake > > > --- > > > src/lxc/lxc_driver.c | 6 +++--- > > > 1 file cha

Re: [PATCH 3/4] virpcivpdtest: Fix potential double-free()

2022-02-01 Thread Erik Skultety
On Mon, Jan 31, 2022 at 03:53:41PM +0100, Michal Privoznik wrote: > Inside the testPCIVPDResourceCustomCompareIndex() function we > have two variables @a and @b, both marked as g_autoptr(). Then, > towards the end of the function b->value is freed and set to > a->value. This is to make sure > virPC

Re: [PATCH 2/4] lib: Don't set variable to NULL after VIR_FREE()

2022-02-01 Thread Erik Skultety
On Mon, Jan 31, 2022 at 03:53:40PM +0100, Michal Privoznik wrote: > There are a few places where a variable is VIR_FREE()-d and then > explicitly set to NULL. This is not necessary since VIR_FREE() > does that for us. > > Signed-off-by: Michal Privoznik > --- Reviewed-by: Erik Skultety

Re: [PATCH 1/4] test_driver: Don't leak @group_name

2022-02-01 Thread Erik Skultety
On Mon, Jan 31, 2022 at 03:53:39PM +0100, Michal Privoznik wrote: > In testDomainSetBlockIoTune() the info.group_name is strdup()-ed > and just after the whole @info structure is passed to > virDomainDiskSetBlockIOTune() the @group_name member is set to > NULL. This creates a memleak, because > vir

Re: [PATCH 4/4] src: Use g_steal_pointer() more

2022-02-01 Thread Erik Skultety
On Mon, Jan 31, 2022 at 03:53:42PM +0100, Michal Privoznik wrote: > There are few places where the g_steal_pointer() is open coded. > Switch them to calling the g_steal_pointer() function instead. > Generated by the following spatch: > > @ rule1 @ > expression a, b; > @@ > <... > - b =

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/lxc/lxc_driver.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://www.flickr

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 03:25:55PM +0100, Martin Kletzander wrote: > On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wiederhake wrote: > > Signed-off-by: Tim Wiederhake > > --- > > src/lxc/lxc_driver.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/src/lxc/lxc_d

Re: [libvirt PATCH v5 8/9] bhyveAutostartDomain: Use virObjectLockGuard

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:16PM +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/bhyve/bhyve_driver.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://www.flic

Re: [libvirt PATCH v5 7/9] virChrdevFree: Use VIR_WITH_MUTEX_LOCK

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:15PM +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/conf/virchrdev.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/src/conf/virchrdev.c b/src/conf/virchrdev.c > index c9b2134e3b..8610f0ac5c 100644 > --- a/

Re: [libvirt PATCH v5 6/9] virChrdevFDStreamCloseCb: Use virLockGuardLock

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:14PM +0100, Tim Wiederhake wrote: > Signed-off-by: Tim Wiederhake > --- > src/conf/virchrdev.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Daniel P. Berrangé Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.co

Re: [libvirt PATCH v5 5/9] virobject: Introduce VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:13PM +0100, Tim Wiederhake wrote: > Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). > > See comment for typical usage. > > Signed-off-by: Tim Wiederhake > --- > src/util/virobject.h | 22 ++ > 1 file changed, 22 insert

Re: [libvirt PATCH v5 4/9] virobject: Introduce virObjectLockGuard

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:12PM +0100, Tim Wiederhake wrote: > Typical usage: > void foobar(virObjectLockable *obj) > { > VIR_LOCK_GUARD lock = virObjectLockGuard(obj); > /* `obj` is locked, and released automatically on scope exit */ > > ... > } > > Signed-

Re: [libvirt PATCH v5 3/9] virthread: Introduce VIR_WITH_MUTEX_LOCK_GUARD

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:11PM +0100, Tim Wiederhake wrote: > Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). > > See comment for typical usage. > > Signed-off-by: Tim Wiederhake > --- > src/util/virthread.h | 21 + > 1 file changed, 21 inserti

Re: [libvirt PATCH v5 2/9] virthread: Introduce virLockGuard

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:10PM +0100, Tim Wiederhake wrote: > Locks a virMutex on creation and unlocks it in its destructor. > > The VIR_LOCK_GUARD macro is used instead of "g_auto(virLockGuard)" to > work around a clang issue (see https://bugs.llvm.org/show_bug.cgi?id=3888 > and https://bugs.

Re: [libvirt PATCH v5 1/9] internal: Add CONCAT macro

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:20:09PM +0100, Tim Wiederhake wrote: > Using the two-step idiom to force resolution of other macros, e.g.: > > #define bar BAR > CONCAT_(foo, bar) // foobar > CONCAT(foo, bar) // fooBAR > > Signed-off-by: Tim Wiederhake > --- > src/internal.h | 3 +++ >

[PATCH] virnodedeviceobj: Don't unlock virNodeDeviceObj in virNodeDeviceObjListRemove()

2022-02-01 Thread Michal Privoznik
When virNodeDeviceObjListRemove() is called, the passed virNodeDeviceObj is removed from internal list of node devices and then unrefed and unlocked. While the former is warranted (the object was refed at the beginning of the function) the unlock is not. In fact, it's wrong from conceptual POV. We

[PATCH 3/3] qemu: add PCI root to MIPS Malta machine

2022-02-01 Thread Lubomir Rintel
MIPS Malta (and no other supported MIPS machine) has a PCI bus. Signed-off-by: Lubomir Rintel --- src/qemu/qemu_domain.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 0bae9b9202..b7aad65048 100644 --- a/src/

[PATCH 1/3] util: add ARCH_IS_MIPS helper macro

2022-02-01 Thread Lubomir Rintel
Identifies all of various MIPS sub-architectures: 32-bit or 64-bit, little-endian or big-endian. Signed-off-by: Lubomir Rintel --- src/util/virarch.h | 5 + 1 file changed, 5 insertions(+) diff --git a/src/util/virarch.h b/src/util/virarch.h index 528f84f8a5..81b1b27a57 100644 --- a/src/uti

[PATCH 2/3] qemu: add qemuDomainIsMipsMalta()

2022-02-01 Thread Lubomir Rintel
This identifies various MIPS Malta machines, be it 32-bit or 64-bit, little-endian or big-endian. Signed-off-by: Lubomir Rintel --- src/qemu/qemu_domain.c | 21 + src/qemu/qemu_domain.h | 1 + 2 files changed, 22 insertions(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/

[PATCH 0/3] Unbreak MIPS Malta

2022-02-01 Thread Lubomir Rintel
My day started like this: # virt-install --connect qemu:///system --arch mips --machine malta --memory 256 --disk none --import Using default --name vm-mips Starting install... ERRORXML error: No PCI buses available Needless to say, it ended up completely ruined. Chained to this

Re: [libvirt PATCH 2/4] ci: containers: Add CentOS Stream 9 target

2022-02-01 Thread Erik Skultety
On Tue, Feb 01, 2022 at 01:48:54PM +, Daniel P. Berrangé wrote: > On Tue, Feb 01, 2022 at 02:22:16PM +0100, Erik Skultety wrote: > > ... > > > > +x86_64-centos-stream-9: > > > > + extends: .native_build_job > > > > + needs: > > > > +- x86_64-centos-stream-9-container > > > > + allow_fail

Re: [libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Martin Kletzander
On Tue, Feb 01, 2022 at 02:20:17PM +0100, Tim Wiederhake wrote: Signed-off-by: Tim Wiederhake --- src/lxc/lxc_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 7bc39120ee..42053de9c3 100644 --- a/src/lxc/lxc_driver

Re: [libvirt PATCH v5 0/9] Automatic mutex management

2022-02-01 Thread Martin Kletzander
On Tue, Feb 01, 2022 at 02:20:08PM +0100, Tim Wiederhake wrote: V1: https://listman.redhat.com/archives/libvir-list/2021-August/msg00823.html V2: https://listman.redhat.com/archives/libvir-list/2021-September/msg00249.html V3: https://listman.redhat.com/archives/libvir-list/2021-September/msg0096

Re: [libvirt PATCH 2/4] ci: containers: Add CentOS Stream 9 target

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 02:22:16PM +0100, Erik Skultety wrote: > ... > > > +x86_64-centos-stream-9: > > > + extends: .native_build_job > > > + needs: > > > +- x86_64-centos-stream-9-container > > > + allow_failure: false > > > + variables: > > > +NAME: centos-stream-9 > > > > Bearing i

Re: [libvirt PATCH 4/4] gitlab-ci: Introduce a new test 'integration' pipeline stage

2022-02-01 Thread Erik Skultety
On Tue, Feb 01, 2022 at 12:36:11PM +, Daniel P. Berrangé wrote: > On Mon, Jan 31, 2022 at 07:01:01PM +0100, Erik Skultety wrote: > > Create an integration child pipeline in this stage which will trigger a > > multi-project CI build of Perl bindings which are required by the TCK > > test suite.

Re: [PATCH v2] docs: expand firmware descriptor to allow flash without NVRAM

2022-02-01 Thread Gerd Hoffmann
On Mon, Jan 31, 2022 at 04:21:36PM +0100, Kashyap Chamarthy wrote: > On Mon, Jan 31, 2022 at 02:36:46PM +, Daniel P. Berrangé wrote: > > On Mon, Jan 31, 2022 at 03:00:33PM +0100, Kashyap Chamarthy wrote: > > > On Mon, Jan 31, 2022 at 12:55:09PM +, Daniel P. Berrangé wrote: > > [...] > > >

[libvirt PATCH v5 8/9] bhyveAutostartDomain: Use virObjectLockGuard

2022-02-01 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/bhyve/bhyve_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bhyve/bhyve_driver.c b/src/bhyve/bhyve_driver.c index f291f12e50..47ee98e650 100644 --- a/src/bhyve/bhyve_driver.c +++ b/src/bhyve/bhyve_driver.c @@ -87,7 +87,8 @

[libvirt PATCH v5 7/9] virChrdevFree: Use VIR_WITH_MUTEX_LOCK

2022-02-01 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/conf/virchrdev.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conf/virchrdev.c b/src/conf/virchrdev.c index c9b2134e3b..8610f0ac5c 100644 --- a/src/conf/virchrdev.c +++ b/src/conf/virchrdev.c @@ -291,10 +291,10 @@ void virCh

[libvirt PATCH v5 6/9] virChrdevFDStreamCloseCb: Use virLockGuardLock

2022-02-01 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/conf/virchrdev.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/conf/virchrdev.c b/src/conf/virchrdev.c index b5477b03d5..c9b2134e3b 100644 --- a/src/conf/virchrdev.c +++ b/src/conf/virchrdev.c @@ -237,12 +237,10 @@ static void vir

[libvirt PATCH v5 5/9] virobject: Introduce VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Tim Wiederhake
Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). See comment for typical usage. Signed-off-by: Tim Wiederhake --- src/util/virobject.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/util/virobject.h b/src/util/virobject.h index dc1ce66a

[libvirt PATCH v5 1/9] internal: Add CONCAT macro

2022-02-01 Thread Tim Wiederhake
Using the two-step idiom to force resolution of other macros, e.g.: #define bar BAR CONCAT_(foo, bar) // foobar CONCAT(foo, bar) // fooBAR Signed-off-by: Tim Wiederhake --- src/internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal.h b/src/internal.h index

Re: [libvirt PATCH 2/4] ci: containers: Add CentOS Stream 9 target

2022-02-01 Thread Erik Skultety
... > > +x86_64-centos-stream-9: > > + extends: .native_build_job > > + needs: > > +- x86_64-centos-stream-9-container > > + allow_failure: false > > + variables: > > +NAME: centos-stream-9 > > Bearing in mind that c9s is an unreleased distro, we might > find ourselves needing allow_fa

[libvirt PATCH v5 3/9] virthread: Introduce VIR_WITH_MUTEX_LOCK_GUARD

2022-02-01 Thread Tim Wiederhake
Modeled after "WITH_QEMU_LOCK_GUARD" (see qemu's include/qemu/lockable.h). See comment for typical usage. Signed-off-by: Tim Wiederhake --- src/util/virthread.h | 21 + 1 file changed, 21 insertions(+) diff --git a/src/util/virthread.h b/src/util/virthread.h index 6cdaf2820

[libvirt PATCH v5 0/9] Automatic mutex management

2022-02-01 Thread Tim Wiederhake
V1: https://listman.redhat.com/archives/libvir-list/2021-August/msg00823.html V2: https://listman.redhat.com/archives/libvir-list/2021-September/msg00249.html V3: https://listman.redhat.com/archives/libvir-list/2021-September/msg00964.html V4: https://listman.redhat.com/archives/libvir-list/2022-Ja

[libvirt PATCH v5 9/9] lxcDomainDetachDeviceHostdevUSBLive: Use VIR_WITH_OBJECT_LOCK_GUARD

2022-02-01 Thread Tim Wiederhake
Signed-off-by: Tim Wiederhake --- src/lxc/lxc_driver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index 7bc39120ee..42053de9c3 100644 --- a/src/lxc/lxc_driver.c +++ b/src/lxc/lxc_driver.c @@ -4045,9 +4045,9 @@ lxcDomainDet

[libvirt PATCH v5 4/9] virobject: Introduce virObjectLockGuard

2022-02-01 Thread Tim Wiederhake
Typical usage: void foobar(virObjectLockable *obj) { VIR_LOCK_GUARD lock = virObjectLockGuard(obj); /* `obj` is locked, and released automatically on scope exit */ ... } Signed-off-by: Tim Wiederhake --- src/libvirt_private.syms | 1 + src/util/virobject.c

[libvirt PATCH v5 2/9] virthread: Introduce virLockGuard

2022-02-01 Thread Tim Wiederhake
Locks a virMutex on creation and unlocks it in its destructor. The VIR_LOCK_GUARD macro is used instead of "g_auto(virLockGuard)" to work around a clang issue (see https://bugs.llvm.org/show_bug.cgi?id=3888 and https://bugs.llvm.org/show_bug.cgi?id=43482). Typical usage: void function(virMut

Re: [PATCH] virnwfilterobj: Unlock virNWFilterObj before triggering rebuild

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 01:38:53PM +0100, Michal Privoznik wrote: > When updating am NWFilter, rebuilding of all NWFilters is > triggered. This happens in virNWFilterObjListAssignDef() by > calling virNWFilterTriggerRebuild(). Now consider another thread, > that's currently executing virNWFilterBin

[PATCH] virnwfilterobj: Unlock virNWFilterObj before triggering rebuild

2022-02-01 Thread Michal Privoznik
When updating am NWFilter, rebuilding of all NWFilters is triggered. This happens in virNWFilterObjListAssignDef() by calling virNWFilterTriggerRebuild(). Now consider another thread, that's currently executing virNWFilterBindingCreateXML() over the same NWFilter. What happens is that this second

Re: [libvirt PATCH 4/4] gitlab-ci: Introduce a new test 'integration' pipeline stage

2022-02-01 Thread Daniel P . Berrangé
On Mon, Jan 31, 2022 at 07:01:01PM +0100, Erik Skultety wrote: > Create an integration child pipeline in this stage which will trigger a > multi-project CI build of Perl bindings which are required by the TCK > test suite. > In general, this stage will install all the necessary build artifacts > an

Re: [libvirt PATCH 2/4] ci: containers: Add CentOS Stream 9 target

2022-02-01 Thread Daniel P . Berrangé
On Mon, Jan 31, 2022 at 07:00:59PM +0100, Erik Skultety wrote: > Signed-off-by: Erik Skultety > --- > ci/containers/centos-stream-9.Dockerfile | 87 > ci/gitlab.yml| 14 > ci/manifest.yml | 3 + > 3 files changed,

Re: [libvirt PATCH 1/4] ci: manifest: Allow RPM builds on CentOS Stream 8

2022-02-01 Thread Daniel P . Berrangé
On Mon, Jan 31, 2022 at 07:00:58PM +0100, Erik Skultety wrote: > The meson version provided by the package managing system satisfies our > minimum requirement. > > Signed-off-by: Erik Skultety > --- > ci/gitlab.yml | 1 - > ci/manifest.yml | 2 -- > 2 files changed, 3 deletions(-) Reviewed-by

Re: [PATCH] systemd: Use correct man page name in modular daemon service files

2022-02-01 Thread Daniel P . Berrangé
On Tue, Feb 01, 2022 at 01:16:47PM +0100, Peter Krempa wrote: > The service files were copied out of the service file for libvirtd and > the name of the corresponding manpage was not fixed. > > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2045959 > Signed-off-by: Peter Krempa > --- > sr

[PATCH] systemd: Use correct man page name in modular daemon service files

2022-02-01 Thread Peter Krempa
The service files were copied out of the service file for libvirtd and the name of the corresponding manpage was not fixed. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2045959 Signed-off-by: Peter Krempa --- src/ch/virtchd.service.in | 2 +- src/interface/virtinterfaced.s

Re: [PATCH] virnwfilterbindingobj: Fix virNWFilterBindingObjNew()

2022-02-01 Thread Ján Tomko
On a Tuesday in 2022, Michal Privoznik wrote: The idea behind virNWFilterBindingObjNew() is to create and return an object of virNWFilterBindingObjClass class. The class is virObjectLockable (and the corresponding _virNWFilterBindingObj structure has virObjectLockable parent). But for some reason

[PATCH] virnwfilterbindingobj: Fix virNWFilterBindingObjNew()

2022-02-01 Thread Michal Privoznik
The idea behind virNWFilterBindingObjNew() is to create and return an object of virNWFilterBindingObjClass class. The class is virObjectLockable (and the corresponding _virNWFilterBindingObj structure has virObjectLockable parent). But for some reason plain virObjectNew() is called. This is wrong b

Re: [PATCH v3 1/2] hw/i386: Attach CPUs to machine

2022-02-01 Thread Daniel P . Berrangé
Cc libvir-list since this will (intentionally) break compatibility with current libvirt code that looks for "/machine/unattached/device[0]" in the assumption it is the first CPU. On Tue, Feb 01, 2022 at 12:35:06AM +0100, Philippe Mathieu-Daudé wrote: > Previously CPUs were exposed in the QOM tree

Re: [PATCH v2 00/29] ppc64 PowerNV machines support

2022-02-01 Thread Daniel Henrique Barboza
Hi, The patches doesn't apply on master anymore due to new capabilities being added in mainline, so I've rebased the patches with latest master here in case someone wants to test them: https://gitlab.com/danielhb/libvirt/-/tree/pnv_v2 Thanks, Daniel On 1/25/22 17:48, Daniel Henrique Bar

[libvirt PATCH v8 2/3] Allow VF vlanid to be passed as a pointer

2022-02-01 Thread Dmitrii Shcherbakov
There should be a way to show no intent in programming a VLAN at all (including clearing it). This allows handling error conditions differently when VLAN clearing is explicit (vlan id == 0) vs implicit (vlanid == NULL - try to clear it if possible). Signed-off-by: Dmitrii Shcherbakov --- src/hyp

[libvirt PATCH v8 0/3] Ignore EPERM on implicit clearing of VF VLAN ID

2022-02-01 Thread Dmitrii Shcherbakov
SmartNIC DPUs may not expose some privileged eswitch operations to the hypervisor hosts. For example, this happens with Bluefield devices running in the ECPF (default) mode [1] for security reasons. While VF MAC address programming is possible via an RTM_SETLINK operation, trying to set a VLAN ID i

[libvirt PATCH v8 1/3] Set VF MAC and VLAN ID in two different operations

2022-02-01 Thread Dmitrii Shcherbakov
This has a benefit of being able to handle error codes for those operations separately which is useful when drivers allow setting a MAC address but do not allow setting a VLAN (which is the case with some SmartNIC DPUs). Signed-off-by: Dmitrii Shcherbakov --- src/libvirt_private.syms | 7 ++ s

[libvirt PATCH v8 3/3] Ignore EPERM on implicit clearing of VF VLAN ID

2022-02-01 Thread Dmitrii Shcherbakov
SmartNIC DPUs may not expose some privileged eswitch operations to the hypervisor hosts. For example, this happens with Bluefield devices running in the ECPF (default) mode for security reasons. While VF MAC address programming is possible via an RTM_SETLINK operation, trying to set a VLAN ID in th