Re: [libvirt] [PATCH] qemu: Fix regression in snapshot-revert

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 5:52 PM, Eric Blake wrote: Commit f10562799 introduced a regression: if reverting to a snapshot fails early (such as when we refuse to revert to an external snapshot), we lose track of the domain's current snapshot. See: https://bugzilla.redhat.com/1738747 Signed-off-by: Eric Blake

[libvirt] [PATCH] qemu: Fix regression in snapshot-revert

2019-09-09 Thread Eric Blake
Commit f10562799 introduced a regression: if reverting to a snapshot fails early (such as when we refuse to revert to an external snapshot), we lose track of the domain's current snapshot. See: https://bugzilla.redhat.com/1738747 Signed-off-by: Eric Blake --- src/qemu/qemu_driver.c | 2 -- 1

Re: [libvirt] [PATCH 6/6] lib: Define and use autofree for virConfPtr

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: Signed-off-by: Michal Privoznik --- Reviewed-by: Daniel Henrique Barboza src/bhyve/bhyve_conf.c| 10 +--- src/libvirt-admin.c | 3 +- src/libvirt.c | 4 +- src/libxl/libxl_conf.c

Re: [libvirt] [PATCH 5/6] lxcParseConfigString: Don't return success if post parse callback fails

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: Signed-off-by: Michal Privoznik --- Reviewed-by: Daniel Henrique Barboza src/lxc/lxc_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 018eec6977..bb8c359147 100644

Re: [libvirt] [PATCH 4/6] qemu_conf: Use more of VIR_AUTOUNREF()

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: Signed-off-by: Michal Privoznik --- Reviewed-by: Daniel Henrique Barboza src/qemu/qemu_conf.c | 139 --- 1 file changed, 63 insertions(+), 76 deletions(-) diff --git a/src/qemu/qemu_conf.c

Re: [libvirt] [PATCH 3/6] qemu_conf: Use more of VIR_AUTOFREE()

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: Signed-off-by: Michal Privoznik --- make syntax-check wasn't happy about this patch, at least  in my box. This adjustment make it happy again: [danielhb@rekt libvirt]$ git diff diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index

Re: [libvirt] [PATCH 1/6] qemu_conf.c: Fix naming of *AddRemove* functions

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: Our naming rules prefer qemuObjectOperation() scheme rather than qemuOperationObject() for function names. These were not honoured in recent commits to qemu_conf.c. Signed-off-by: Michal Privoznik --- Reviewed-by: Daniel Henrique Barboza

Re: [libvirt] [PATCH 2/6] qemu_conf: Drop a pair of needless 'cleanup' labels

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 1:00 PM, Michal Privoznik wrote: There are two 'cleanup' labels - one in virQEMUDriverConfigHugeTLBFSInit() and the other in virQEMUDriverConfigSetDefaults() that do nothing more than return and integer value. No memory freeing or anything important is done there. Drop them in

[libvirt] [PATCH] apparmor: avoid copying empty profile name

2019-09-09 Thread Jim Fehlig
AppArmorGetSecurityProcessLabel copies the VM's profile name to the label member of virSecurityLabel struct. If the profile is not loaded, the name is set empty before calling virStrcpy to copy it. However, virStrcpy will fail if src is empty (0 length), causing AppArmorGetSecurityProcessLabel to

[libvirt] [PATCH 1/6] qemu_conf.c: Fix naming of *AddRemove* functions

2019-09-09 Thread Michal Privoznik
Our naming rules prefer qemuObjectOperation() scheme rather than qemuOperationObject() for function names. These were not honoured in recent commits to qemu_conf.c. Signed-off-by: Michal Privoznik --- src/qemu/qemu_conf.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-)

[libvirt] [PATCH 4/6] qemu_conf: Use more of VIR_AUTOUNREF()

2019-09-09 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/qemu/qemu_conf.c | 139 --- 1 file changed, 63 insertions(+), 76 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index c3255a6f54..f805991872 100644 --- a/src/qemu/qemu_conf.c +++

[libvirt] [PATCH 5/6] lxcParseConfigString: Don't return success if post parse callback fails

2019-09-09 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/lxc/lxc_native.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/lxc_native.c b/src/lxc/lxc_native.c index 018eec6977..bb8c359147 100644 --- a/src/lxc/lxc_native.c +++ b/src/lxc/lxc_native.c @@ -1190,7 +1190,7 @@

[libvirt] [PATCH 3/6] qemu_conf: Use more of VIR_AUTOFREE()

2019-09-09 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/qemu/qemu_conf.c | 130 +-- 1 file changed, 40 insertions(+), 90 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index f11df03cf8..c3255a6f54 100644 --- a/src/qemu/qemu_conf.c +++

[libvirt] [PATCH 2/6] qemu_conf: Drop a pair of needless 'cleanup' labels

2019-09-09 Thread Michal Privoznik
There are two 'cleanup' labels - one in virQEMUDriverConfigHugeTLBFSInit() and the other in virQEMUDriverConfigSetDefaults() that do nothing more than return and integer value. No memory freeing or anything important is done there. Drop them in favour of returning immediately. Signed-off-by:

[libvirt] [PATCH 6/6] lib: Define and use autofree for virConfPtr

2019-09-09 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/bhyve/bhyve_conf.c| 10 +--- src/libvirt-admin.c | 3 +- src/libvirt.c | 4 +- src/libxl/libxl_conf.c| 22 +++- src/libxl/libxl_driver.c | 8 +-- src/libxl/xen_xl.c|

[libvirt] [PATCH 0/6] qemu_conf: Use more VIR_AUTO*()

2019-09-09 Thread Michal Privoznik
Michal Prívozník (6): qemu_conf.c: Fix naming of *AddRemove* functions qemu_conf: Drop a pair of needless 'cleanup' labels qemu_conf: Use more of VIR_AUTOFREE() qemu_conf: Use more of VIR_AUTOUNREF() lxcParseConfigString: Don't return success if post parse callback fails lib:

Re: [libvirt] [PATCH v3 0/5] PCI Multifunction hotplug/unplug, part 1

2019-09-09 Thread Michal Privoznik
On 8/29/19 9:18 PM, Daniel Henrique Barboza wrote: changes in v3: - rebased after all PCI test changes went to master. - a couple of patches were dropped due to redundancy with what Michal already pushed upstream. - patches 3 and 5 were already R-b by Michal in v2. Hi, In this new version I'm

Re: [libvirt] [PATCH v3 1/5] virpcimock.c: mock /dev/vfio

2019-09-09 Thread Michal Privoznik
On 8/29/19 9:18 PM, Daniel Henrique Barboza wrote: This patch adds mock of the /dev/vfio path, needed for proper implementation of the support for multifunction/multiple devices per iommu groups. To do that, the existing bind and unbind operations were adapted to operate with the mocked

[libvirt] [PATCH] virhostdev: Don't unref @pcidevs twice

2019-09-09 Thread Michal Privoznik
In f08e6883cb4 I've made @pcidevs in virHostdevReAttachPCIDevices() to be automatically unrefed using VIR_AUTOUNREF() but I forgot to remove the line that explicitly unrefs the object at the end of the function. Signed-off-by: Michal Privoznik --- Pushed as trivial. src/util/virhostdev.c | 1

Re: [libvirt] [PATCH 3/3] qemu: Adjust max memlock on mdev hotplug

2019-09-09 Thread Pavel Hrdina
On Tue, Sep 03, 2019 at 10:09:48PM +0200, Eric Farman wrote: > When starting a domain, we use the presence of a vfio-pci or > mdev hostdev to determine if the memlock maximum needs to be > increased. But if we hotplug either of these devices, only the > vfio-pci path gets that love. This means

Re: [libvirt] [dockerfiles PATCH v2] refresh: Update Dockerfiles due to new "locales" dependency

2019-09-09 Thread Andrea Bolognani
On Mon, 2019-09-09 at 13:49 +0200, Fabiano Fidêncio wrote: > Let's refresh the archived Dockerfiles as "locales" dependency has > to be added to all Debian, Ubuntu, and Fedora files. > > Signed-off-by: Fabiano Fidêncio > --- > buildenv-libosinfo-debian-10.zip | Bin 559 -> 629

Re: [libvirt] [jenkins-ci PATCH] lcitool: Generate the en_US.UTF-8 locale for deb containers

2019-09-09 Thread Andrea Bolognani
On Mon, 2019-09-09 at 13:47 +0200, Fabiano Fidêncio wrote: > osinfo-db tests require "en_US.UTF-8" locate to be set. Since commit s/locate/locale/ > 3b682c416b0d the locales are installed but we have to actually generate > it for the containers. > > The reason we don't have to do that for the

Re: [libvirt] [PATCH] Revert "dbus: correctly build reply message"

2019-09-09 Thread Daniel P . Berrangé
On Mon, Sep 09, 2019 at 02:11:36PM +0100, Daniel P. Berrangé wrote: > On Mon, Sep 09, 2019 at 03:47:21PM +0400, Marc-André Lureau wrote: > > Hi > > > > On Fri, Sep 6, 2019 at 7:37 PM Michal Privoznik wrote: > > > > > > This reverts commit 39dded7bb61444bb608fadd3f82f6fe93d08fd0e. > > > > > >

Re: [libvirt] [PATCH] Revert "dbus: correctly build reply message"

2019-09-09 Thread Daniel P . Berrangé
On Mon, Sep 09, 2019 at 03:47:21PM +0400, Marc-André Lureau wrote: > Hi > > On Fri, Sep 6, 2019 at 7:37 PM Michal Privoznik wrote: > > > > This reverts commit 39dded7bb61444bb608fadd3f82f6fe93d08fd0e. > > > > This commit broke virpolkittest on Ubuntu 18 which has an old > > dbus (v1.12.2). Any

Re: [libvirt] [PATCH v1 3/3] qemu_conf.c: introduce qemuAddRemoveSharedDeviceInternal

2019-09-09 Thread Daniel Henrique Barboza
On 9/9/19 9:55 AM, Michal Privoznik wrote: On 9/4/19 1:06 AM, Daniel Henrique Barboza wrote: After the previous commits, qemuAddSharedDevice() and qemuRemoveSharedDevice() are now the same code with a different flag to call the internal functions. This patch aggregates the common code into a

Re: [libvirt] [jenkins-ci PATCH v2] guests: Include "locales" by default

2019-09-09 Thread Andrea Bolognani
On Mon, 2019-09-09 at 13:18 +0200, Fabiano Fidêncio wrote: > On Mon, Sep 9, 2019 at 12:00 PM Andrea Bolognani wrote: > > Ideally we'd do this not just for containers, but for virtual > > machines as well; in fact, I'm quite surprised the osinfo-db-check > > job it didn't start failing there too.

Re: [libvirt] [PATCH v1 2/3] qemu_conf.c: introduce qemuAddRemoveSharedDiskInternal

2019-09-09 Thread Michal Privoznik
On 9/4/19 1:06 AM, Daniel Henrique Barboza wrote: Following the same idea of avoid code repetition from the previous patch, this commit introduces a new function that aggregates the functions of qemuAddSharedDisk() and qemuRemoveSharedDisk() into a single place, using a flag to switch between

Re: [libvirt] [PATCH v1 1/3] qemu_conf.c: introduce qemuAddRemoveSharedHostdevInternal

2019-09-09 Thread Michal Privoznik
On 9/4/19 1:06 AM, Daniel Henrique Barboza wrote: qemuAddSharedHostdev() has a code similar to qemuRemoveSharedHostdev(), with exception of one line that defines the operation (add or remove). This patch introduces a new function that aggregates the common code, using a flag to switch between

Re: [libvirt] [PATCH v1 3/3] qemu_conf.c: introduce qemuAddRemoveSharedDeviceInternal

2019-09-09 Thread Michal Privoznik
On 9/4/19 1:06 AM, Daniel Henrique Barboza wrote: After the previous commits, qemuAddSharedDevice() and qemuRemoveSharedDevice() are now the same code with a different flag to call the internal functions. This patch aggregates the common code into a new function called

Re: [libvirt] [PATCH v1 0/3] small code repetition purge on qemu_conf.c

2019-09-09 Thread Pavel Hrdina
On Tue, Sep 03, 2019 at 08:06:04PM -0300, Daniel Henrique Barboza wrote: > Stumbled on this while changing qemu_conf.c for other > reasons. Moved code around here and there to avoid > repetition. > > Final result is 23 less lines for the same functionality, > which is nothing to write home about

Re: [libvirt] [PATCH 4/4] qemu_capabilities: Temporarily disable dbus-vmstate capability

2019-09-09 Thread Marc-André Lureau
Hi On Mon, Sep 9, 2019 at 2:49 PM Ján Tomko wrote: > > On Mon, Sep 09, 2019 at 11:23:59AM +0200, Michal Privoznik wrote: > >On 9/6/19 5:55 PM, Ján Tomko wrote: > >>[cc-ing Marc-André] > >> > >>On Fri, Sep 06, 2019 at 04:25:19PM +0200, Michal Privoznik wrote: > >>>The qemu side is not merged in

[libvirt] [dockerfiles PATCH v2] refresh: Update Dockerfiles due to new "locales" dependency

2019-09-09 Thread Fabiano Fidêncio
Let's refresh the archived Dockerfiles as "locales" dependency has to be added to all Debian, Ubuntu, and Fedora files. Signed-off-by: Fabiano Fidêncio --- buildenv-libosinfo-debian-10.zip | Bin 559 -> 629 bytes buildenv-libosinfo-debian-sid.zip | Bin 559 -> 629

Re: [libvirt] [PATCH] Revert "dbus: correctly build reply message"

2019-09-09 Thread Marc-André Lureau
Hi On Fri, Sep 6, 2019 at 7:37 PM Michal Privoznik wrote: > > This reverts commit 39dded7bb61444bb608fadd3f82f6fe93d08fd0e. > > This commit broke virpolkittest on Ubuntu 18 which has an old > dbus (v1.12.2). Any other distro with the recent one works > (v1.12.16) which hints its a bug in dbus

[libvirt] [jenkins-ci PATCH] lcitool: Generate the en_US.UTF-8 locale for deb containers

2019-09-09 Thread Fabiano Fidêncio
osinfo-db tests require "en_US.UTF-8" locate to be set. Since commit 3b682c416b0d the locales are installed but we have to actually generate it for the containers. The reason we don't have to do that for the virtual machines is because the preseed file used for installed them already forces it:

[libvirt] [PATCH v2 11/11] conf: parse hostdev missing flag

2019-09-09 Thread Nikolay Shirokovskiy
We want to keep this flag across libvirtd restarts. Signed-off-by: Nikolay Shirokovskiy --- src/conf/domain_conf.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c200af050c..862ca4bd3a 100644 --- a/src/conf/domain_conf.c +++

[libvirt] [PATCH v2 05/11] qemu: handle libvirtd restart after host usb device unplug

2019-09-09 Thread Nikolay Shirokovskiy
It is possible for libvirtd to go down before DEVICE_DELETED event is delivered upon usb hostdev unplug and to receive the event after the libvirtd is up. In order to handle this case we need to save usb hostdev deleteAction is status file. Signed-off-by: Nikolay Shirokovskiy ---

[libvirt] [PATCH v2 08/11] qemu: handle host usb device plug/unplug when libvirtd is down

2019-09-09 Thread Nikolay Shirokovskiy
Somebody can easily unplug usb device from host while libvirtd is being stopped. Also usb device can be plugged or unplugged/plugged back and so forth. Let's handle such cases. Signed-off-by: Nikolay Shirokovskiy --- src/qemu/qemu_process.c | 55 + 1 file

[libvirt] [PATCH v2 07/11] qemu: hotplug: update device list on device deleted event

2019-09-09 Thread Nikolay Shirokovskiy
I guess this is the missing piece for [1]. It did not hurt before (like we didn't even see any errors/warns in logs) because in qemuProcessUpdateDevices function virDomainDefFindDevice does not find device deleted from libvirt config. But now in case of unpluggind usb device from host we leave

[libvirt] [PATCH v2 04/11] qemu: handle host usb device add/del udev events

2019-09-09 Thread Nikolay Shirokovskiy
Now when code handling attaching/detaching usb hostdev is appropriately changed use it to handle host usb device udev add/del events. Signed-off-by: Nikolay Shirokovskiy --- src/qemu/Makefile.inc.am | 2 + src/qemu/qemu_conf.h | 3 + src/qemu/qemu_domain.c | 2 +

[libvirt] [PATCH v2 03/11] qemu: support usb hostdev plugging back

2019-09-09 Thread Nikolay Shirokovskiy
We are going to use qemuDomainAttachHostUSBDevice when host usb device is plugged back to node. Signed-off-by: Nikolay Shirokovskiy --- src/qemu/qemu_hotplug.c | 29 - 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_hotplug.c

[libvirt] [PATCH v2 06/11] qemu: handle race on device deletion and usb host device plugging

2019-09-09 Thread Nikolay Shirokovskiy
Imagine host usb device is unplugged from host and as a result we send command to qemu to delete appropriate device. Then before qemu device is deleted host usb device is plugged back. Currenly code supposes there is no remnant device in qemu and will try to add new device and the attempt will

[libvirt] [PATCH v2 00/11] hostdev: handle usb detach/attach on node

2019-09-09 Thread Nikolay Shirokovskiy
*Notes* Deleting usb device from qemu is synchronous operation (although it is not stated in qemu API). I did not used this knowledge in the series. The last patch is remnant of previus version of the series yet it is useful. Diff to previous[1] version: - don't use dummy device while host

[libvirt] [PATCH v2 10/11] qemu: handle detaching of unplugged hostdev

2019-09-09 Thread Nikolay Shirokovskiy
If hostdev is unplugged we don't need to delete it's correspondent device from qemu etc. Just remove it from config immediately. Signed-off-by: Nikolay Shirokovskiy --- src/qemu/qemu_hotplug.c | 16 +++- src/util/virhostdev.c | 2 ++ 2 files changed, 17 insertions(+), 1

[libvirt] [PATCH v2 09/11] qemu: don't mess with non mandatory hostdevs on reattaching

2019-09-09 Thread Nikolay Shirokovskiy
First I don't want to add code to handle dummy device that is used when host usb device is not present at the moment of starting/migrating etc. Second supporting non mandatory policies would require to handle races when host usb device is plugged to host and libvirtd starts adding device but if in

[libvirt] [PATCH v2 02/11] qemu: support host usb device unplug

2019-09-09 Thread Nikolay Shirokovskiy
Handle host usb device unplug in DEVICE_DELETED handle execution path. Signed-off-by: Nikolay Shirokovskiy --- src/qemu/qemu_hotplug.c | 38 +++--- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c

[libvirt] [PATCH v2 01/11] qemu: track hostdev delete intention

2019-09-09 Thread Nikolay Shirokovskiy
We are going to call qemuDomainDetachDeviceLive when usb device is unplugged from host. But later when DEVICE_DELETED event is delivered we need to keep device in libvirt config. For this purpuse let's save delete intention in device config. Signed-off-by: Nikolay Shirokovskiy ---

Re: [libvirt] [PATCH v1 1/3] qemu_conf.c: introduce qemuAddRemoveSharedHostdevInternal

2019-09-09 Thread Pavel Hrdina
On Tue, Sep 03, 2019 at 08:06:05PM -0300, Daniel Henrique Barboza wrote: > qemuAddSharedHostdev() has a code similar to > qemuRemoveSharedHostdev(), with exception of one line that > defines the operation (add or remove). > > This patch introduces a new function that aggregates the common > code,

Re: [libvirt] [jenkins-ci PATCH v2] guests: Include "locales" by default

2019-09-09 Thread Fabiano Fidêncio
On Mon, Sep 9, 2019 at 12:00 PM Andrea Bolognani wrote: > > On Fri, 2019-09-06 at 14:12 +0200, Fabiano Fidêncio wrote: > > osinfo-db tests require "en_US.UTF-8" locale to be set. Unfortunately, > > our containers do not contain the needed locale file. > > > > After a discussion on libosinfo

Re: [libvirt] [PATCH] qemu: update threading info about domain object refs

2019-09-09 Thread Pavel Hrdina
On Fri, Sep 06, 2019 at 09:54:29AM -0300, Daniel Henrique Barboza wrote: > > > On 9/4/19 2:23 PM, Jonathon Jongsma wrote: > > Since commit fd9ef3b31e, virDomainFindByUUIDRef() no longer exists and > > all virDomainObjListFindBy*() functions now increment the reference > > count. > > > >

Re: [libvirt] [PATCH] docs: remove devhelp API docs

2019-09-09 Thread Andrea Bolognani
On Thu, 2019-09-05 at 13:34 +0100, Daniel P. Berrangé wrote: > We currently generate two completely separate API references for the > libvirt public API. One at 'docs/html/' and one at 'docs/devhelp/'. > Both are published on the website, but we only link to content in > the 'docs/html/' pages. >

Re: [libvirt] [PATCH 4/4] qemu_capabilities: Temporarily disable dbus-vmstate capability

2019-09-09 Thread Ján Tomko
On Mon, Sep 09, 2019 at 11:23:59AM +0200, Michal Privoznik wrote: On 9/6/19 5:55 PM, Ján Tomko wrote: [cc-ing Marc-André] On Fri, Sep 06, 2019 at 04:25:19PM +0200, Michal Privoznik wrote: The qemu side is not merged in yet, so there is a chance that the interface will change. Don't detect the

Re: [libvirt] [PATCH v2] util: activate directory override when used from library

2019-09-09 Thread Daniel P . Berrangé
On Mon, Sep 09, 2019 at 12:38:25PM +0200, Pavel Hrdina wrote: > On Thu, Sep 05, 2019 at 11:52:09AM +0100, Daniel P. Berrangé wrote: > > The Perl bindings for libvirt use the test driver for unit tests. This > > tries to load the cpu_map/index.xml file, and when run from an > > uninstalled build

Re: [libvirt] [PATCH v2] util: activate directory override when used from library

2019-09-09 Thread Pavel Hrdina
On Thu, Sep 05, 2019 at 11:52:09AM +0100, Daniel P. Berrangé wrote: > The Perl bindings for libvirt use the test driver for unit tests. This > tries to load the cpu_map/index.xml file, and when run from an > uninstalled build will fail. > > The problem is that virFileActivateDirOverride is called

Re: [libvirt] [dockerfiles PATCH] refresh: Update Dockerfiles due to new "locales" dependency

2019-09-09 Thread Andrea Bolognani
On Fri, 2019-09-06 at 14:39 +0200, Fabiano Fidêncio wrote: > Let's refresh the archived Dockerfiles as "locales" dependency has > to be added to all Debian, Ubuntu, and Fedora files. > > Signed-off-by: Fabiano Fidêncio > --- > This commit is available in the following branch: >

Re: [libvirt] [jenkins-ci PATCH v2] guests: Include "locales" by default

2019-09-09 Thread Andrea Bolognani
On Fri, 2019-09-06 at 14:12 +0200, Fabiano Fidêncio wrote: > osinfo-db tests require "en_US.UTF-8" locale to be set. Unfortunately, > our containers do not contain the needed locale file. > > After a discussion on libosinfo mailing list[0], it's been agreed on > having the locale as part of our

Re: [libvirt] [PATCH] libvirtd: Fix control socket path being incorrectly build

2019-09-09 Thread Daniel P . Berrangé
On Mon, Sep 09, 2019 at 10:19:22AM +0100, Daniel P. Berrangé wrote: > On Fri, Sep 06, 2019 at 11:36:17PM +0200, eater wrote: > > Socket path in 5.7 would result in libvirt//var/run/libvirt-sock instead of > > /var/run/libvirt/libvirt-sock > > > > Signed-off-by: eater <=@eater.me> > > Thanks for

Re: [libvirt] [PATCH 4/4] qemu_capabilities: Temporarily disable dbus-vmstate capability

2019-09-09 Thread Michal Privoznik
On 9/6/19 5:55 PM, Ján Tomko wrote: [cc-ing Marc-André] On Fri, Sep 06, 2019 at 04:25:19PM +0200, Michal Privoznik wrote: The qemu side is not merged in yet, so there is a chance that the interface will change. Don't detect the capability just yet then. Signed-off-by: Michal Privoznik ---

Re: [libvirt] [PATCH] libvirtd: Fix control socket path being incorrectly build

2019-09-09 Thread Daniel P . Berrangé
On Fri, Sep 06, 2019 at 11:36:17PM +0200, eater wrote: > Socket path in 5.7 would result in libvirt//var/run/libvirt-sock instead of > /var/run/libvirt/libvirt-sock > > Signed-off-by: eater <=@eater.me> Thanks for your contribution, but I'm afraid we can't accept patches with psuedonyms / fake

[libvirt] [PATCH] libvirtd: Fix control socket path being incorrectly build

2019-09-09 Thread eater
Socket path in 5.7 would result in libvirt//var/run/libvirt-sock instead of /var/run/libvirt/libvirt-sock Signed-off-by: eater <=@eater.me> --- src/remote/remote_daemon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/remote/remote_daemon.c

Re: [libvirt] [PATCH 0/4] Colourize configure output

2019-09-09 Thread Michal Privoznik
On 9/9/19 10:52 AM, Ján Tomko wrote: On Mon, Sep 09, 2019 at 09:49:38AM +0200, Michal Privoznik wrote: An example how configure looks like with these changes applied: https://travis-ci.org/zippy2/libvirt/jobs/582549099#L4247 Michal Prívozník (4):  configure: Prefer LIBVIRT_RESULT over

Re: [libvirt] [PATCH 0/4] Colourize configure output

2019-09-09 Thread Ján Tomko
On Mon, Sep 09, 2019 at 09:49:38AM +0200, Michal Privoznik wrote: An example how configure looks like with these changes applied: https://travis-ci.org/zippy2/libvirt/jobs/582549099#L4247 Michal Prívozník (4): configure: Prefer LIBVIRT_RESULT over AC_MSG_NOTICE virt-result.m4: Align string

Re: [libvirt] [PATCH] docs: remove devhelp API docs

2019-09-09 Thread Pavel Hrdina
On Thu, Sep 05, 2019 at 01:34:37PM +0100, Daniel P. Berrangé wrote: > We currently generate two completely separate API references for the > libvirt public API. One at 'docs/html/' and one at 'docs/devhelp/'. > Both are published on the website, but we only link to content in > the 'docs/html/'

[libvirt] [PATCH 0/4] Colourize configure output

2019-09-09 Thread Michal Privoznik
An example how configure looks like with these changes applied: https://travis-ci.org/zippy2/libvirt/jobs/582549099#L4247 Michal Prívozník (4): configure: Prefer LIBVIRT_RESULT over AC_MSG_NOTICE virt-result.m4: Align string more generously configure: Colorize output virt-result.m4:

[libvirt] [PATCH 4/4] virt-result.m4: Colourize summary printings

2019-09-09 Thread Michal Privoznik
The LIBVIRT_RESULT function takes two or three arguments. The first one is the name of the result (aka CHECK_NAME). It is printed before the colon character. The rest of the arguments is printed after the character. To produce colourized output a couple of changes needs to be made. Firstly, we

[libvirt] [PATCH 3/4] configure: Colorize output

2019-09-09 Thread Michal Privoznik
If we're running from a TTY we can put some colors around 'yes', 'no' and other messages. Shamelessly copied from Ruby source code and modified a bit to comply with syntax-check. https://github.com/ruby/ruby/commit/e4879592873abd4cd8aeed56f4cbaa360a3d3736 Signed-off-by: Michal Privoznik ---

[libvirt] [PATCH 2/4] virt-result.m4: Align string more generously

2019-09-09 Thread Michal Privoznik
The times, when we had small CRTs are long gone. Now, in the era of wide screens we can be more generous when it comes to aligning the output of configure. The longest string before the colon is 'wireshark_dissector' which counts 19 characters. Therefore, align the strings at 20. At the same

[libvirt] [PATCH 1/4] configure: Prefer LIBVIRT_RESULT over AC_MSG_NOTICE

2019-09-09 Thread Michal Privoznik
One of the advantages is that LIBVIRT_RESULT aligns the resulting message for us. The other is that in near future we will colour some parts of the message and thus it helps if we get arguments split in two. Signed-off-by: Michal Privoznik --- configure.ac | 8