Re: [libvirt] Libvirt fails to apply security context to fd/node to USB device

2018-01-23 Thread Randy Aybar
Hi Michael, Thanks for looking at the submission. I've made the proposed changes and can verify that the fix works. :) There error has gone away with the container starting. Below is a snippet of the device node from the intermediate mount namespace that eventually ends up target container's

Re: [libvirt] [PATCH v4 1/4] nwfilter: Remove unnecessary UUID comparison bypass

2018-01-23 Thread Laine Stump
On 12/08/2017 09:01 AM, John Ferlan wrote: > Commit id '46a811db07' added code to check if the filter by Name > already existed with a different UUID, to go along with the existing > found filter by UUID and compare the Names match thus making it > impossible to reach this find by Name condition wi

[libvirt] [PATCH 08/10] qemu: Add support for resctrl

2018-01-23 Thread Martin Kletzander
We've been building up to this. This adds support for cputune/cachetune settings for domains in the QEMU driver. The addition into qemuProcessSetupVcpu() automatically adds support for hotplug. For hot-unplug we need to remove the allocation only if all the vCPUs were unplugged. But since the t

[libvirt] [PATCH 07/10] tests: Add virresctrltest

2018-01-23 Thread Martin Kletzander
This test initializes capabilities from vircaps2xmldata (since it exists there already) and then requests list of free bitmaps (all unallocated space) from virresctrl.c Desirable outputs are saved in virresctrldata. Signed-off-by: Martin Kletzander --- tests/Makefile.am

[libvirt] [PATCH 06/10] conf: Add support for cputune/cachetune

2018-01-23 Thread Martin Kletzander
More info in the documentation, this is basically the XML parsing/formatting support, schemas, tests and documentation for the new cputune/cachetune element that will get used by following patches. Signed-off-by: Martin Kletzander --- docs/formatdomain.html.in | 54

[libvirt] [PATCH 10/10] tests: Clean up and modify some vircaps2xmldata

2018-01-23 Thread Martin Kletzander
Basically the `cpus` and `tasks` files are not needed, and I've witnessed on a real system that the schemata file may have spaces prepended to a line, so let's adjust at least one test so that it reflects what can happen. Also `000` allocation is invalid and a full mask means it's all free. So ad

[libvirt] [PATCH 09/10] docs: Add CAT (resctrl) support into news.xml

2018-01-23 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index b4d980624956..4ffa736c04c8 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -35,6 +35,15 @@ + + + Added support f

[libvirt] [PATCH 05/10] resctrl: Add functions to work with resctrl allocations

2018-01-23 Thread Martin Kletzander
With this commit we finally have a way to read and manipulate basic resctrl settings. Locking is done only on exposed functions that read/write from/to resctrlfs. Not in functions that are exposed in virresctrlpriv.h as those are only supposed to be used from tests. More information about how re

[libvirt] [PATCH 04/10] util: Remove now-unneeded resctrl functions

2018-01-23 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- src/libvirt_private.syms | 2 - src/util/virresctrl.c| 132 --- src/util/virresctrl.h| 11 3 files changed, 145 deletions(-) diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms index e95

[libvirt] [PATCH 01/10] Rename virResctrlInfo to virResctrlInfoPerCache

2018-01-23 Thread Martin Kletzander
Just to ease the review of following patches. Signed-off-by: Martin Kletzander --- src/conf/capabilities.c | 2 +- src/conf/capabilities.h | 2 +- src/util/virresctrl.c | 4 ++-- src/util/virresctrl.h | 8 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/conf/capab

[libvirt] [PATCH 00/10] Cache Allocation Technology support, this time for real (??)

2018-01-23 Thread Martin Kletzander
So again all the reviews are incorporated. I managed to get my hands on a machine with CAT support, so I also found out some things that needed tweaking. @Eli: I would still appreciate you helping with some testing as I wasn't able to find a machine with multiple caches (sockets) and I

[libvirt] [PATCH 03/10] conf: Use virResctrlInfo in capabilities

2018-01-23 Thread Martin Kletzander
Signed-off-by: Martin Kletzander --- src/conf/capabilities.c | 53 - src/conf/capabilities.h | 2 ++ 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/src/conf/capabilities.c b/src/conf/capabilities.c index e93eaed2f0e0..edf9f54f7710

[libvirt] [PATCH 02/10] util: Add virResctrlInfo

2018-01-23 Thread Martin Kletzander
This will make the current functions obsolete and it will provide more information to the virresctrl module so that it can be used later. Signed-off-by: Martin Kletzander --- po/POTFILES.in | 1 + src/libvirt_private.syms | 3 + src/util/virresctrl.c| 305 ++

Re: [libvirt] [PATCH] qemu: get VM's ip address from the output of arp command

2018-01-23 Thread Martin Kletzander
On Tue, Jan 23, 2018 at 03:40:02PM +0800, Chen Hanxiao wrote: From: Chen Hanxiao Introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of `arp -an` command. I'm not sure about the implications of this as sometimes we can't use that, but I guess that's fine.

Re: [libvirt] [PATCH 0/9] Resolve libvirtd hang on termination with connected long running client

2018-01-23 Thread Marc Hartmayer
On Tue, Jan 23, 2018 at 05:41 PM +0100, Marc Hartmayer wrote: > On Tue, Jan 23, 2018 at 04:01 PM +0100, John Ferlan > wrote: >> On 01/23/2018 04:21 AM, Marc Hartmayer wrote: >>> On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan >>> wrote: RFC: https://www.redhat.com/archives/libvi

Re: [libvirt] [PATCH 0/9] Resolve libvirtd hang on termination with connected long running client

2018-01-23 Thread Marc Hartmayer
On Tue, Jan 23, 2018 at 04:01 PM +0100, John Ferlan wrote: > On 01/23/2018 04:21 AM, Marc Hartmayer wrote: >> On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan >> wrote: >>> RFC: >>> https://www.redhat.com/archives/libvir-list/2018-January/msg00318.html >>> >>> Adjustments since RFC... >>> >>>

Re: [libvirt] [PATCH hooks 1/1] Add check for Signed-off-by in commit messages

2018-01-23 Thread Kashyap Chamarthy
On Mon, Jan 22, 2018 at 12:05:19PM +, Daniel P. Berrange wrote: > This extends the update hook so that it enforces a requirement to have a > Signed-off-by line in every commit message. This can be optionally > turned off in individual repos by setting the "hooks.allowmissingsob" > git config va

[libvirt] [RFC PATCH 5/5] conf: Add HTM pSeries feature

2018-01-23 Thread Andrea Bolognani
Introduce a way to enable and disable the availability of HTM (Hardware Transactional Memory) for pSeries guests. Signed-off-by: Andrea Bolognani --- The availability of the corresponding QEMU toggle is currently crudely inferred from the version number, but there's ongoing discussion on how to i

[libvirt] [PATCH 3/5] conf: Remove obsolete feature

2018-01-23 Thread Andrea Bolognani
Now that the feature has been implemented, we can get rid of the original feature and thus ensure all pSeries features are grouped together in the same sub-element. Compatibility code is provided so that existing guests can be parsed and migrated successfully despite the change. Signed-off-by:

[libvirt] [PATCH 2/5] conf: Add pSeries features

2018-01-23 Thread Andrea Bolognani
We're going to introduce a number of optional, pSeries-specific features, so we want to have a dedicated sub-element to avoid cluttering the element. Along with the generic framework, we also introduce the first actual feature: HPT (Hash Page Table) tuning. This will replace the existing feature

[libvirt] [PATCH 0/5] Add optional pSeries features

2018-01-23 Thread Andrea Bolognani
I consider the first 4 patches ready for inclusion, but the last one - which is basically what justifies going through all this trouble - is sub-optimal until more development has happened in QEMU, so it's marked as RFC. Still, I thought I'd get the ball rolling sooner rather than later. Andrea Bo

[libvirt] [PATCH 4/5] tests: Clean up HPT tests

2018-01-23 Thread Andrea Bolognani
Give them better names and remove some redundancy. Signed-off-by: Andrea Bolognani --- I would probably just squash this into the previous patch, but I figured others would prefer it as a separate one. ...es-hpt-resizing.args => pseries-features-hpt.args} | 1 - .../pseries-features-hpt.xml}

[libvirt] [PATCH 1/5] docs: Refactor schema for 'resizing' attribute

2018-01-23 Thread Andrea Bolognani
We're going to use the same attribute for two elements, so it makes sense to give it its own stand-alone definition. Signed-off-by: Andrea Bolognani --- docs/schemas/domaincommon.rng | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/docs/schemas/domaincommon

Re: [libvirt] [PATCH 6/9] conf: Add support for cputune/cachetune

2018-01-23 Thread John Ferlan
On 01/23/2018 05:07 AM, Martin Kletzander wrote: > On Wed, Jan 03, 2018 at 06:50:22PM -0500, John Ferlan wrote: >> >> >> On 12/13/2017 10:39 AM, Martin Kletzander wrote: >>> More info in the documentation, this is basically the XML >>> parsing/formatting >>> support, schemas, tests and documentat

Re: [libvirt] [PATCH 0/9] Resolve libvirtd hang on termination with connected long running client

2018-01-23 Thread John Ferlan
On 01/23/2018 04:21 AM, Marc Hartmayer wrote: > On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan > wrote: >> RFC: >> https://www.redhat.com/archives/libvir-list/2018-January/msg00318.html >> >> Adjustments since RFC... >> >> Patches 1&2: No change, were already R-B'd >> Patch 3: Removed code

[libvirt] [PATCH v2 10/11] logd: add support for admin protocol in virtlogd

2018-01-23 Thread Daniel P. Berrange
Add a virtlogd-admin-sock can serves the admin protocol for the virtlogd daemon and define a virtlogd:///{system,session} URI scheme for connecting to it. Signed-off-by: Daniel P. Berrange --- src/Makefile.am | 1 + src/libvirt-admin.c | 20 +++-- src/lo

[libvirt] [PATCH v2 09/11] rpc: refactor virNetServer setup for post-exec restarts

2018-01-23 Thread Daniel P. Berrange
With the current code it is neccessary to call virNetDaemonNewPostExecRestart() and then for each server that needs restarting you are supposed to call virNetDaemonAddSeverPostExecRestart() This is fine if there's only ever one server, but as soon as you have two servers it is impossible to

[libvirt] [PATCH v2 03/11] admin: add support for post-exec restart callbacks

2018-01-23 Thread Daniel P. Berrange
We don't have any per-client private data we need to persist, but the RPC infrastructure requires that we provide the callbacks and serialize an empty JSON object. This makes us future proof going forwards. Signed-off-by: Daniel P. Berrange --- src/admin/admin_server_dispatch.c | 21

[libvirt] [PATCH v2 04/11] util: add virGetUNIXSocketPath helper

2018-01-23 Thread Daniel P. Berrange
When receiving multiple socket FDs from systemd, it is critical to know what socket address each corresponds to so we can setup the right protocols on each. Signed-off-by: Daniel P. Berrange --- src/libvirt_private.syms | 1 + src/util/virutil.c | 45 ++

[libvirt] [PATCH v2 02/11] libvirtd: rename virNetServerClient callback impls to match type names

2018-01-23 Thread Daniel P. Berrange
Signed-off-by: Daniel P. Berrange --- daemon/libvirtd.c | 8 daemon/remote.c | 6 +++--- daemon/remote.h | 6 +++--- src/admin/admin_server_dispatch.c | 6 +++--- src/admin/admin_server_dispatch.h | 4 ++-- 5 files changed, 15 insertion

[libvirt] [PATCH v2 01/11] admin: move admins server impl/dispatch into src/admin directory

2018-01-23 Thread Daniel P. Berrange
The admin server functionality is a generic concept that should be wired up into all libvirt daemons, but is currently integrated with the libvirtd code. Move it all into the src/admin directory to prepare for broader reuse. Signed-off-by: Daniel P. Berrange --- .gitignore

[libvirt] [PATCH v2 00/11] Add admin protocol support for virtlogd/virtlockd

2018-01-23 Thread Daniel P. Berrange
The initial admin protocol support was only integrated into libvirtd. This series extracts that code so that it is reusable with all the daemons we have (and more than we'll get). In v2: - Fixed completely broken post-exec restart support for admin servers - Misc fixes from v1 review Daniel P.

[libvirt] [PATCH v2 11/11] lockd: add support for admin protocol in virtlockd

2018-01-23 Thread Daniel P. Berrange
Add a virtlockd-admin-sock can serves the admin protocol for the virtlockd daemon and define a virtlockd:///{system,session} URI scheme for connecting to it. Signed-off-by: Daniel P. Berrange --- cfg.mk| 1 - src/Makefile.am | 1 + src/l

[libvirt] [PATCH v2 06/11] rpc: pass virNetServer to post-exec restart callback in typesafe manner

2018-01-23 Thread Daniel P. Berrange
The virNetServer class is passing a pointer to itself to the virNetServerClient as a 'void *' pointer. This is presumably due to fact that the virnetserverclient.h file doesn't see the virNetServerPtr typedef. The typedef is easily movable though, which lets us get typesafe parameter passing, remov

[libvirt] [PATCH v2 07/11] rpc: annotate various parameters as being required to be non-NULL

2018-01-23 Thread Daniel P. Berrange
The server name and client data callbacks need to be non-NULL or the system will crash at various times. This is particularly bad when some of the crashes only occur post-exec restart. Signed-off-by: Daniel P. Berrange --- src/rpc/virnetserver.h | 7 +-- src/rpc/virnetserverclient.h |

[libvirt] [PATCH v2 08/11] rpc: add method for checking if a named server exists

2018-01-23 Thread Daniel P. Berrange
It is not possible to blindly call virNetDaemonGetServer() because in a post-exec restart scenario, some servers may not exist and this method will pollute the error logs. Signed-off-by: Daniel P. Berrange --- src/libvirt_remote.syms | 1 + src/rpc/virnetdaemon.c | 13 + src/rpc/vi

[libvirt] [PATCH v2 05/11] rpc: clarify "void *" values passed to client callbacks

2018-01-23 Thread Daniel P. Berrange
Signed-off-by: Daniel P. Berrange --- src/rpc/virnetserverclient.h | 9 + 1 file changed, 9 insertions(+) diff --git a/src/rpc/virnetserverclient.h b/src/rpc/virnetserverclient.h index 0fa8745191..14ace9e522 100644 --- a/src/rpc/virnetserverclient.h +++ b/src/rpc/virnetserverclient.h @@

Re: [libvirt] [dbus PATCH v2] main: add support for all usable libvirt drivers

2018-01-23 Thread Daniel P. Berrange
On Tue, Jan 23, 2018 at 02:11:50PM +0100, Pavel Hrdina wrote: > Some of the drivers are remote only, such as ESX, GSX, VPX, PHyp and > HyperV. Currently we support only local drivers. > > Signed-off-by: Pavel Hrdina > --- > src/main.c | 21 + > test/libvirttest.py |

[libvirt] [dbus PATCH v2] main: add support for all usable libvirt drivers

2018-01-23 Thread Pavel Hrdina
Some of the drivers are remote only, such as ESX, GSX, VPX, PHyp and HyperV. Currently we support only local drivers. Signed-off-by: Pavel Hrdina --- src/main.c | 21 + test/libvirttest.py | 2 +- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/

Re: [libvirt] [dbus RFC 00/11] improve libvirt connections handling

2018-01-23 Thread Pavel Hrdina
On Tue, Jan 23, 2018 at 10:13:07AM +, Daniel P. Berrange wrote: > On Mon, Jan 22, 2018 at 06:15:58PM +0100, Pavel Hrdina wrote: > > This patch series is a proposal to how to implement libvirt connections > > in the libvirt D-Bus binding. The design is based on a discussion with > > Daniel and

Re: [libvirt] [dbus RFC 11/11] main: add support for all libvirt drivers

2018-01-23 Thread Daniel P. Berrange
On Tue, Jan 23, 2018 at 12:37:53PM +0100, Pavel Hrdina wrote: > On Tue, Jan 23, 2018 at 10:12:26AM +, Daniel P. Berrange wrote: > > On Mon, Jan 22, 2018 at 06:16:09PM +0100, Pavel Hrdina wrote: > > > Signed-off-by: Pavel Hrdina > > > --- > > > src/main.c | 26 ++ > > >

Re: [libvirt] [PATCH 8/9] qemu: Add support for resctrl

2018-01-23 Thread Martin Kletzander
On Wed, Jan 03, 2018 at 07:19:00PM -0500, John Ferlan wrote: Need to beef up this commit message. On 12/13/2017 10:39 AM, Martin Kletzander wrote: Signed-off-by: Martin Kletzander --- src/qemu/qemu_process.c | 61 + 1 file changed, 56 insertion

Re: [libvirt] [dbus RFC 11/11] main: add support for all libvirt drivers

2018-01-23 Thread Pavel Hrdina
On Tue, Jan 23, 2018 at 10:12:26AM +, Daniel P. Berrange wrote: > On Mon, Jan 22, 2018 at 06:16:09PM +0100, Pavel Hrdina wrote: > > Signed-off-by: Pavel Hrdina > > --- > > src/main.c | 26 ++ > > 1 file changed, 22 insertions(+), 4 deletions(-) > > > > diff --git a/sr

[libvirt] [PATCH] qemu: get VM's ip address from the output of arp command

2018-01-23 Thread Chen Hanxiao
From: Chen Hanxiao Introduce VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP to get ip address of VM from the output of `arp -an` command. We can use: domifaddr f26-cloud --source arp to get the address. Signed-off-by: Chen Hanxiao --- include/libvirt/libvirt-domain.h | 1 + src/qemu/qemu_driver.c

Re: [libvirt] [PATCH] docs: formatdomain: Document the CPU feature 'name' attribute

2018-01-23 Thread Kashyap Chamarthy
On Mon, Jan 22, 2018 at 04:43:35PM -0200, Eduardo Habkost wrote: > On Wed, Jan 17, 2018 at 09:04:26AM +0100, Kashyap Chamarthy wrote: [...] > > > > The list of known CPU feature > > > > +names (e.g. 'vmx', 'cmt', et cetera) can be found in the same >

Re: [libvirt] [dbus RFC 06/11] connect: implement reconnect functionality to libvirt

2018-01-23 Thread Pavel Hrdina
On Tue, Jan 23, 2018 at 10:02:24AM +, Daniel P. Berrange wrote: > On Mon, Jan 22, 2018 at 06:16:04PM +0100, Pavel Hrdina wrote: > > If the connection dies for some reason between D-Bus calls we need > > to properly reconnect because the current connection is not usable > > anymore. Without thi

Re: [libvirt] [dbus RFC 01/11] util: introduce VIRT_ARRAY_CARDINALITY macro

2018-01-23 Thread Pavel Hrdina
On Tue, Jan 23, 2018 at 09:48:51AM +, Daniel P. Berrange wrote: > On Mon, Jan 22, 2018 at 06:15:59PM +0100, Pavel Hrdina wrote: > > Signed-off-by: Pavel Hrdina > > --- > > src/util.h | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/src/util.h b/src/util.h > > index 0c9f3d7..6

Re: [libvirt] [dbus RFC 00/11] improve libvirt connections handling

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:15:58PM +0100, Pavel Hrdina wrote: > This patch series is a proposal to how to implement libvirt connections > in the libvirt D-Bus binding. The design is based on a discussion with > Daniel and it should follow D-Bus convention. > > Each connection is represented as ex

Re: [libvirt] [dbus RFC 11/11] main: add support for all libvirt drivers

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:09PM +0100, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- > src/main.c | 26 ++ > 1 file changed, 22 insertions(+), 4 deletions(-) > > diff --git a/src/main.c b/src/main.c > index 14c7c18..6421919 100644 > --- a/src/main.c > +++ b/s

Re: [libvirt] [PATCH 6/9] conf: Add support for cputune/cachetune

2018-01-23 Thread Martin Kletzander
On Wed, Jan 03, 2018 at 06:50:22PM -0500, John Ferlan wrote: On 12/13/2017 10:39 AM, Martin Kletzander wrote: More info in the documentation, this is basically the XML parsing/formatting support, schemas, tests and documentation for the new cputune/cachetune element that will get used by follo

Re: [libvirt] [dbus RFC 10/11] main: implement multiple connection within one daemon

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:08PM +0100, Pavel Hrdina wrote: > This effectively removes --connect parameter from daemon, for now we > will support only local connection. Instead of specifying URI for > different drivers we will use connect object which allows using > multiple drivers from one dae

Re: [libvirt] [dbus RFC 09/11] domain: derive domain path from connect path

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:07PM +0100, Pavel Hrdina wrote: > Each connection have its own domains so we must make the domain path > as a sub-path of the specific connection. Might be nice to illustrate the new scheme which, IIUC, will be /org/libvirt/Connect/domain/{uuid} ? > Signed-off-by

Re: [libvirt] [dbus RFC 07/11] connect: move domain related code to domain.c

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:05PM +0100, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- > src/connect.c | 7 ++- > src/connect.h | 2 ++ > src/domain.c | 7 +++ > 3 files changed, 11 insertions(+), 5 deletions(-) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: https

Re: [libvirt] [dbus RFC 08/11] connect: store connect path in connect structure

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:06PM +0100, Pavel Hrdina wrote: > This prepares for multiple connection objects since each object will > have different path based on the driver name. > > Signed-off-by: Pavel Hrdina > --- > src/connect.c | 3 ++- > src/connect.h | 1 + > src/events.c | 2 +- > 3 f

Re: [libvirt] [dbus RFC 05/11] connect: don't use default libvirt authentication callback

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:03PM +0100, Pavel Hrdina wrote: > We need to implement our own authentication callback because the > default one ask for credentials using STDIO. This is not suitable > behavior for daemon. > > For now we will require usage of client configuration file for libvirt >

Re: [libvirt] [dbus RFC 06/11] connect: implement reconnect functionality to libvirt

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:04PM +0100, Pavel Hrdina wrote: > If the connection dies for some reason between D-Bus calls we need > to properly reconnect because the current connection is not usable > anymore. Without this the only solution would be to restart the > libvirt-dbus daemon. > > Sign

Re: [libvirt] [dbus RFC 04/11] connect: implement lazy connection

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:02PM +0100, Pavel Hrdina wrote: > Open a connection to libvirt only when it is required. > > Signed-off-by: Pavel Hrdina > --- > src/connect.c | 41 +++-- > src/connect.h | 1 + > 2 files changed, 36 insertions(+), 6 deletions(-)

Re: [libvirt] [dbus RFC 03/11] src: rename manager to connect

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:01PM +0100, Pavel Hrdina wrote: > Manager was a good name for the original design. However, the design > will be changed that for now libvirt-dbus will be using only local > connection and will support multiple drivers. > > Signed-off-by: Pavel Hrdina > --- > src/M

Re: [libvirt] [dbus RFC 01/11] util: introduce VIRT_ARRAY_CARDINALITY macro

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:15:59PM +0100, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- > src/util.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/src/util.h b/src/util.h > index 0c9f3d7..6d99841 100644 > --- a/src/util.h > +++ b/src/util.h > @@ -8,6 +8,8 @@ > #define _cl

Re: [libvirt] [dbus RFC 02/11] util: introduce virtDBusUtilSetError helper

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 06:16:00PM +0100, Pavel Hrdina wrote: > Signed-off-by: Pavel Hrdina > --- > src/util.c | 7 +++ > src/util.h | 4 > 2 files changed, 11 insertions(+) Reviewed-by: Daniel P. Berrange Regards, Daniel -- |: https://berrange.com -o-https://www.flickr.com/

Re: [libvirt] [PATCH hooks 1/1] Add check for Signed-off-by in commit messages

2018-01-23 Thread Daniel P. Berrange
On Mon, Jan 22, 2018 at 08:58:52AM -0500, John Ferlan wrote: > It's also easier than the : > > Reviewed-by: John Ferlan > > line that I keep in a "cheats" file that I always have open so that I > don't have to add it for patches I review. Of course, I could also just > say ACK, but the R-b seem

Re: [libvirt] [PATCH 0/9] Resolve libvirtd hang on termination with connected long running client

2018-01-23 Thread Marc Hartmayer
On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan wrote: > RFC: > https://www.redhat.com/archives/libvir-list/2018-January/msg00318.html > > Adjustments since RFC... > > Patches 1&2: No change, were already R-B'd > Patch 3: Removed code as noted in code review, update commit message > Patch 4: F

Re: [libvirt] [PATCH 1/9] libvirtd: Alter refcnt processing for domain server objects

2018-01-23 Thread Marc Hartmayer
On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan wrote: > Once virNetDaemonAddServer returns, the @srv or @srvAdm have > either been added to the @dmn list increasing the refcnt or > there was an error. In either case, we can lower the refcnt > from virNetServerNew, but not set to NULL. Thus "u

Re: [libvirt] [PATCH 2/9] libvirtd: Alter refcnt processing for server program objects

2018-01-23 Thread Marc Hartmayer
On Fri, Jan 19, 2018 at 06:23 PM +0100, John Ferlan wrote: > Once virNetServerProgramNew returns, the program objects have > either been added to the @srv or @srvAdm list increasing the > refcnt or there was an error. In either case, we can lower the > refcnt from virNetServerProgramNew and set th