Re: [libvirt] [PATCH] qemu: Use dynamic buffer for storing PTY aliases

2018-03-29 Thread Peter Krempa
On Thu, Mar 29, 2018 at 08:52:16 +0200, Michal Privoznik wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1560976 > > For historical reasons we've used 32 bytes long static buffer for > storing PTY aliases. This breaks users scenario where they try to > start a machine with user alias consisti

[libvirt] Release candidate 2 of libvirt-4.2.0 is available

2018-03-29 Thread Daniel Veillard
As planned I tagged it on git and pushed signed tarball and rpms to the usual place at: ftp://libvirt.org/libvirt/ this is virtually identical to rc1, the only change between two versions is a comment edit pushed by Dan ! Still please give it a try, especially for other platforms and OSe

Re: [libvirt] [PATCH] qemu: Use dynamic buffer for storing PTY aliases

2018-03-29 Thread Michal Privoznik
On 03/29/2018 09:18 AM, Peter Krempa wrote: > On Thu, Mar 29, 2018 at 08:52:16 +0200, Michal Privoznik wrote: >> https://bugzilla.redhat.com/show_bug.cgi?id=1560976 >> >> For historical reasons we've used 32 bytes long static buffer for >> storing PTY aliases. This breaks users scenario where they

Re: [libvirt] [PATCH] qemu: Use dynamic buffer for storing PTY aliases

2018-03-29 Thread Peter Krempa
On Thu, Mar 29, 2018 at 10:13:43 +0200, Michal Privoznik wrote: > On 03/29/2018 09:18 AM, Peter Krempa wrote: > > On Thu, Mar 29, 2018 at 08:52:16 +0200, Michal Privoznik wrote: > >> https://bugzilla.redhat.com/show_bug.cgi?id=1560976 > >> > >> For historical reasons we've used 32 bytes long static

Re: [libvirt] [PATCH] qemu: Use dynamic buffer for storing PTY aliases

2018-03-29 Thread Michal Privoznik
On 03/29/2018 10:22 AM, Peter Krempa wrote: > On Thu, Mar 29, 2018 at 10:13:43 +0200, Michal Privoznik wrote: >> On 03/29/2018 09:18 AM, Peter Krempa wrote: >>> On Thu, Mar 29, 2018 at 08:52:16 +0200, Michal Privoznik wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1560976 For his

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 0/2] Problem: libvirt fails to create fully allocated qcow2 storage objects.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have When virt-install requests to create fully allocated storage object when the parameter sparse=no is set, libvirt doesn't allow that to happen for qcow2 formatted files. Regardless of its XML instuction request libvirt always targets its filesystem object storage with prealloc

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 2/2] Adjust qemu-img test required to target with preallocation=falloc.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have Signed-off-by: Wim ten Have --- tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/storagevolxml2argvdata/qcow2-nocapacity-convert-prealloc.argv b/tests/storagevolxml2argvdata/qcow2-n

[libvirt] [PATCH libvirt sparse files under format=qcow2 v1 1/2] libvirt can't create fully allocated qcow2 formatted storage objects.

2018-03-29 Thread Wim Ten Have
From: Wim ten Have This patch adds support to qcow2 formatted storage objects by instructing qemu-img to build them with preallocation=falloc whenever the XML described storage matches its . For all other cases the objects are built with preallocation=metadata. Signed-off-by: Wim ten Have ---

[libvirt] [dbus PATCH 2/4] Implement Resume method for Domain interface.

2018-03-29 Thread Katerina Koukiou
Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 17 + 3 files changed, 42 insertions(+) diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml index f3

[libvirt] [dbus PATCH 1/4] Implement Suspend method for Domain interface.

2018-03-29 Thread Katerina Koukiou
Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 15 +++ 3 files changed, 40 insertions(+) diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml index 3921

[libvirt] [dbus PATCH 0/4] New APIs and Domain Lifecycle signal change

2018-03-29 Thread Katerina Koukiou
* Implemented Suspend and Resume APIs. * Merged all Domain Lifecycle events signals into one signal. * Reused virsh functions for taking the Event Strings names from ENUM. Katerina Koukiou (4): Implement Suspend method for Domain interface. Implement Resume method for Domain interface. Merge

[libvirt] [dbus PATCH 4/4] Introduce functions for translating Events to strings

2018-03-29 Thread Katerina Koukiou
The functions were copied from src/util/virutil.* files from libvirt project. They will be needed for other function of enum to string as well. Signed-off-by: Katerina Koukiou --- m4/virt-compile-warnings.m4 | 3 +++ src/events.c| 35 +-- src/uti

[libvirt] [dbus PATCH 3/4] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Katerina Koukiou
Instead of having multiple signals regarding to domain events, like DomainStarted, DomainUndefined etc, we will have only one called Domain, and the specific event type will be specified in the signals arguments. The domain name argument in not needed in the signal since we can fetch it from path.

[libvirt] [PATCH 01/14] tests: utils: Tolerate NULL actual data in virTestCompareToFile

2018-03-29 Thread Peter Krempa
The function docs state that 'strcontent' may be NULL, but code added in 3506f1ecfde did not use the 'cmpcontent' variable which was fixed and dereferenced it. Signed-off-by: Peter Krempa --- tests/testutils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testutil

[libvirt] [PATCH 00/14] Fixes, cleanups and qcow2+luks support (blockdev-add saga)

2018-03-29 Thread Peter Krempa
This is a collection of patches from my blockdev-add branch which are basically ready. First few patches are refactors and cleanups which should be justified enough by itself even if the code which will use some of them was not posted yet. Other few patches add checks which will reject configurat

[libvirt] [PATCH 08/14] qemu: domain: Forbid VIR_STORAGE_FILE_ISO as a disk format

2018-03-29 Thread Peter Krempa
This format is used by the storage driver and other hypervisors but qemu does not have nothion of the 'iso' format and libvirt does not translate it to anything useful, so it would not work anyways. Users should use 'raw' instead. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c

[libvirt] [PATCH 04/14] conf: Extract logic for updating 'detect_zeroes' mode

2018-03-29 Thread Peter Krempa
For some reason we've decided to silently translate the disk detect_zeroes mode if it would be invalid. Extract the logic so that it does not need to be copypasta'd across the code base. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 22 ++ src/conf/domain_conf.h

[libvirt] [PATCH 03/14] conf: Don't require 'def' in virDomainDiskDefParse

2018-03-29 Thread Peter Krempa
In some use cases (mostly in tests) it is not required to check the seclabel definition validity. Add possibility to call virDomainDiskDefParse without the domain definition. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-)

[libvirt] [PATCH 06/14] qemu: domain: Forbid storage type 'cow' in qemu

2018-03-29 Thread Peter Krempa
QEMU does not support it so save us hassle and forbid it right away. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c| 23 +++ tests/qemuxml2argvdata/disk-drive-fmt-cow.xml | 27 +++ tests/qemuxml2argvtest.c

[libvirt] [PATCH 07/14] qemu: domain: Forbid VIR_STORAGE_FILE_DIR as a disk format

2018-03-29 Thread Peter Krempa
This is a storage driver type, which is not handled in qemu driver properly. For accessing directories, disk type 'dir' is used instead. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c| 7 +++ tests/qemuxml2argvdata/disk-drive-fmt-dir.xml | 27

[libvirt] [PATCH 09/14] qemu: caps: Add capability for LUKS encrypted qcow2 image support

2018-03-29 Thread Peter Krempa
Signed-off-by: Peter Krempa --- src/qemu/qemu_capabilities.c | 2 ++ src/qemu/qemu_capabilities.h | 1 + tests/qemucapabilitiesdata/caps_2.10.0.aarch64.xml | 1 + tests/qemucapabilitiesdata/caps_2.10.0.ppc64.xml | 1 + tests/qemucapabilitiesdata/caps_

[libvirt] [PATCH 13/14] tests: qemuxml2argv: Allow testing of config processed at startup

2018-03-29 Thread Peter Krempa
Add a new kind of XML output test for the files in qemuxml2argvtest where we can validate setup and defaults applied when starting up the VM. This is achieved by formatting of the definition processed by the qemuxml2argvtest into a XML and it's compared against files in qemuxml2startupxmloutdata.

[libvirt] [PATCH 10/14] qemu: domain: Validate support for LUKS encryption of QCOW2 images

2018-03-29 Thread Peter Krempa
Reject configurations when qemu would not support the image. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index e02da9e608..cbad7d0f4c 100644 --- a

[libvirt] [PATCH 12/14] tests: qemu: Test QCOW2 + LUKS support

2018-03-29 Thread Peter Krempa
Signed-off-by: Peter Krempa --- .../qemuxml2argvdata/luks-disks-source-qcow2.args | 66 ++ tests/qemuxml2argvdata/luks-disks-source-qcow2.xml | 81 ++ tests/qemuxml2argvtest.c | 2 + 3 files changed, 149 insertions(+) create mode 10

[libvirt] [PATCH 05/14] qemu: domain: Add helper to initialize detected parts of the backing chain

2018-03-29 Thread Peter Krempa
It will be necessary to initialize various aspects for the detected members of the backing chain. Add a function that will handle it and call it from qemuDomainPrepareDiskSource and qemuDomainDetermineDiskChain Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.c | 48 +

[libvirt] [PATCH 11/14] qemu: command: Add support for qcow2 + luks

2018-03-29 Thread Peter Krempa
The old qcow2 encryption format was buggy, so the new approach is to use luks inside qcow2. As it turns out, it didn't require that many changes. It was necessary to fix the command line formatter to stop mangling the format when secrets are present and specify the encryption format and secret in

[libvirt] [PATCH 02/14] conf: Refactor/rename virDomainDiskDefSourceParse

2018-03-29 Thread Peter Krempa
Make the function more usable by returning the full disk definition and fix the only caller for the new semantics. The new name for the function is virDomainDiskDefParse. Signed-off-by: Peter Krempa --- src/conf/domain_conf.c | 33 - src/conf/domain_conf.h |

[libvirt] [PATCH 14/14] qemu: domain: Move initialization of disk cachemode for disks

2018-03-29 Thread Peter Krempa
The qemu command line generator code set disk caching of shareable disks to 'none' when formatting the command line silently. Move this code to a common place when preparing the domain definition for startup so that it does not have to be duplicated. The new test case shows that the actual cache m

Re: [libvirt] [dbus PATCH 2/4] Implement Resume method for Domain interface.

2018-03-29 Thread Ján Tomko
On Thu, Mar 29, 2018 at 01:07:56PM +0200, Katerina Koukiou wrote: Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 17 + 3 files changed, 42 insertions(+) ACK Jano s

Re: [libvirt] [dbus PATCH 1/4] Implement Suspend method for Domain interface.

2018-03-29 Thread Ján Tomko
On Thu, Mar 29, 2018 at 01:07:55PM +0200, Katerina Koukiou wrote: Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 15 +++ 3 files changed, 40 insertions(+) ACK Jano sig

[libvirt] [PATCH 2/4] conf: Fix error path logic in virDomainObjListLoadStatus

2018-03-29 Thread John Ferlan
If the virHashAddEntry fails, then we need to "careful" about how we free the @obj. When virDomainObjParseFile returns there is one reference and the object is locked, so use virDomainObjEndAPI when done. Add a virObjectRef in the error path for the second virHashAddEntry call since it doesn't cal

[libvirt] [PATCH 1/4] conf: Fix error path logic in virDomainObjListAddLocked

2018-03-29 Thread John Ferlan
If the virHashAddEntry fails, then we need to "careful" about how we free the @vm. When virDomainObjNew returns there is one reference and the object is locked, so use virDomainObjEndAPI when done. Add a virObjectRef in the error path for the second virHashAddEntry call since it doesn't call virOb

[libvirt] [PATCH 3/4] conf: Introduce virDomainObjListAddObjLocked

2018-03-29 Thread John Ferlan
Create a common helper to add an object to the locked domain objlist hash tables and use it. Signed-off-by: John Ferlan --- src/conf/virdomainobjlist.c | 64 +++-- 1 file changed, 39 insertions(+), 25 deletions(-) diff --git a/src/conf/virdomainobjlist.c

[libvirt] [PATCH 4/4] conf: Fix virDomainObjParseFile object handling

2018-03-29 Thread John Ferlan
When virDomainObjParseFile runs, it returns a locked @obj with one reference. Rather than just use virObjectUnref to clean that up, use virObjectEndAPI. Signed-off-by: John Ferlan --- src/lxc/lxc_controller.c | 2 +- tests/qemuxml2xmltest.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(

[libvirt] [PATCH 0/4] Initial phase of domain obj add/remove cleanup

2018-03-29 Thread John Ferlan
As evidenced by various code comments, the process of adding and removing objects to/from the domain object list is problematic. Long story short is that the Add logic doesn't generate enough object references and the Remove logic removes one extra than was added during Add and leaves the object u

Re: [libvirt] [dbus PATCH 4/4] Introduce functions for translating Events to strings

2018-03-29 Thread Pavel Hrdina
On Thu, Mar 29, 2018 at 01:07:58PM +0200, Katerina Koukiou wrote: > The functions were copied from src/util/virutil.* files from > libvirt project. > > They will be needed for other function of enum to string > as well. This should be split into two patches, one that introduces the new macros and

[libvirt] [PATCH 2/2] util: Alter virCloseCallback typedef to return void

2018-03-29 Thread John Ferlan
Since virCloseCallbacksRun was ignoring the value anyway, let's just change it to be a void function. Signed-off-by: John Ferlan --- src/bhyve/bhyve_process.c| 8 ++-- src/lxc/lxc_process.c| 8 ++-- src/qemu/qemu_migration.c| 7 ++- src/qemu/qemu_process.c | 7 ++

[libvirt] [PATCH 1/2] qemu: Fix qemuProcessAutoDestroy

2018-03-29 Thread John Ferlan
Upon entry from virCloseCallbacksRun, the @dom will have a Ref and Lock from virDomainObjListFindByUUIDRef, so there's no need to take an extra reference nor should the code call virDomainObjEndAPI when done since that both Unref's and Unlock's the @dom which means the callers call to EndAPI would

[libvirt] [PATCH 0/2] Change virCloseCallback typedef to return void

2018-03-29 Thread John Ferlan
Slightly related to some current work to clean up the Add/Remove domain object list processing - as it turns out the close callbacks run code didn't even pay attention to what was returned and it really didn't need to - so let's just call it what it is a void function and let the virCloseCallbacksR

Re: [libvirt] [dbus PATCH 3/4] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Ján Tomko
On Thu, Mar 29, 2018 at 01:07:57PM +0200, Katerina Koukiou wrote: Instead of having multiple signals regarding to domain events, like DomainStarted, DomainUndefined etc, we will have only one called Domain, and the specific event type will be specified in the signals arguments. The domain name a

Re: [libvirt] [dbus PATCH 4/4] Introduce functions for translating Events to strings

2018-03-29 Thread Ján Tomko
On Thu, Mar 29, 2018 at 02:44:54PM +0200, Pavel Hrdina wrote: On Thu, Mar 29, 2018 at 01:07:58PM +0200, Katerina Koukiou wrote: The functions were copied from src/util/virutil.* files from libvirt project. They will be needed for other function of enum to string as well. This should be split

Re: [libvirt] [dbus PATCH 3/4] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Pavel Hrdina
On Thu, Mar 29, 2018 at 01:07:57PM +0200, Katerina Koukiou wrote: > Instead of having multiple signals regarding to domain events, > like DomainStarted, DomainUndefined etc, we will have only one > called Domain, and the specific event type will be specified in > the signals arguments. > > The dom

[libvirt] [PATCH] qemu_monitor_json: Properly check "return" type

2018-03-29 Thread Jiri Denemark
My commit 2e0d6cdec41 claimed qemuMonitorJSONCheckError guarantees "return" object exists in the JSON reply. But it only makes sure the key is there, while the type of the value is not checked. A lot of callers do not care since they only want to see whether their QMP command failed or not, but any

Re: [libvirt] [dbus PATCH 3/4] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Katerina Koukiou
On Thu, 2018-03-29 at 15:14 +0200, Pavel Hrdina wrote: > On Thu, Mar 29, 2018 at 01:07:57PM +0200, Katerina Koukiou wrote: > > Instead of having multiple signals regarding to domain events, > > like DomainStarted, DomainUndefined etc, we will have only one > > called Domain, and the specific event

Re: [libvirt] [dbus PATCH 3/4] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Katerina Koukiou
On Thu, 2018-03-29 at 15:05 +0200, Ján Tomko wrote: > On Thu, Mar 29, 2018 at 01:07:57PM +0200, Katerina Koukiou wrote: > > Instead of having multiple signals regarding to domain events, > > like DomainStarted, DomainUndefined etc, we will have only one > > called Domain, and the specific event typ

Re: [libvirt] [dbus PATCH 4/4] Introduce functions for translating Events to strings

2018-03-29 Thread Katerina Koukiou
On Thu, 2018-03-29 at 15:11 +0200, Ján Tomko wrote: > On Thu, Mar 29, 2018 at 02:44:54PM +0200, Pavel Hrdina wrote: > > On Thu, Mar 29, 2018 at 01:07:58PM +0200, Katerina Koukiou wrote: > > > The functions were copied from src/util/virutil.* files from > > > libvirt project. > > > > > > They will

[libvirt] [dbus PATCH v2 2/5] Implement Resume method for Domain interface.

2018-03-29 Thread Katerina Koukiou
Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 17 + 3 files changed, 42 insertions(+) diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml index f3

[libvirt] [dbus PATCH v2 4/5] events: Introduce virtDBusEventsDomainEventToString function

2018-03-29 Thread Katerina Koukiou
This function replaces the manual translation of Event ENUMS. Note: VIR_ENUM_SENTINELS is needed for VIR_DOMAIN_EVENT_LAST. Signed-off-by: Katerina Koukiou --- src/events.c | 55 +-- src/events.h | 3 +++ src/util.h | 1 + 3 files changed,

[libvirt] [dbus PATCH v2 1/5] Implement Suspend method for Domain interface.

2018-03-29 Thread Katerina Koukiou
Signed-off-by: Katerina Koukiou --- data/org.libvirt.Domain.xml | 4 src/domain.c| 21 + test/test_domain.py | 15 +++ 3 files changed, 40 insertions(+) diff --git a/data/org.libvirt.Domain.xml b/data/org.libvirt.Domain.xml index 3921

[libvirt] [dbus PATCH v2 3/5] utils: Introduce functions and macros for translating ENUMs to strings

2018-03-29 Thread Katerina Koukiou
The functions were copied from src/util/virutil.* files from libvirt project Signed-off-by: Katerina Koukiou --- src/util.c | 27 +++ src/util.h | 28 2 files changed, 55 insertions(+) diff --git a/src/util.c b/src/util.c index d6c27f3..3179d

[libvirt] [dbus PATCH v2 0/5] New APIs and Domain Lifecycle signal change

2018-03-29 Thread Katerina Koukiou
* Implemented Suspend and Resume APIs. * Reused virsh functions for taking the Event Strings names from ENUM. * Merged all Domain Lifecycle events signals into one signal. Katerina Koukiou (5): Implement Suspend method for Domain interface. Implement Resume method for Domain interface. utils

[libvirt] [dbus PATCH v2 5/5] Merge all Domain lifecycle signals into one signal called Domain.

2018-03-29 Thread Katerina Koukiou
Instead of having multiple signals regarding to domain events, like DomainStarted, DomainUndefined etc, we will have only one called DomainEvents, and the specific event type will be specified in the signals arguments. The domain name argument in not needed in the signal since we can fetch it from

Re: [libvirt] [dbus PATCH 4/4] Introduce functions for translating Events to strings

2018-03-29 Thread Katerina Koukiou
On Thu, 2018-03-29 at 14:44 +0200, Pavel Hrdina wrote: > On Thu, Mar 29, 2018 at 01:07:58PM +0200, Katerina Koukiou wrote: > > The functions were copied from src/util/virutil.* files from > > libvirt project. > > > > They will be needed for other function of enum to string > > as well. > > This s

Re: [libvirt] [PATCH] qemu: add virQEMUBuildBufferEscapeComma in qemu_command.c

2018-03-29 Thread John Ferlan
On 03/16/2018 01:02 PM, Sukrit Bhatnagar wrote: > This patch adds virQEMUBuildBufferEscapeComma wherever applicable in > src/qemu/qemu_command.c > Based on: > https://wiki.libvirt.org/page/BiteSizedTasks#qemu:_Use_comma_escaping_for_more_command_line_values > Try to keep shorter lines in your

Re: [libvirt] [PATCH] docs: formatdomain: Clarify CPU feature policy option "require"

2018-03-29 Thread John Ferlan
On 03/26/2018 06:53 AM, Kashyap Chamarthy wrote: > (Thanks: Jiri Denemark, for clarifying this on IRC.) Lost context here! That should have gone under the --- cause it'll look awfully strange in git history. Is there "more" or "extra" text you'd like to see added? Or is the commit message goo

Re: [libvirt] [PATCH 1/2] util: honor reportError parameter in virSocketAddrParseInternal

2018-03-29 Thread John Ferlan
On 03/26/2018 04:29 PM, Jim Fehlig wrote: > Signed-off-by: Jim Fehlig > --- > src/util/virsocketaddr.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > Reviewed-by: John Ferlan May was well wait for 4.2.0 to be released before pushing... John > diff --git a/src/util/virsocketad

Re: [libvirt] [PATCH 2/2] util: introduce virSocketAddrParseAny

2018-03-29 Thread John Ferlan
On 03/26/2018 04:29 PM, Jim Fehlig wrote: > When preparing for migration, the libxl driver creates a new TCP listen > socket for the incoming migration by calling virNetSocketNewListenTCP, > passing the destination host name. virNetSocketNewListenTCP calls > virSocketAddrParse to check if the hos

Re: [libvirt] [PATCH] virsh: add missing help info of --source to domifaddr

2018-03-29 Thread John Ferlan
On 03/15/2018 10:03 PM, Chen Hanxiao wrote: > From: Chen Hanxiao > > commit b4b5c82ce forgot to add this. > > Signed-off-by: Chen Hanxiao > --- > tools/virsh-domain-monitor.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/virsh-domain-monitor.c b/tools/virsh-

Re: [libvirt] [PATCH 06/20] openvz: Create accessors to virDomainObjListFindByUUID

2018-03-29 Thread Jim Fehlig
On 03/09/2018 09:48 AM, John Ferlan wrote: Rather than repeat code throughout, create and use a couple of accessors in order to lookup by UUID. Signed-off-by: John Ferlan --- src/openvz/openvz_driver.c | 266 + 1 file changed, 76 insertions(+), 190

Re: [libvirt] [PATCH 07/20] openvz: Add more descriptive error message on Find failure

2018-03-29 Thread Jim Fehlig
On 03/09/2018 09:48 AM, John Ferlan wrote: If openvzDomainLookupByID or openvzDomainLookupByName fails to find a vm, let's be a bit more descriptive by providing the failing id or name in the error message. Signed-off-by: John Ferlan --- src/openvz/openvz_driver.c | 10 ++ 1 file cha

Re: [libvirt] [PATCH 08/20] openvz: Use virDomainObjListFindBy{UUID|ID}Ref

2018-03-29 Thread Jim Fehlig
On 03/09/2018 09:48 AM, John Ferlan wrote: For openvzDomObjFromDomainLocked and openvzDomainLookupByID let's return a locked and referenced @vm object so that callers can then use the common and more consistent virDomainObjEndAPI in order to handle cleanup rather than needing to know that the ret

Re: [libvirt] [PATCH] qemu_monitor_json: Properly check "return" type

2018-03-29 Thread Peter Krempa
On Thu, Mar 29, 2018 at 16:35:59 +0200, Jiri Denemark wrote: > My commit 2e0d6cdec41 claimed qemuMonitorJSONCheckError guarantees > "return" object exists in the JSON reply. But it only makes sure the key > is there, while the type of the value is not checked. A lot of callers > do not care since t