Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Yan Zhao
On Thu, May 09, 2019 at 11:24:49PM +0800, Cornelia Huck wrote: > On Wed, 8 May 2019 07:57:05 -0400 > Yan Zhao wrote: > > > On Tue, May 07, 2019 at 05:19:54PM +0800, Cornelia Huck wrote: > > > On Sun, 5 May 2019 21:49:04 -0400 > > > Yan Zhao wrote: > > > > > > > version attribute is used to

Re: [libvirt] [PATCHv2] build: restore support for libyajl 2.0.1

2019-05-09 Thread Jim Fehlig
On 5/9/19 9:18 AM, Andrea Bolognani wrote: On Thu, 2019-05-09 at 16:07 +0200, Ján Tomko wrote: Commit 105756660f944e7db02de3b55b98bb7c11cd03bf was too eager and did not consider SLE 12 which still has 2.0.1 that does not ship "SLE" is no longer a thing, so either s/SLE/SUSE Linux

Re: [libvirt] [PATCH 0/2] Avoid issues due to qemu dropping osxsave and ospke

2019-05-09 Thread Daniel Henrique Barboza
This is a VM with 'osxsave' capability declared, when there is no 'osxsave' guest support, using this series on top of current master: $ sudo ./run tools/virsh start ub1810-osxsave error: Failed to start domain ub1810-osxsave error: internal error: process exited while connecting to monitor:

Re: [libvirt] [PATCH] test_driver: implement virDomainGetDiskErrors

2019-05-09 Thread Ilias Stamatis
On Thu, May 9, 2019 at 4:36 PM Michal Privoznik wrote: > > On 5/7/19 10:23 PM, Ilias Stamatis wrote: > > Return the number of disks present in the configuration of the fake > > driver when called with @errors as NULL and @maxerrors as 0. > > > > Otherwise return 0 as the number of errors

Re: [libvirt] [PATCH 0/2] Avoid issues due to qemu dropping osxsave and ospke

2019-05-09 Thread Daniel Henrique Barboza
On 5/9/19 6:31 AM, Christian Ehrhardt wrote: On Tue, May 7, 2019 at 11:03 PM Daniel Henrique Barboza wrote: On 4/25/19 9:50 AM, Christian Ehrhardt wrote: Hi, this series tries to address a drop of commandline options by qemu in regard to osxsave [1] and ospke [2]. This was already

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Dr. David Alan Gilbert
* Cornelia Huck (coh...@redhat.com) wrote: > On Thu, 9 May 2019 16:48:57 +0100 > "Dr. David Alan Gilbert" wrote: > > > * Cornelia Huck (coh...@redhat.com) wrote: > > > On Tue, 7 May 2019 15:18:26 -0600 > > > Alex Williamson wrote: > > > > > > > On Sun, 5 May 2019 21:49:04 -0400 > > > > Yan

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Cornelia Huck
On Thu, 9 May 2019 16:48:57 +0100 "Dr. David Alan Gilbert" wrote: > * Cornelia Huck (coh...@redhat.com) wrote: > > On Tue, 7 May 2019 15:18:26 -0600 > > Alex Williamson wrote: > > > > > On Sun, 5 May 2019 21:49:04 -0400 > > > Yan Zhao wrote: > > > > > > + Errno: > > > > + If vendor

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Dr. David Alan Gilbert
* Cornelia Huck (coh...@redhat.com) wrote: > On Tue, 7 May 2019 15:18:26 -0600 > Alex Williamson wrote: > > > On Sun, 5 May 2019 21:49:04 -0400 > > Yan Zhao wrote: > > > > + Errno: > > > + If vendor driver wants to claim a mdev device incompatible to all > > > other mdev > > > + devices,

Re: [libvirt] [jenkins-ci PATCH 2/6] mappings: add pulseaudio libs for native packages

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 04:25:03PM +0200, Andrea Bolognani wrote: > On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > > Subject: mappings: add pulseaudio libs for native packages > > Again, this can be > > mappings: Add PulseAudio > > [...] > > + pulseaudio: > > +rpm:

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Cornelia Huck
On Tue, 7 May 2019 15:18:26 -0600 Alex Williamson wrote: > On Sun, 5 May 2019 21:49:04 -0400 > Yan Zhao wrote: > > + Errno: > > + If vendor driver wants to claim a mdev device incompatible to all other > > mdev > > + devices, it should not register version attribute for this mdev device.

[libvirt] Running libvirtd out of source directory connection reset error

2019-05-09 Thread Peter P.
Hi all, I'm getting started with hacking around with libvirt and am trying to familiarize myself with launching and running an instance of libvirtd I built from source on Centos 7.6. Following the instructions from https://libvirt.org/compiling.html to launch my built versions of libvirtd and

Re: [libvirt] [PATCH 2/2] src: remove HAL node device driver

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 05:16:16PM +0200, Pavel Hrdina wrote: > The HAL driver is not used by any supported Linux, the only possible > user could be FreeBSD, but the official libvirt port disables HAL > driver unconditionally which means probably nobody is using it there. Last time we asked,

Re: [libvirt] [jenkins-ci PATCH 6/6] jobs: allow test-suite.log to exist anywhere

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > Don't assume that all projects have a dedicated tests/ subdirectory > for unit tests. > > Signed-off-by: Daniel P. Berrangé > --- > guests/playbooks/build/jobs/autotools-check-job.yml | 2 +- > jenkins/jobs/autotools.yaml

Re: [libvirt] [PATCHv2] build: restore support for libyajl 2.0.1

2019-05-09 Thread Andrea Bolognani
On Thu, 2019-05-09 at 16:07 +0200, Ján Tomko wrote: > Commit 105756660f944e7db02de3b55b98bb7c11cd03bf was too eager and did > not consider SLE 12 which still has 2.0.1 that does not ship "SLE" is no longer a thing, so either s/SLE/SUSE Linux Enterprise Server/ (preferred) or s/SLE/SLES/

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Cornelia Huck
On Wed, 8 May 2019 07:57:05 -0400 Yan Zhao wrote: > On Tue, May 07, 2019 at 05:19:54PM +0800, Cornelia Huck wrote: > > On Sun, 5 May 2019 21:49:04 -0400 > > Yan Zhao wrote: > > > > > version attribute is used to check two mdev devices' compatibility. > > > > > > The key point of this

[libvirt] [PATCH 1/2] node_device_udev: remove deprecated logging function

2019-05-09 Thread Pavel Hrdina
The function was deprecated in udev 219 and all the supported OSes don't have older version of udev or systemd. Signed-off-by: Pavel Hrdina --- m4/virt-udev.m4| 5 src/node_device/node_device_udev.c | 41 -- 2 files changed, 46 deletions(-)

[libvirt] [PATCH 0/2] node device cleanup

2019-05-09 Thread Pavel Hrdina
Pavel Hrdina (2): node_device_udev: remove deprecated logging function src: remove HAL node device driver configure.ac | 3 +- docs/drvnodedev.html.in | 3 +- docs/hvsupport.pl| 2 +- libvirt.spec.in | 1 -

[libvirt] [PATCH 2/2] src: remove HAL node device driver

2019-05-09 Thread Pavel Hrdina
The HAL driver is not used by any supported Linux, the only possible user could be FreeBSD, but the official libvirt port disables HAL driver unconditionally which means probably nobody is using it there. Signed-off-by: Pavel Hrdina --- HAL was deprecated on FreeBSD as well and the current

Re: [libvirt] [jenkins-ci PATCH 5/6] mappings: remove gtk-vnc2 native and mingw packages

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > Subject: mappings: remove gtk-vnc2 native and mingw packages This can be simply mappings: Remove gtk-vnc2 Either way Reviewed-by: Andrea Bolognani -- Andrea Bolognani / Red Hat / Virtualization -- libvir-list mailing list

Re: [libvirt] [jenkins-ci PATCH 4/6] projects: make virt-viewer depend on gtk-vnc jobs

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > Signed-off-by: Daniel P. Berrangé > --- > guests/playbooks/build/jobs/defaults.yml | 1 + > guests/vars/projects/virt-viewer+mingw32.yml | 1 - > guests/vars/projects/virt-viewer+mingw64.yml | 1 - >

Re: [libvirt] [jenkins-ci PATCH 3/6] projects: add gtk-vnc project

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > +++ b/jenkins/projects/gtk-vnc.yaml > @@ -0,0 +1,15 @@ > +--- > +- project: > +name: gtk-vnc > +machines: '{all_machines}' > +title: GTK-VNC > +archive_format: gz > +git_url: '{git_urls[gtk-vnc][default]}' > +

Re: [libvirt] [jenkins-ci PATCH 3/6] projects: add gtk-vnc project

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: [...] > +++ b/guests/playbooks/build/projects/gtk-vnc.yml > @@ -0,0 +1,12 @@ > +--- > +- set_fact: > +name: gtk-vnc > +machines: '{{ all_machines }}' > +archive_format: gz > +git_url: '{{ git_urls["gtk-vnc"][git_remote]

Re: [libvirt] [PATCH] build: restore support for libyajl 2.0.1

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 04:10:36PM +0200, Olaf Hering wrote: > Am Thu, 9 May 2019 13:31:45 +0200 > schrieb Ján Tomko : > > > +dnl TODO: delete this in July 2020 > > Does this come with a cost? I mean, SLE_12 is not going away any time soon. > Just dropping things because we can seems to be

Re: [libvirt] [PATCH] test_driver: implement virDomainGetDiskErrors

2019-05-09 Thread Michal Privoznik
On 5/7/19 10:23 PM, Ilias Stamatis wrote: Return the number of disks present in the configuration of the fake driver when called with @errors as NULL and @maxerrors as 0. Otherwise return 0 as the number of errors encountered. Signed-off-by: Ilias Stamatis --- src/test/test_driver.c | 27

Re: [libvirt] [jenkins-ci PATCH 2/6] mappings: add pulseaudio libs for native packages

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > Subject: mappings: add pulseaudio libs for native packages Again, this can be mappings: Add PulseAudio [...] > + pulseaudio: > +rpm: pulseaudio-libs-devel > +deb: libpulse-dev Lines are not in alphabetical order. More

Re: [libvirt] [PATCH 1/2] Don't include Makefile.ci in Makefile.am

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 03:56:20PM +0200, Martin Kletzander wrote: > On Thu, May 09, 2019 at 01:54:42PM +0100, Daniel P. Berrangé wrote: > > On Tue, May 07, 2019 at 05:45:30PM +0200, Martin Kletzander wrote: > > > The way it works now the Makefile needs to be both make valid and automake > > >

Re: [libvirt] [jenkins-ci PATCH 1/6] mappings: add libgcrypt native & mingw packages

2019-05-09 Thread Andrea Bolognani
On Fri, 2019-05-03 at 19:02 +0100, Daniel P. Berrangé wrote: > Subject: mappings: add libgcrypt native & mingw packages This can be simply mappings: Add libgcrypt [...] > + libgcrypt: > +rpm: libgcrypt-devel > +deb: libgcrypt20-dev > +cross-policy-deb: foreign This should be

Re: [libvirt] [PATCH] build: restore support for libyajl 2.0.1

2019-05-09 Thread Olaf Hering
Am Thu, 9 May 2019 13:31:45 +0200 schrieb Ján Tomko : > +dnl TODO: delete this in July 2020 Does this come with a cost? I mean, SLE_12 is not going away any time soon. Just dropping things because we can seems to be the wrong approach. There might be other new things that must be used in

[libvirt] [PATCHv2] build: restore support for libyajl 2.0.1

2019-05-09 Thread Ján Tomko
Commit 105756660f944e7db02de3b55b98bb7c11cd03bf was too eager and did not consider SLE 12 which still has 2.0.1 that does not ship a pkg-config file. Similar to how we check for readline, prefer pkg-config if available and fall back to the old detection code if not found. NB: this is not a clean

Re: [libvirt] [PATCH] build: restore support for libyajl 2.0.1

2019-05-09 Thread Andrea Bolognani
On Thu, 2019-05-09 at 13:31 +0200, Ján Tomko wrote: > + PKG_CHECK_EXISTS([readline], [use_pkgconfig=1], [use_pkgconfig=0]) > + > + if test $use_pkgconfig = 1; then > +dnl 2.0.3 was the version where the pkg-config file was first added > +LIBVIRT_CHECK_PKG([YAJL], [yajl], [2.0.3]) > +

Re: [libvirt] [PATCH 1/2] Don't include Makefile.ci in Makefile.am

2019-05-09 Thread Martin Kletzander
On Thu, May 09, 2019 at 01:54:42PM +0100, Daniel P. Berrangé wrote: On Tue, May 07, 2019 at 05:45:30PM +0200, Martin Kletzander wrote: The way it works now the Makefile needs to be both make valid and automake valid. That is fine for now, but if we want to use anything more advanced, like

Re: [libvirt] [jenkins-ci PATCH 2/4] guests: Use package_manager everywhere

2019-05-09 Thread Andrea Bolognani
On Thu, 2019-05-09 at 13:08 +0100, Daniel P. Berrangé wrote: > On Tue, May 07, 2019 at 03:17:40PM +0200, Andrea Bolognani wrote: > > - name: Bootstrap Ansible > > - raw: 'yum install -y {{ python }}' > > - when: > > -- package_format == 'rpm' > > - > > -- name: Bootstrap Ansible > > - raw:

Re: [libvirt] [PATCH 12/12] qemu: Refactor/simplify qemuDomainStorageSourceAccessAllow

2019-05-09 Thread Ján Tomko
On Thu, Apr 18, 2019 at 04:43:07PM +0200, Peter Krempa wrote: Use qemuDomainStorageSourceAccessModify with correct flags to do the job. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 30 ++ 1 file changed, 6 insertions(+), 24 deletions(-) Reviewed-by:

Re: [libvirt] [PATCH 11/12] qemu: Mark when modifying access to existing source in qemuDomainStorageSourceAccessModify

2019-05-09 Thread Ján Tomko
On Thu, Apr 18, 2019 at 04:43:06PM +0200, Peter Krempa wrote: Some operations e.g. namespace setup are not necessary when modifying access to a file which the VM can already access. Add a flag which allows to skip them. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 11 --- 1

Re: [libvirt] [PATCH 10/12] qemu: Allow skipping the revoke step in qemuDomainStorageSourceAccessModify

2019-05-09 Thread Ján Tomko
On Thu, Apr 18, 2019 at 04:43:05PM +0200, Peter Krempa wrote: In some cases when we need to modify access permissions for a storage source which is already used by the VM we should not revoke all permissions on a failure. Allow this in qemuDomainStorageSourceAccessModify by adding a new flag.

Re: [libvirt] [PATCH 09/12] qemu: Use bools rather than labels in qemuDomainStorageSourceAccessModify

2019-05-09 Thread Ján Tomko
On Thu, Apr 18, 2019 at 04:43:04PM +0200, Peter Krempa wrote: Rather than jumping to the correct label use a set of booleans to determine which operation needs to be rolled back. This will allow more flexibility when e.g. rollback after a failed operation will not be necessary/desired.

Re: [libvirt] [PATCH 08/12] qemu: Allow forcing read-only mode in qemuDomainStorageSourceAccessModify

2019-05-09 Thread Ján Tomko
On Thu, Apr 18, 2019 at 04:43:03PM +0200, Peter Krempa wrote: Add a new flag which will set the image as read-only even if the image data allows writing. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 7 +++ 1 file changed, 7 insertions(+) Reviewed-by: Ján Tomko Jano

Re: [libvirt] [PATCH 2/2] Add support for podman in Makefile.ci

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 05:45:31PM +0200, Martin Kletzander wrote: > This way more users can run our CI builds locally. > > Signed-off-by: Martin Kletzander > --- > Makefile.ci | 125 ++-- > 1 file changed, 93 insertions(+), 32 deletions(-) > >

Re: [libvirt] [PATCH 4/4] snapshot: Make virDomainSnapshotDef a virObject

2019-05-09 Thread Peter Krempa
On Wed, May 08, 2019 at 17:24:12 -0500, Eric Blake wrote: > This brings about a couple of benefits: > - use of VIR_AUTOUNREF() simplifies several callers > - Fixes a todo about virDomainMomentObjList not being polymorphic enough > > Signed-off-by: Eric Blake > --- > src/conf/moment_conf.h

Re: [libvirt] [PATCH 3/4] snapshot: Add virDomainSnapshotDefNew

2019-05-09 Thread Peter Krempa
On Wed, May 08, 2019 at 17:24:11 -0500, Eric Blake wrote: > In preparation for making virDomainSnapshotDef a descendant of > virObject, it is time to fix all callers that allocate an object to > use virDomainSnapshotDefNew() instead of VIR_ALLOC(). Fortunately, > there aren't very many :) > >

Re: [libvirt] [PATCH 2/4] snapshot: s/current/parent/ as prep for virObject

2019-05-09 Thread Peter Krempa
On Wed, May 08, 2019 at 17:24:10 -0500, Eric Blake wrote: > VIR_CLASS_NEW insists that descendents of virObject have 'parent' as > the name of their inherited member at offset 0. While it would be > possible to write a new class-creation macro that takes the actual > field name 'current', and

Re: [libvirt] [PATCH 1/2] Don't include Makefile.ci in Makefile.am

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 05:45:30PM +0200, Martin Kletzander wrote: > The way it works now the Makefile needs to be both make valid and automake > valid. That is fine for now, but if we want to use anything more advanced, > like > conditionals, we cannot have it like that any more. > > So

Re: [libvirt] [PATCH] spec: Bump minimum supported Fedora version to 29

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 12:15:32PM +0200, Andrea Bolognani wrote: > Fedora 30 is out, which means that Fedora 28 is going to be > EOL very soon. Let's get ahead of the game and drop support > for it right now. > > Signed-off-by: Andrea Bolognani > --- > libvirt.spec.in | 2 +- >

Re: [libvirt] [jenkins-ci PATCH 4/4] guests: Drop Fedora 28

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 02, 2019 at 06:28:13PM +0200, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > guests/host_vars/libvirt-fedora-28/docker.yml | 2 - > .../host_vars/libvirt-fedora-28/install.yml | 2 - > guests/host_vars/libvirt-fedora-28/main.yml | 24 -- >

Re: [libvirt] [jenkins-ci PATCH 3/4] Stop building on Fedora 28

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 02, 2019 at 06:28:12PM +0200, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > guests/playbooks/build/jobs/defaults.yml| 2 -- > guests/playbooks/build/projects/libvirt-dbus.yml| 3 --- > guests/playbooks/build/projects/libvirt-go-xml.yml | 1 - >

Re: [libvirt] [jenkins-ci PATCH 2/4] Start building on Fedora 30

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 02, 2019 at 06:28:11PM +0200, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > guests/playbooks/build/jobs/defaults.yml| 2 ++ > guests/playbooks/build/projects/libvirt-dbus.yml| 3 +++ > guests/playbooks/build/projects/libvirt-go-xml.yml | 1 + >

Re: [libvirt] [jenkins-ci PATCH 1/4] guests: Add Fedora 30

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 02, 2019 at 06:28:10PM +0200, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > guests/host_vars/libvirt-fedora-30/docker.yml | 2 + > .../host_vars/libvirt-fedora-30/install.yml | 2 + > guests/host_vars/libvirt-fedora-30/main.yml | 24 ++ >

Re: [libvirt] [PATCH 1/4] snapshot: s/parent/parent_name/ as prep for virObject

2019-05-09 Thread Peter Krempa
On Wed, May 08, 2019 at 17:24:09 -0500, Eric Blake wrote: > VIR_CLASS_NEW insists that descendents of virObject have 'parent' as > the name of their inherited member at offset 0. While it would be > possible to write a new class-creation macro that takes the actual > field name, and rewrite

Re: [libvirt] [jenkins-ci PATCH 2/4] guests: Use package_manager everywhere

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 03:17:40PM +0200, Andrea Bolognani wrote: > Instead of hardcoding the name of the package manager in > commands, use the value obtained from the inventory. > > In some cases this is necessary, eg. when RPM-based > distributions are involved; for most other cases we could >

Re: [libvirt] [jenkins-ci PATCH 3/4] guests: Don't call out to the shell twice

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 03:17:41PM +0200, Andrea Bolognani wrote: > We're already doing this for FreeBSD, so do it for CentOS > and Fedora as well. > > Signed-off-by: Andrea Bolognani > --- > guests/playbooks/update/tasks/base.yml | 11 +-- > 1 file changed, 1 insertion(+), 10

Re: [libvirt] [jenkins-ci PATCH 4/4] lcitool: Fix Dockerfile alignment

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 03:17:42PM +0200, Andrea Bolognani wrote: > Now that we are using package_manager everywhere instead of > hardcoding the names, it's finally possible to make the > alignment of the resulting Dockerfiles perfect. > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool

[libvirt] [PATCH] build: restore support for libyajl 2.0.1

2019-05-09 Thread Ján Tomko
Commit 105756660f944e7db02de3b55b98bb7c11cd03bf was too eager and did not consider SLE 12 which still has 2.0.1 that does not ship a pkg-config file. Similar to how we check for readline, prefer pkg-config if available and fall back to the old detection code if not found. NB: this is not a clean

Re: [libvirt] [jenkins-ci PATCH 1/4] guests: Introduce package_manager

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 03:17:39PM +0200, Andrea Bolognani wrote: > Platforms that share the same package format might still want > to use different package managers, a good example being CentOS > with yum and Fedora with dnf. > > Signed-off-by: Andrea Bolognani > --- >

Re: [libvirt] [PATCH 2/3] docs: hacking: Add good practices for shortening conditional expressions

2019-05-09 Thread Peter Krempa
On Thu, May 09, 2019 at 12:53:07 +0200, Martin Kletzander wrote: > On Thu, May 09, 2019 at 12:43:33PM +0200, Peter Krempa wrote: > > Document that checking if a integer is (non-)zero should (not must) > > avoid the shortened form that C allows as it may confuse readers into > > overlooking the

Re: [libvirt] [PATCH 2/3] docs: hacking: Add good practices for shortening conditional expressions

2019-05-09 Thread Martin Kletzander
On Thu, May 09, 2019 at 12:43:33PM +0200, Peter Krempa wrote: Document that checking if a integer is (non-)zero should (not must) avoid the shortened form that C allows as it may confuse readers into overlooking the other possible values which might be interresting to handle. While pointers

[libvirt] [PATCH 0/3] docs: hacking: Discourage some patterns to help code readability

2019-05-09 Thread Peter Krempa
Peter Krempa (3): docs: hacking: Document few practices for creating error messages docs: hacking: Add good practices for shortening conditional expressions docs: hacking: Discourage use of the ternary operator and ban it's abuse docs/hacking.html.in | 61

[libvirt] [PATCH 3/3] docs: hacking: Discourage use of the ternary operator and ban it's abuse

2019-05-09 Thread Peter Krempa
Forbid breaking lines inside the two branches of the ternary operator and nesting them. Using it in these instances does not help readability. Signed-off-by: Peter Krempa --- docs/hacking.html.in | 11 +++ 1 file changed, 11 insertions(+) diff --git a/docs/hacking.html.in

[libvirt] [PATCH 1/3] docs: hacking: Document few practices for creating error messages

2019-05-09 Thread Peter Krempa
State that error messages should not be broken into multiple lines for programmer friendliness and should not be concatenated on the fly for translator friendliness and few other details. Signed-off-by: Peter Krempa --- docs/hacking.html.in | 28 1 file changed, 28

[libvirt] [PATCH 2/3] docs: hacking: Add good practices for shortening conditional expressions

2019-05-09 Thread Peter Krempa
Document that checking if a integer is (non-)zero should (not must) avoid the shortened form that C allows as it may confuse readers into overlooking the other possible values which might be interresting to handle. While pointers have distinct values from the point of view of the code we only

Re: [libvirt] [PATCH v6] tests: perform cross compiler builds on GitLab CI

2019-05-09 Thread Daniel P . Berrangé
On Tue, May 07, 2019 at 11:54:20AM +0200, Andrea Bolognani wrote: > On Tue, 2019-04-16 at 11:19 +0100, Daniel P. Berrangé wrote: > > +.job_template: _definition > > + script: > > +- mkdir vpath > > +- cd vpath > > We use build/ for CentOS CI and Travis CI builds, so let's stick > with

Re: [libvirt] [PATCH 0/2] Avoid issues due to qemu dropping osxsave and ospke

2019-05-09 Thread Christian Ehrhardt
On Tue, May 7, 2019 at 11:03 PM Daniel Henrique Barboza wrote: > > > > On 4/25/19 9:50 AM, Christian Ehrhardt wrote: > > Hi, > > this series tries to address a drop of commandline options by qemu in > > regard to > > osxsave [1] and ospke [2]. > > This was already discussed in [3] late last year

Re: [libvirt] [PATCH 04/10] build: require yajl >= 2.0.3

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 10:30:25AM +0200, Andrea Bolognani wrote: > On Wed, 2019-05-08 at 17:29 +0100, Daniel P. Berrangé wrote: > > On Wed, May 08, 2019 at 06:21:21PM +0200, Olaf Hering wrote: > > > On Wed, Apr 03, Ján Tomko wrote: > > > > > > > Since all our supported platforms include at least

Re: [libvirt] [PATCH 04/10] build: require yajl >= 2.0.3

2019-05-09 Thread Daniel P . Berrangé
On Thu, May 09, 2019 at 10:40:51AM +0200, Ján Tomko wrote: > On Thu, May 09, 2019 at 10:30:25AM +0200, Andrea Bolognani wrote: > > On Wed, 2019-05-08 at 17:29 +0100, Daniel P. Berrangé wrote: > > > On Wed, May 08, 2019 at 06:21:21PM +0200, Olaf Hering wrote: > > > > On Wed, Apr 03, Ján Tomko

Re: [libvirt] [PATCH 04/10] build: require yajl >= 2.0.3

2019-05-09 Thread Ján Tomko
On Thu, May 09, 2019 at 10:30:25AM +0200, Andrea Bolognani wrote: On Wed, 2019-05-08 at 17:29 +0100, Daniel P. Berrangé wrote: On Wed, May 08, 2019 at 06:21:21PM +0200, Olaf Hering wrote: > On Wed, Apr 03, Ján Tomko wrote: > > > Since all our supported platforms include at least yajl 2.0.4, > >

Re: [libvirt] [PATCH 04/10] build: require yajl >= 2.0.3

2019-05-09 Thread Andrea Bolognani
On Wed, 2019-05-08 at 17:29 +0100, Daniel P. Berrangé wrote: > On Wed, May 08, 2019 at 06:21:21PM +0200, Olaf Hering wrote: > > On Wed, Apr 03, Ján Tomko wrote: > > > > > Since all our supported platforms include at least yajl 2.0.4, > > > use pkg-config to detect the library and set the minimum

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Yan Zhao
On Wed, May 08, 2019 at 11:27:47PM +0800, Boris Fiuczynski wrote: > On 5/8/19 11:22 PM, Alex Williamson wrote: > >>> I thought there was a request to make this more specific to migration > >>> by renaming it to something like migration_version. Also, as an > >>> > >> so this attribute may not

Re: [libvirt] [PATCH v2 1/2] vfio/mdev: add version attribute for mdev device

2019-05-09 Thread Boris Fiuczynski
On 5/8/19 11:22 PM, Alex Williamson wrote: I thought there was a request to make this more specific to migration by renaming it to something like migration_version. Also, as an so this attribute may not only include a mdev device's parent device info and mdev type, but also include numeric