[libvirt] [PATCH] replace 'if' type conditions with 'switch' for VIR_NETWORK_FORWARD_*

2018-07-19 Thread Shi Lei
Hi, everyone! For VIR_NETWORK_FORWARD_*, I try to replace 'if' type conditions with typed 'switch()'. It might be more clear. Signed-off-by: Shi Lei --- src/conf/domain_conf.c | 46 +- src/conf/network_conf.c | 49 ++- src/conf/virnetworkobj.c | 15 ++--

[libvirt] [PATCH v2 0/4] New mdev type handling for aggregated resources

2018-07-19 Thread Zhenyu Wang
Current mdev device create interface depends on fixed mdev type, which get uuid from user to create instance of mdev device. If user wants to use customized number of resource for mdev device, then only can create new mdev type for that which may not be flexible. This requirement comes not only

[libvirt] [PATCH v2 2/4] vfio/mdev: Add mdev device instances attribute

2018-07-19 Thread Zhenyu Wang
For mdev device, create new sysfs attribute "instances" to show number of instances allocated for possible aggregation type. For compatibility default or without aggregated allocation, the number is 1. Cc: Kirti Wankhede Cc: Alex Williamson Cc: Kevin Tian Signed-off-by: Zhenyu Wang ---

[libvirt] [PATCH v2 3/4] drm/i915/gvt: Add new aggregation type support

2018-07-19 Thread Zhenyu Wang
New aggregation type is created for KVMGT which can be used with new mdev create "instances=xxx" parameter to combine minimal resource number for target instances, which can create user defined number of resources. For KVMGT, aggregated resource is determined by memory and fence resource

[libvirt] [PATCH v2 1/4] vfio/mdev: Add new instances parameter for mdev create

2018-07-19 Thread Zhenyu Wang
For special mdev type which can aggregate instances for mdev device, this extends mdev create interface by allowing extra "instances=xxx" parameter, which is passed to mdev device model to be able to create arbitrary bundled number of instances for target mdev device. v2: create new

[libvirt] [PATCH v2 4/4] Documentation/vfio-mediated-device.txt: update for aggregation attribute

2018-07-19 Thread Zhenyu Wang
Update mdev doc on new aggregration attribute and instances attribute for mdev. Cc: Kirti Wankhede Cc: Alex Williamson Cc: Kevin Tian Signed-off-by: Zhenyu Wang --- Documentation/vfio-mediated-device.txt | 39 ++ 1 file changed, 33 insertions(+), 6 deletions(-) diff

Re: [libvirt] [PATCHv4 13/15] build: switch --with-qemu default from yes to check

2018-07-19 Thread John Ferlan
On 07/18/2018 10:44 AM, Ján Tomko wrote: > Unless explicitly requested, enable the QEMU driver > only if the Jansson library is present. > > Signed-off-by: Ján Tomko > --- > m4/virt-driver-qemu.m4 | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > Perhaps it's obvious for

Re: [libvirt] [PATCHv4 03/15] Switch from yajl to Jansson

2018-07-19 Thread John Ferlan
On 07/18/2018 10:44 AM, Ján Tomko wrote: > Yajl has not seen much activity upstream recently. > Switch to using Jansson >= 2.5. > > All the platforms we target on https://libvirt.org/platforms.html > have a version >= 2.7 listed on the sites below: >

[libvirt] [PATCH] build: Fix accidental revert of .gnulib update

2018-07-19 Thread John Ferlan
Commit id 1bff5bbe25eb7a7e7a4e0067c4ca7cbc1cb34999 accidentally reverted .gnulib back to d6397dde2e127e246e3eeb5254a21f42cac783c8 which was two updates ago. Update to the latest 68df637b5f1b5c10370f6981d2a43a5cf74368df which includes three changes since the previous fetch of

Re: [libvirt] [PATCH] virt-xml-validate: Add schema for nwfilterbinding

2018-07-19 Thread John Ferlan
On 07/12/2018 09:39 PM, Han Han wrote: > Add nwfilterbinding schema in virt-xml-validate for autoprobing. > Add document of nwfilterbinding schema in tools/virt-xml-validate.pod. > > Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1600330 > > Signed-off-by: Han Han > --- >

[libvirt] [PATCH] tools: Fix typo generating adapter_wwpn field

2018-07-19 Thread John Ferlan
https://bugzilla.redhat.com/show_bug.cgi?id=1601377 Fix typo from commit id d45bee449 for the parent_wwpn field resulting in parent_wwnn being printed twice. Signed-off-by: John Ferlan --- tools/virsh-pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/virsh-pool.c

Re: [libvirt] [PATCH v2] util: set OOM in virCopyLastError if error is not set

2018-07-19 Thread John Ferlan
On 07/19/2018 04:15 AM, Nikolay Shirokovskiy wrote: > > > On 17.07.2018 22:28, John Ferlan wrote: >> >> > +} else { > +to->code = VIR_ERR_NO_MEMORY; > +to->domain = VIR_FROM_NONE; > +to->level = VIR_ERR_ERROR; Should we do a

[libvirt] [jenkins-ci PATCH 8/8] guests: Update documentation

2018-07-19 Thread Andrea Bolognani
The usage has once again changed slightly; additionally, a few concrete examples are now provided. Signed-off-by: Andrea Bolognani --- guests/README.markdown | 38 -- 1 file changed, 32 insertions(+), 6 deletions(-) diff --git a/guests/README.markdown

[libvirt] [jenkins-ci PATCH 2/8] lcitool: Use JSON to pass extra-vars

2018-07-19 Thread Andrea Bolognani
We're going to add more extra-vars later on, and they will be in some cases more complex than simple strings; using JSON allows us to do that and also be less verbose. Signed-off-by: Andrea Bolognani --- guests/lcitool | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git

[libvirt] [jenkins-ci PATCH 7/8] lcitool: Allow installing a subset of build dependencies

2018-07-19 Thread Andrea Bolognani
For CentOS CI, we need build dependencies for all known projects to be installed; however, when using lcitool for development purposes, it is very convenient to install just the subset relevant to the project that's being worked on, as doing so reduces the storage requirements and makes the update

[libvirt] [jenkins-ci PATCH 5/8] guests: Drop install_config from inventory

2018-07-19 Thread Andrea Bolognani
The information is mostly duplicated and can be easily inferred in a programmatic manner, so storing it in the inventory is far from the cleanest solution. As a side-effect, we reintroduce the error message that was supposed to be displayed when attempting to install a FreeBSD guest but was lost

[libvirt] [jenkins-ci PATCH 6/8] guests: Move install configs

2018-07-19 Thread Andrea Bolognani
The rationale is the same as for moving playbooks. Signed-off-by: Andrea Bolognani --- guests/{ => configs}/kickstart.cfg | 0 guests/{ => configs}/preseed.cfg | 0 guests/lcitool | 2 +- 3 files changed, 1 insertion(+), 1 deletion(-) rename guests/{ =>

[libvirt] [jenkins-ci PATCH 4/8] guests: Move update playbook and related resources

2018-07-19 Thread Andrea Bolognani
This has two advantages: it unclutters the top-level directory, and opens the door for adding more playbooks down the line without turning it into a mess. Thanks to the changes made earlier, moving the playbook is almost entirely transparent to lcitool. Signed-off-by: Andrea Bolognani ---

[libvirt] [jenkins-ci PATCH 0/8] lcitool: Cleanups and improvements

2018-07-19 Thread Andrea Bolognani
This series makes the guests/ directory less crowded by moving a bunch of files to subdirectories, enhances the lcitool script so that it works when called from any directory, and introduces the ability to skip installation of build dependencies for projects you don't care about. Some of these

[libvirt] [jenkins-ci PATCH 1/8] lcitool: Make the script location-independent

2018-07-19 Thread Andrea Bolognani
Up until now, the only way to run lcitool has been from the same directory it lives. After this patch, the script is able to figure out its own location and adjust all paths accordingly. Suggested-by: Katerina Koukiou Signed-off-by: Andrea Bolognani --- guests/lcitool | 61

[libvirt] [jenkins-ci PATCH 3/8] lcitool: Pass base and playbook_base to Ansible

2018-07-19 Thread Andrea Bolognani
We want to get rid of relative paths in playbooks and tasks, and in order to do that we have to provide Ansible with some more information. base is the directory where lcitool lives, and playbook_base is the directory where a playbook should look for its private resources: they match for the time

[libvirt] [PATCH 22/24] tests: qemuxml2argv: Add CAPS_LATEST version of 'disk-network-gluster'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-network-gluster.x86_64-latest.args| 44 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 45 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-network-gluster.x86_64-latest.args diff

[libvirt] [PATCH 24/24] tests: qemuxml2argv: Add CAPS_LATEST version of security-related tests

2018-07-19 Thread Peter Krempa
'disk-network-source-auth' and 'disk-netowrk-tlsx509' Signed-off-by: Peter Krempa --- .../disk-network-source-auth.x86_64-latest.args| 47 + .../disk-network-tlsx509.x86_64-latest.args| 59 ++ tests/qemuxml2argvtest.c |

[libvirt] [PATCH 21/24] tests: qemuxml2argv: Add CAPS_LATEST version of 'disk-readonly' and 'disk-shared'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-readonly-disk.x86_64-latest.args | 34 .../disk-shared.x86_64-latest.args | 37 ++ tests/qemuxml2argvtest.c | 2 ++ 3 files changed, 73 insertions(+) create mode

[libvirt] [PATCH 20/24] tests: qemuxml2argv: Add CAPS_LATEST version of 'disk-floppy' and 'floppy-drive-fat'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-floppy.x86_64-latest.args | 35 ++ .../floppy-drive-fat.x86_64-latest.args| 33 tests/qemuxml2argvtest.c | 2 ++ 3 files changed, 70 insertions(+) create mode

[libvirt] [PATCH 18/24] tests: qemuxml2argv: Unify testing of 'disk-network-rbd'

2018-07-19 Thread Peter Krempa
Move the authentication and ipv6 cases into the main test file. To allow removal of the separate testing of the secure credential passing via the 'secret' object in qemu, use the DO_TEST_CAPS_VER macro with version 2.5.0 when the secret object is not supported by qemu. Signed-off-by: Peter Krempa

[libvirt] [PATCH 14/24] tests: qemuxml2argv: Add 'CAPS_LATEST' version of 'disk-network-iscsi'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-network-iscsi.x86_64-latest.args | 63 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 64 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-network-iscsi.x86_64-latest.args diff

[libvirt] [PATCH 16/24] tests: qemuxml2argv: Add 'CAPS_LATEST' version of 'disk-network-nbd'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-network-nbd.x86_64-latest.args| 46 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 47 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-network-nbd.x86_64-latest.args diff --git

[libvirt] [PATCH 12/24] tests: qemu: Unify disk cache testing

2018-07-19 Thread Peter Krempa
Move the 'unsafe' cache test into 'disk-cache' and remove all the individual cases for one cache mode each. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-cache-directsync.args | 30 tests/qemuxml2argvdata/disk-cache-directsync.xml | 37 ---

[libvirt] [PATCH 19/24] tests: qemu: Remove pointless 'disks-many' test

2018-07-19 Thread Peter Krempa
We have several cases when a VM has multiple disks in the test files so having another one without any interresting configuration is not necessary. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-many.args | 32 - tests/qemuxml2argvdata/disk-many.xml | 48

[libvirt] [PATCH 17/24] tests: qemu: Remove pointless 'disk-networ-ceph-env' test

2018-07-19 Thread Peter Krempa
The xml2argv variant was unused. The xml2xml variant is redundant in other tests for RBD. Signed-off-by: Peter Krempa --- .../disk-network-rbd-ceph-env.args | 25 .../qemuxml2argvdata/disk-network-rbd-ceph-env.xml | 39 ---

[libvirt] [PATCH 15/24] tests: qemu: Unify nbd disk source testing

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../qemuxml2argvdata/disk-network-nbd-export.args | 30 tests/qemuxml2argvdata/disk-network-nbd-export.xml | 37 --- .../disk-network-nbd-ipv6-export.args | 29 --- .../disk-network-nbd-ipv6-export.xml

[libvirt] [PATCH 23/24] tests: qemuxml2argv: Add CAPS_LATEST version of 'disk-network-sheepdog'

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-network-sheepdog.x86_64-latest.args | 35 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 36 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-network-sheepdog.x86_64-latest.args diff

[libvirt] [PATCH 11/24] tests: qemu: Add xml2xml and minimal version of 'disk-cache' test

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-cache.args | 38 +++ tests/qemuxml2argvtest.c| 1 + tests/qemuxml2xmloutdata/disk-cache.xml | 54 + tests/qemuxml2xmltest.c | 1 + 4 files changed,

[libvirt] [PATCH 07/24] tests: qemuxml2argv: Add 'CAPS_LATEST' data for disk-cdrom* tests

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-cdrom-network.x86_64-latest.args | 41 ++ .../disk-cdrom-tray.x86_64-latest.args | 39 .../qemuxml2argvdata/disk-cdrom.x86_64-latest.args | 35 ++ tests/qemuxml2argvtest.c

[libvirt] [PATCH 13/24] tests: qemu: Unify iscsi disk source testing

2018-07-19 Thread Peter Krempa
Move various different iSCSI configuration into one test file. Signed-off-by: Peter Krempa --- .../qemuxml2argvdata/disk-network-iscsi-auth.args | 34 tests/qemuxml2argvdata/disk-network-iscsi-auth.xml | 43

[libvirt] [PATCH 10/24] tests: qemuxml2argv: Rename disk-write-cache test do disk-cache

2018-07-19 Thread Peter Krempa
We'll agregate testing of all cache modes in this test later on. Signed-off-by: Peter Krempa --- ...k-write-cache.x86_64-2.6.0.args => disk-cache.x86_64-2.6.0.args} | 0 ...k-write-cache.x86_64-2.7.0.args => disk-cache.x86_64-2.7.0.args} | 0 ...write-cache.x86_64-latest.args =>

[libvirt] [PATCH 06/24] tests: qemuxml2argv: Unify testing of local cdroms

2018-07-19 Thread Peter Krempa
Test empty cdroms along with cdroms with medium. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-cdrom-empty.args | 28 --- tests/qemuxml2argvdata/disk-cdrom-empty.xml | 36 tests/qemuxml2argvdata/disk-cdrom.args| 4 ++-

[libvirt] [PATCH 08/24] tests: qemuxml2argv: Add 'CAPS_LATEST' version for 'disk-detect-zeroes'

2018-07-19 Thread Peter Krempa
This test also excercises options of 'discard'. Signed-off-by: Peter Krempa --- .../disk-detect-zeroes.x86_64-latest.args | 37 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 38 insertions(+) create mode 100644

[libvirt] [PATCH 09/24] tests: qemuxml2argv: Add 'CAPS_LATEST' version of 'disk-aio' test

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-aio.x86_64-latest.args | 37 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 38 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-aio.x86_64-latest.args diff --git

[libvirt] [PATCH 05/24] tests: qemuxml2argv: Unify network cdrom source testing

2018-07-19 Thread Peter Krempa
Unify most of the tests into a common test named disk-cdrom-network by adding multiple cdroms. The 'http' test is dropped since there can be only 4 cdroms. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-cdrom-network-ftp.args | 27

[libvirt] [PATCH 04/24] tests: qemuxml2argv: Remove tests obsoleted by assuming support for '-device'

2018-07-19 Thread Peter Krempa
Few disk tests were testing support for pure -drive command line generation for disks now that we assume it for all qemu versions the cases are obsolete. Replacements: disk-readonly-no-device -> disk-readonly-disk disk-floppy-tray-no-device -> disk-floppy-tray disk-cdrom-tray-no-device ->

[libvirt] [PATCH 03/24] tests: qemuxml2argv: Add 'CAPS_LATEST' version of "disk-copy_on_read"

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../disk-copy_on_read.x86_64-latest.args | 41 ++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 42 insertions(+) create mode 100644 tests/qemuxml2argvdata/disk-copy_on_read.x86_64-latest.args diff --git

[libvirt] [PATCH 01/24] tests: qemu: Drop 'drive' from disk tests

2018-07-19 Thread Peter Krempa
Signed-off-by: Peter Krempa --- ...ress-conflict.xml => disk-address-conflict.xml} | 0 ...-drive-boot-cdrom.args => disk-boot-cdrom.args} | 0 ...sk-drive-boot-cdrom.xml => disk-boot-cdrom.xml} | 0 ...sk-drive-boot-disk.args => disk-boot-disk.args} | 0 ...disk-drive-boot-disk.xml =>

[libvirt] [PATCH 02/24] tests: qemuxml2xml: Remove duplicate test disk-copy-on-read.xml

2018-07-19 Thread Peter Krempa
We also have disk-copy_on_read.xml which also tests the command line. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/disk-copy-on-read.xml | 30 - tests/qemuxml2xmloutdata/disk-copy-on-read.xml | 36 -- tests/qemuxml2xmltest.c

[libvirt] [PATCH 00/24] tests: qemu: Clean up disk testing (blockdev-add saga)

2018-07-19 Thread Peter Krempa
Clean up many test files and add CAPS_LATEST versions of tests which will change when we switch from -drive to -blockdev This series removes many duplicated and obsolete tests and adds much more useful CAPS_LATEST testing Peter Krempa (24): tests: qemu: Drop 'drive' from disk tests tests:

Re: [libvirt] [PATCH v2 6/6] rpc: Fix name of include guard

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > The include guard should match the file name and comment. > > Signed-off-by: Marc Hartmayer > Reviewed-by: Boris Fiuczynski > --- > src/rpc/virnetserverprogram.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: John

Re: [libvirt] [PATCH v2 5/6] virt-admin: Fix two error messages

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > Signed-off-by: Marc Hartmayer > Reviewed-by: Boris Fiuczynski > --- > tools/virt-admin.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > Reviewed-by: John Ferlan John -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v2 3/6] virThreadPool: Prevent switching between zero and non-zero maxWorkers

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > ...since maxWorkers=0 is only intended for virtlockd or virlogd which > must not be multithreaded. > > Signed-off-by: Marc Hartmayer > Reviewed-by: Boris Fiuczynski > Reviewed-by: Bjoern Walk > --- > src/util/virthreadpool.c | 8 > 1

Re: [libvirt] [PATCH v2 4/6] daemon: Raise an error if 'max_workers' < 1 in libvirtd.conf

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > Hypervisor drivers (e.g. QEMU) assume that they run in a separate > thread from the main event loop thread otherwise deadlocks can > occur. Therefore let's report an error if max_workers < 1 is set in > the libvirtd configuration file. > >

Re: [libvirt] [PATCH v2 2/6] rpc: Initialize a worker pool for max_workers=0 as well

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > Semantically, there is no difference between an uninitialized worker > pool and an initialized worker pool with zero workers. Let's allow the > worker pool to be initialized for max_workers=0 as well then which > makes the API more symmetric and

Re: [libvirt] [PATCH v2 1/6] rpc: Fix deadlock if there is no worker pool available

2018-07-19 Thread John Ferlan
On 07/03/2018 07:37 AM, Marc Hartmayer wrote: > @srv must be unlocked for the call virNetServerProcessMsg otherwise a > deadlock can occur. > > Since the pointer 'srv->workers' will never be changed after > initialization and the thread pool has it's own locking we can release > the lock of

[libvirt] [java PATCH 1/1] Add support for Qemu Guest Agent commands

2018-07-19 Thread Wido den Hollander
Through Qemu we can send commands to a Qemu Guest Agent running inside a domain. This way we can communicate with a running Domain by asking for it's network information, requesting a filesystem trim or even execute a command inside a Domain. Commands need to be send as JSON Strings, but these

[libvirt] [java PATCH 0/1] *** Add support for sendng Qemu Guest Agent Commands ***

2018-07-19 Thread Wido den Hollander
*** BLURB HERE *** Wido den Hollander (1): Add support for Qemu Guest Agent commands src/main/java/org/libvirt/Domain.java | 34 ++ src/main/java/org/libvirt/Library.java| 3 + .../java/org/libvirt/jna/LibvirtQemu.java | 16 +++

Re: [libvirt] [PATCH 11/10] qemu: hotplug: Add/remove managed PR objects on media change

2018-07-19 Thread Ján Tomko
On Wed, Jul 18, 2018 at 01:36:54PM +0200, Peter Krempa wrote: When changing cdrom media we did not handle the managed PR objects thus we'd either have a stale PR object left behind or the media change would fail. Signed-off-by: Peter Krempa --- Opps this one was also left behind in the

Re: [libvirt] [PATCH 10/10] qemu: hotplug: Make qemuHotplugWaitForTrayEject reusable

2018-07-19 Thread Ján Tomko
On Tue, Jul 17, 2018 at 02:14:30PM +0200, Peter Krempa wrote: Remove the issue of the monitor command to the caller so that the function can be used with the modern approach. Additionally improve the error message. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 26

Re: [libvirt] [PATCH 09/10] qemu: hotplug: Extract legacy disk media changing bits

2018-07-19 Thread Ján Tomko
On Tue, Jul 17, 2018 at 02:14:29PM +0200, Peter Krempa wrote: Prepare for the -blockdev implementation of ejectable media changing by splitting up the old bits. Additionally since both callers make sure that the device is a cdrom or floppy the check is no longer necessary. Signed-off-by: Peter

Re: [libvirt] [PATCH 08/10] qemu: hotplug: Refactor/simplify PR managed addition to VM

2018-07-19 Thread Ján Tomko
On Tue, Jul 17, 2018 at 02:14:28PM +0200, Peter Krempa wrote: Similarly to qemuDomainDiskRemoveManagedPR make it enter monitor on it's own so that it can be reused. Future users will be in the snapshot its code and in removable media change code. Signed-off-by: Peter Krempa ---

Re: [libvirt] [PATCH 07/10] qemu: hotplug: Simplify removal of managed PR infrastructure on unplug

2018-07-19 Thread Ján Tomko
On Tue, Jul 17, 2018 at 02:14:27PM +0200, Peter Krempa wrote: Extract the (possible) removal of the PR backend and daemon into a separate helper which enters monitor on it's own. This simplifies the its code and allows reuse of this function in the future e.g. for blockjobs where removing a

Re: [libvirt] [PATCH 06/10] qemu: hotplug: Reuse qemuHotplugDiskSourceRemove for disk backend removal

2018-07-19 Thread Ján Tomko
On Tue, Jul 17, 2018 at 02:14:26PM +0200, Peter Krempa wrote: Add code which will convert a disk definition into qemuHotplugDiskSourceData and then reuse qemuHotplugDiskSourceRemove to remove all the backend related objects. This unifies the detach code as much as possible with the already

[libvirt] [dockerfiles PATCH] Refresh after switch from yajl to jansson

2018-07-19 Thread Andrea Bolognani
The corresponding libvirt-jenkins-ci commit is d2bbe1eee61a. Signed-off-by: Andrea Bolognani --- Pushed under the Dockerfile refresh rule. buildenv-centos-7.Dockerfile | 4 ++-- buildenv-debian-8.Dockerfile | 2 +- buildenv-debian-9.Dockerfile | 2 +-

Re: [libvirt] [jenkins-ci PATCH 0/4] guests: Replace yajl with jansson

2018-07-19 Thread Erik Skultety
On Thu, Jul 19, 2018 at 11:49:51AM +0200, Andrea Bolognani wrote: > Andrea Bolognani (4): > guests: Install jansson for libvirt > guests: Don't install yajl for libvirt > guests: Remove yajl mapping > guests: Remove yajl kludge > > guests/tasks/kludges.yml | 2 -- >

[libvirt] [jenkins-ci PATCH 3/4] guests: Remove yajl mapping

2018-07-19 Thread Andrea Bolognani
There are no users left. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 5 - 1 file changed, 5 deletions(-) diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index eb31131..f6b308a 100644 --- a/guests/vars/mappings.yml +++ b/guests/vars/mappings.yml @@

[libvirt] [jenkins-ci PATCH 0/4] guests: Replace yajl with jansson

2018-07-19 Thread Andrea Bolognani
Andrea Bolognani (4): guests: Install jansson for libvirt guests: Don't install yajl for libvirt guests: Remove yajl mapping guests: Remove yajl kludge guests/tasks/kludges.yml | 2 -- guests/vars/mappings.yml | 10 +- guests/vars/projects/libvirt.yml | 2 +- 3

[libvirt] [jenkins-ci PATCH 2/4] guests: Don't install yajl for libvirt

2018-07-19 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- guests/vars/projects/libvirt.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/guests/vars/projects/libvirt.yml b/guests/vars/projects/libvirt.yml index 8c90a85..e512a50 100644 --- a/guests/vars/projects/libvirt.yml +++ b/guests/vars/projects/libvirt.yml

[libvirt] [jenkins-ci PATCH 1/4] guests: Install jansson for libvirt

2018-07-19 Thread Andrea Bolognani
libvirt has switched from yajl to jansson as its JSON implementation, so we need to have the latter available when building or the QEMU driver will be disabled. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 5 + guests/vars/projects/libvirt.yml | 1 + 2 files

[libvirt] [jenkins-ci PATCH 4/4] guests: Remove yajl kludge

2018-07-19 Thread Andrea Bolognani
No longer necessary now that yajl itself is not being installed. Signed-off-by: Andrea Bolognani --- guests/tasks/kludges.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/guests/tasks/kludges.yml b/guests/tasks/kludges.yml index 0ad61a7..31e9d6a 100644 --- a/guests/tasks/kludges.yml +++

Re: [libvirt] [PATCH v4] qemu: fix broken autostart symlink after renaming domain.

2018-07-19 Thread Erik Skultety
On Thu, Jul 19, 2018 at 01:21:48AM -0300, Julio Faracco wrote: > If a domain is configured to start on boot, it has a symlink to the > domain definition inside the autostart directory. If you rename this > domain, the definition is renamed too. The symlink need to be pointed to > this renamed

Re: [libvirt] [dockerfiles PATCH] refresh: Add refresh script

2018-07-19 Thread Daniel P . Berrangé
On Thu, Jul 19, 2018 at 10:20:55AM +0200, Andrea Bolognani wrote: > This calls lcitool, part of the libvirt-jenkins-ci > project, to refresh the Dockerfiles so that they > contain up to date information about build > requirements. > > Signed-off-by: Andrea Bolognani > --- > refresh | 30

[libvirt] [dockerfiles PATCH] refresh: Add refresh script

2018-07-19 Thread Andrea Bolognani
This calls lcitool, part of the libvirt-jenkins-ci project, to refresh the Dockerfiles so that they contain up to date information about build requirements. Signed-off-by: Andrea Bolognani --- refresh | 30 ++ 1 file changed, 30 insertions(+) create mode 100755

Re: [libvirt] [PATCH v2] util: set OOM in virCopyLastError if error is not set

2018-07-19 Thread Nikolay Shirokovskiy
On 17.07.2018 22:28, John Ferlan wrote: > > +} else { +to->code = VIR_ERR_NO_MEMORY; +to->domain = VIR_FROM_NONE; +to->level = VIR_ERR_ERROR; >>> >>> Should we do a VIR_FREE(to->message); so that nothing that was there >>> before somehow