[libvirt] [PATCH v2 8/9] backup: Add new domain:checkpoint access control

2018-10-11 Thread Eric Blake
Creating a checkpoint does not modify guest-visible state, but does modify host resources. Rather than reuse existing domain:write, domain:block_write, or domain:snapshot access controls, it seems better to introduce a new access control specific to tasks related to checkpoints and incremental

[libvirt] [PATCH v2 9/9] backup: Implement backup APIs for remote driver

2018-10-11 Thread Eric Blake
The remote code generator had to be taught about the new virDomainCheckpointPtr type, at which point the remote driver code for backups can be generated. Signed-off-by: Eric Blake --- src/remote/remote_daemon_dispatch.c | 15 ++ src/remote/remote_driver.c | 33 +++-

[libvirt] [PATCH v2 0/9] Incremental Backup API additions

2018-10-11 Thread Eric Blake
The following is the latest version of my API proposal for incremental backups. I have even more work-in-progress patches on top of these: https://repo.or.cz/libvirt/ericb.git which I am slowly improving to be more in line with my thread on the overview of the API usage:

[libvirt] [PATCH v2 1/9] snapshots: Avoid term 'checkpoint' for full system snapshot

2018-10-11 Thread Eric Blake
Upcoming patches plan to introduce virDomainCheckpointPtr as a new object for use in incremental backups, along with documentation on how incremental backups differ from snapshots. But first, we need to rename any existing mention of a 'system checkpoint' to instead be a 'full system snapshot',

[libvirt] [PATCH v2 5/9] backup: Document new XML for backups

2018-10-11 Thread Eric Blake
Prepare for new checkpoint and backup APIs by describing the XML that will represent a checkpoint and backup. The checkpoint XML is modeled heavily after virDomainSnapshotPtr, since both represent a point in time of the guest (however, a snapshot exists with the intent to roll back to that point,

[libvirt] [PATCH v2 6/9] backup: Introduce virDomainCheckpoint APIs

2018-10-11 Thread Eric Blake
Introduce a bunch of new public APIs related to backup checkpoints. Checkpoints are modeled heavily after virDomainSnapshotPtr (both represent a point in time of the guest), although a snapshot exists with the intent of rolling back to that state, while a checkpoint exists to make it possible to

[libvirt] [PATCH v2 7/9] backup: Introduce virDomainBackup APIs

2018-10-11 Thread Eric Blake
Introduce a few more new public APIs related to incremental backups. This builds on the previous notion of a checkpoint (without an existing checkpoint, the new API is a full backup, differing only from virDomainCopy in the point of time chosen); and also allows creation of a new checkpoint at the

[libvirt] [PATCH v2 3/9] backup: Document nuances between different state capture APIs

2018-10-11 Thread Eric Blake
Upcoming patches will add support for incremental backups via a new API; but first, we need a landing page that gives an overview of capturing various pieces of guest state, and which APIs are best suited to which tasks. Signed-off-by: Eric Blake --- v2: wording improvements based on review ---

[libvirt] [PATCH v2 2/9] domain_conf: Expose virDomainStorageNetworkParseHost

2018-10-11 Thread Eric Blake
An upcoming patch wants to reuse XML parsing of both unix and tcp network host descriptions in the context of setting up a backup NBD server. Make that easier by refactoring the existing parser. Signed-off-by: Eric Blake --- src/conf/domain_conf.h | 2 ++ src/conf/domain_conf.c | 43

[libvirt] [PATCH v2 4/9] backup: Introduce virDomainCheckpointPtr

2018-10-11 Thread Eric Blake
Prepare for introducing a bunch of new public APIs related to backup checkpoints by first introducing a new internal type and errors associated with that type. Checkpoints are modeled heavily after virDomainSnapshotPtr (both represent a point in time of the guest), although a snapshot exists with

[libvirt] [PATCH v3] qemu: agent: Avoid agentError when closing the QEMU agent

2018-10-11 Thread Wang Yechao
The commit 89563efc0209b854d2b2e554423423d7602acdbd fix the monitor error when closing the QEMU monitor. The QEMU agent has a problem similar to QEMU monitor. So fix the QEMU agent with the same method. Signed-off-by: Wang Yechao --- Changes in v3: - change the commit messages ---

[libvirt] [PATCH] qemu: Remove unused qemuProcessAutostartAll

2018-10-11 Thread John Ferlan
The function was never defined in source, just the protoype. Signed-off-by: John Ferlan --- Pushed as trivial. src/qemu/qemu_process.h | 1 - 1 file changed, 1 deletion(-) diff --git a/src/qemu/qemu_process.h b/src/qemu/qemu_process.h index c2f7c2b5d2..2037467c94 100644 ---

Re: [libvirt] [PATCH v1 1/1] qemu_domain, qemu_process: maxCpus check to non-x86 guests

2018-10-11 Thread John Ferlan
On 10/4/18 9:14 AM, Daniel Henrique Barboza wrote: > This patch makes two quality of life changes for non-x86 guests. The > first one is a maxCpus validation at qemuDomainDefValidate. The check > is made by the same function used to do that at qemuProcessStartValidateXML, >

Re: [libvirt] [PATCH v2 01/11] security: Always spawn process for transactions

2018-10-11 Thread John Ferlan
On 10/11/18 8:03 AM, Michal Privoznik wrote: > In the next commit the virSecurityManagerMetadataLock() is going > to be turned thread unsafe. Therefore, we have to spawn a > separate process for it. Always. > > Signed-off-by: Michal Privoznik > --- > src/security/security_dac.c | 12

Re: [libvirt] [glib PATCH 0/3] Add ich9 sound device + _domain_os_get_machine()

2018-10-11 Thread Cole Robinson
On 10/11/2018 11:40 AM, Fabiano Fidêncio wrote: The first patch is needed to properly support Q35 machine type on GNOME Boxes (or any other app using libvirt-glib) as the ICH9 audio device should be used together with Q35 machine type, The second patch is mostly a convenience for the apps and

[libvirt] [PATCH] virsh: Fix regression with duplicated error messages

2018-10-11 Thread Eric Blake
Commit 4f4c3b13 (v3.3) fixed an issue where cleaning libvirt objects lost error messages, by adding code to copy the libvirt error into last_error prior to cleanup paths. However, it caused a regression: some errors are now printed twice, because libvirt still remembers in its thread-local

Re: [libvirt] [RFC] Faster libvirtd restart with nwfilter rules

2018-10-11 Thread Laine Stump
On 10/11/2018 06:20 AM, Daniel P. Berrangé wrote: > On Mon, Sep 24, 2018 at 10:41:37AM +0300, Nikolay Shirokovskiy wrote: > >> What speed up is possible on conservative approach? First we can remove for >> test purpuses firewall ruleLock, gentech dirver updateMutex and filter object >> mutex

Re: [libvirt] [PATCH v2 1/2] add nodeset='all' for interleave mode

2018-10-11 Thread Daniel P . Berrangé
On Thu, Oct 11, 2018 at 12:03:44PM -0400, John Ferlan wrote: > > > On 9/29/18 6:58 AM, Peng Hao wrote: > > sometimes we hoped that the memory of vm can be evenly distributed in > > all nodes according to interleave mode. But different hosts > > has different node number. So we add nodeset='all'

Re: [libvirt] [PATCH v2 2/2] add docs for interleave nodeset='all'

2018-10-11 Thread John Ferlan
On 9/29/18 6:58 AM, Peng Hao wrote: > Signed-off-by: Peng Hao > --- > docs/formatdomain.html.in | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > This should have been merged with patch 1 > diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in > index

Re: [libvirt] [PATCH v2 1/2] add nodeset='all' for interleave mode

2018-10-11 Thread Daniel P . Berrangé
On Sat, Sep 29, 2018 at 06:58:01PM +0800, Peng Hao wrote: > sometimes we hoped that the memory of vm can be evenly distributed in > all nodes according to interleave mode. But different hosts > has different node number. So we add nodeset='all' for interleave mode. > > Signed-off-by: Peng Hao >

Re: [libvirt] [PATCH v2 1/2] add nodeset='all' for interleave mode

2018-10-11 Thread John Ferlan
On 9/29/18 6:58 AM, Peng Hao wrote: > sometimes we hoped that the memory of vm can be evenly distributed in > all nodes according to interleave mode. But different hosts > has different node number. So we add nodeset='all' for interleave mode. > > Signed-off-by: Peng Hao > --- >

Re: [libvirt] [PATCH v2] vhost-user: define conventions for vhost-user backends

2018-10-11 Thread Daniel P . Berrangé
Adding Markus since we're talking about new CLI argument and capability reporting standards. On Fri, Sep 14, 2018 at 05:52:30PM +0400, Marc-André Lureau wrote: > As discussed during "[PATCH v4 00/29] vhost-user for input & GPU" > review, let's define a common set of backend conventions to help

[libvirt] [glib PATCH 2/3] gconfig: add _domain_os_get_machine()

2018-10-11 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- libvirt-gconfig/libvirt-gconfig-domain-os.c | 7 +++ libvirt-gconfig/libvirt-gconfig-domain-os.h | 1 + libvirt-gconfig/libvirt-gconfig.sym | 1 + 3 files changed, 9 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-os.c

[libvirt] [glib PATCH 0/3] Add ich9 sound device + _domain_os_get_machine()

2018-10-11 Thread Fabiano Fidêncio
The first patch is needed to properly support Q35 machine type on GNOME Boxes (or any other app using libvirt-glib) as the ICH9 audio device should be used together with Q35 machine type, The second patch is mostly a convenience for the apps and the third one just adds a test case for the second.

[libvirt] [glib PATCH 3/3] tests: Add testes for _domain_os_{set, get}_machine()

2018-10-11 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- tests/test-gconfig.c| 2 ++ tests/xml/gconfig-domain-os.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test-gconfig.c b/tests/test-gconfig.c index a64da26..3328297 100644 --- a/tests/test-gconfig.c +++

[libvirt] [glib PATCH 1/3] gconfig-domain-sound: Add ich9 sound device

2018-10-11 Thread Fabiano Fidêncio
Signed-off-by: Fabiano Fidêncio --- libvirt-gconfig/libvirt-gconfig-domain-sound.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-sound.h b/libvirt-gconfig/libvirt-gconfig-domain-sound.h index 8779754..41b0122 100644 ---

Re: [libvirt] [PATCH v6 09/13] conf: Allocate/release 'uid' and 'fid' in PCI address

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: > # conf/device_conf.h > +virDeviceInfoPCIAddressExtensionIsPresent; > +virDeviceInfoPCIAddressExtensionIsWanted; > virDeviceInfoPCIAddressIsPresent; > virDeviceInfoPCIAddressIsWanted; > virDomainDeviceAddressIsValid; > @@ -119,6 +121,9 @@

Re: [libvirt] [PATCH v6 08/13] qemu: Add zPCI address definition check

2018-10-11 Thread Andrea Bolognani
On Thu, 2018-10-11 at 14:44 +0200, Andrea Bolognani wrote: [...] > With the above addressed, > > Reviewed-by: Andrea Bolognani Forgot to mention: it would be really nice if you added a negative test case showing that using zPCI addresses on eg. x86 will result in a validation error. --

Re: [libvirt] [PATCH v6 08/13] qemu: Add zPCI address definition check

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] > +static int > +qemuDomainDeviceDefValidateAddress(const virDomainDeviceDef *dev, > + virQEMUCapsPtr qemuCaps) > +{ > +virDomainDeviceInfoPtr info = > +

Re: [libvirt] [Qemu-devel] [PATCH v2 0/3] HMP/snapshot changes - do not use ID anymore

2018-10-11 Thread Peter Krempa
On Thu, Oct 11, 2018 at 13:06:14 +0100, Dr. David Alan Gilbert wrote: > * Peter Krempa (pkre...@redhat.com) wrote: > > On Tue, Oct 09, 2018 at 19:34:43 +0200, Markus Armbruster wrote: > > > Cc: libvir-list for review of the compatibility argument below. > > > > > > Daniel Henrique Barboza

Re: [libvirt] [Qemu-devel] [PATCH v2 0/3] HMP/snapshot changes - do not use ID anymore

2018-10-11 Thread Dr. David Alan Gilbert
* Peter Krempa (pkre...@redhat.com) wrote: > On Tue, Oct 09, 2018 at 19:34:43 +0200, Markus Armbruster wrote: > > Cc: libvir-list for review of the compatibility argument below. > > > > Daniel Henrique Barboza writes: > > > > > Hey David, > > > > > > On 9/21/18 9:29 AM, Dr. David Alan Gilbert

[libvirt] [PATCH v2 09/11] Revert "lock_driver: Introduce new VIR_LOCK_MANAGER_OBJECT_TYPE_DAEMON"

2018-10-11 Thread Michal Privoznik
This reverts commit 22baf6e08c65d9174b24f66370724ce961ce9576. Signed-off-by: Michal Privoznik --- src/locking/lock_driver.h | 2 - src/locking/lock_driver_lockd.c | 297 +++--- src/locking/lock_driver_sanlock.c | 37 ++-- 3 files changed, 116 insertions(+),

[libvirt] [PATCH v2 08/11] Revert "_virLockManagerLockDaemonPrivate: Move @hasRWDisks into dom union"

2018-10-11 Thread Michal Privoznik
This reverts commit aaf34cb9013d6d746f4edf9807408cb9dfbcf01d. Signed-off-by: Michal Privoznik --- src/locking/lock_driver_lockd.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/locking/lock_driver_lockd.c b/src/locking/lock_driver_lockd.c index

[libvirt] [PATCH v2 03/11] Revert "security_manager: Load lock plugin on init"

2018-10-11 Thread Michal Privoznik
This reverts commit 3e26b476b5f322353bf0dcd8e3f037ca672b8c62. Signed-off-by: Michal Privoznik --- cfg.mk | 4 +--- src/lxc/lxc_controller.c | 3 +-- src/lxc/lxc_driver.c | 2 +- src/qemu/qemu_driver.c | 3 ---

[libvirt] [PATCH v2 01/11] security: Always spawn process for transactions

2018-10-11 Thread Michal Privoznik
In the next commit the virSecurityManagerMetadataLock() is going to be turned thread unsafe. Therefore, we have to spawn a separate process for it. Always. Signed-off-by: Michal Privoznik --- src/security/security_dac.c | 12 ++-- src/security/security_selinux.c | 12 ++-- 2

[libvirt] [PATCH v2 04/11] Revert "qemu_conf: Introduce metadata_lock_manager"

2018-10-11 Thread Michal Privoznik
This reverts commit 8b8aefb3d6ae2139ea3d4ef6d7dd2c06f57f6075. Signed-off-by: Michal Privoznik --- src/qemu/qemu_conf.c | 1 - src/qemu/qemu_conf.h | 1 - 2 files changed, 2 deletions(-) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c index 17b7e11e02..32da9a7351 100644 ---

[libvirt] [PATCH v2 10/11] Revert "lock_driver_lockd: Introduce VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_METADATA flag"

2018-10-11 Thread Michal Privoznik
This reverts commit 21c34b86be5233634eb38f77be64e2263bfc4e48. Signed-off-by: Michal Privoznik --- src/locking/lock_daemon_dispatch.c | 10 ++ src/locking/lock_driver_lockd.c| 3 +-- src/locking/lock_driver_lockd.h| 1 - 3 files changed, 3 insertions(+), 11 deletions(-) diff

[libvirt] [PATCH v2 06/11] Revert "lock_driver: Introduce VIR_LOCK_MANAGER_ACQUIRE_ROLLBACK"

2018-10-11 Thread Michal Privoznik
This reverts commit 385eb8399bdb1610447c2857abfe99cee4a9fb9e. Signed-off-by: Michal Privoznik --- src/locking/lock_driver.h | 4 -- src/locking/lock_driver_lockd.c | 82 ++--- 2 files changed, 24 insertions(+), 62 deletions(-) diff --git

[libvirt] [PATCH v2 11/11] Revert "virlockspace: Allow caller to specify start and length offset in virLockSpaceAcquireResource"

2018-10-11 Thread Michal Privoznik
This reverts commit afd5a27575e8b6a494d2728552fe0e89c71e32b4. Signed-off-by: Michal Privoznik --- src/locking/lock_daemon_dispatch.c | 3 --- src/util/virlockspace.c| 15 +-- src/util/virlockspace.h| 4 tests/virlockspacetest.c | 29

[libvirt] [PATCH v2 05/11] Revert "lock_manager: Allow disabling configFile for virLockManagerPluginNew"

2018-10-11 Thread Michal Privoznik
This reverts commit 35b5b244da825fb41e35e4dc62e740d716214ec9. Signed-off-by: Michal Privoznik --- src/locking/lock_driver.h | 4 src/locking/lock_driver_lockd.c | 4 +--- src/locking/lock_driver_sanlock.c | 4 +--- src/locking/lock_manager.c| 10 +++--- 4 files

[libvirt] [PATCH v2 07/11] Revert "lock_driver: Introduce VIR_LOCK_MANAGER_RESOURCE_TYPE_METADATA"

2018-10-11 Thread Michal Privoznik
This reverts commit 997283b54b0e1f599aed3085ceba027eb8110acb. Signed-off-by: Michal Privoznik --- src/locking/lock_driver.h | 2 -- src/locking/lock_driver_lockd.c | 47 +-- src/locking/lock_driver_sanlock.c | 3 +- 3 files changed, 14 insertions(+), 38

[libvirt] [PATCH v2 00/11] Implement alternative metadata locking

2018-10-11 Thread Michal Privoznik
v2 of: https://www.redhat.com/archives/libvir-list/2018-October/msg00162.html diff to v1 (all of this happened in 2/11 only): - Moved virFileIsDir() and related checks into virSecurityManagerMetadataLock - Use VIR_APPEND_ELEMENT_COPY_INPLACE() to properly fill FD array - Lock sockets iff open()

[libvirt] [PATCH v2 02/11] security_manager: Rework metadata locking

2018-10-11 Thread Michal Privoznik
Trying to use virlockd to lock metadata turns out to be too big gun. Since we will always spawn a separate process for relabeling we are safe to use thread unsafe POSIX locks and take out virtlockd completely out of the picture. Signed-off-by: Michal Privoznik --- src/security/security_dac.c

Re: [libvirt] [PATCHv5 10/19] util: Introduce default monitor

2018-10-11 Thread Wang, Huaqiang
Answers refined. On 10/11/2018 3:14 AM, John Ferlan wrote: > > On 10/9/18 6:30 AM, Wang Huaqiang wrote: >> In resctrl file system, more than one monitoring groups >> could be created within one allocation group, along with >> the creation of allocation group, a monitoring group is >> created at

[libvirt] [PATCH] libvirtd: fix potential deadlock when starting vm

2018-10-11 Thread Bingsong Si
On CentOS 6, udev_monitor_receive_device will block until the socket becomes readable, udevEventHandleThread will hold the lock all the time and udevEventHandleCallback hard to get the lock, will block the event poll. To fix this, set dataReady to false after receive an udev event. Signed-off-by:

[libvirt] VM XML format for XEN

2018-10-11 Thread debaprasad.guch...@wipro.com
Hi Team, Please share the XML format for virtual HBA or how can I assign virtual HBA port to XEN vm. Regards Debaprasad Sensitivity: Internal & Restricted The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the

Re: [libvirt] [PATCH v6 07/13] conf: Introduce parser, formatter for uid and fid

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: > This patch introduces new XML parser/formatter functions. Uid is > 16-bit and non-zero. Fid is 32-bit. They are the two attributes of zpci > which is introduced as PCI address element. Zpci element is parsed and > formatted along with PCI

Re: [libvirt] [RFC] Faster libvirtd restart with nwfilter rules

2018-10-11 Thread Nikolay Shirokovskiy
On 11.10.2018 13:20, Daniel P. Berrangé wrote: > On Mon, Sep 24, 2018 at 10:41:37AM +0300, Nikolay Shirokovskiy wrote: >> Hi, all. >> >> On fat hosts which are capable to run hundreds of VMs restarting libvirtd >> makes it's services unavailable for a long time if VMs use network filters. >>

[libvirt] [PATCH 2/2] util: storage: Properly parse URIs with missing trailing slash

2018-10-11 Thread Peter Krempa
The URI parser used by libvirt does not populate uri->path if the trailing slash is missing. The code virStorageSourceParseBackingURI would then not populate src->path. As only NBD network disks are allowed to have the 'name' field in the XML defining the disk source omitted we'd generate an

[libvirt] [PATCH 1/2] util: storage: Rename '@path' argument of virStorageSourceParseBackingURI

2018-10-11 Thread Peter Krempa
The name is misleading. Change it to 'uristr' so that 'path' can be reused in the proper context later. Signed-off-by: Peter Krempa --- src/util/virstoragefile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index

[libvirt] [PATCH 0/2] util: storage: Fix parsing of URIs as disk sources

2018-10-11 Thread Peter Krempa
see 2/2 for explanation Peter Krempa (2): util: storage: Rename '@path' argument of virStorageSourceParseBackingURI util: storage: Properly parse URIs with missing trailing slash src/util/virstoragefile.c | 28 +--- tests/qemublocktest.c | 3 +++

Re: [libvirt] [PATCH v6 06/13] conf: Introduce address caching for PCI extensions

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] > +static void > +virDomainPCIAddressSetExtensionFree(virDomainPCIAddressSetPtr addrs) > +{ > +if (!addrs || !addrs->zpciIds) > +return; > + > +virHashFree(addrs->zpciIds->uids); > +virHashFree(addrs->zpciIds->fids); >

Re: [libvirt] [RFC] Faster libvirtd restart with nwfilter rules

2018-10-11 Thread Daniel P . Berrangé
On Mon, Sep 24, 2018 at 10:41:37AM +0300, Nikolay Shirokovskiy wrote: > Hi, all. > > On fat hosts which are capable to run hundreds of VMs restarting libvirtd > makes it's services unavailable for a long time if VMs use network filters. In > my tests each of 100 VMs has no-promisc [1] and

Re: [libvirt] [PATCH v6 03/13] conf: Introduce a new PCI address extension flag

2018-10-11 Thread Yi Min Zhao
在 2018/10/11 下午4:49, Andrea Bolognani 写道: On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] @@ -166,6 +166,10 @@ struct _virDomainDeviceInfo { * assignment, never saved and never reported. */ int pciConnectFlags; /* enum virDomainPCIConnectFlags */ +/*

[libvirt] [jenkins-ci PATCH 2/3] guests: add libvirt-ocaml project

2018-10-11 Thread Pino Toscano
Not built on Debian 8, as the version of OCaml is not new enough. Signed-off-by: Pino Toscano --- guests/host_vars/libvirt-centos-7/main.yml| 1 + guests/host_vars/libvirt-debian-9/main.yml| 1 + guests/host_vars/libvirt-debian-sid/main.yml | 1 +

[libvirt] [jenkins-ci PATCH 3/3] projects: add libvirt-ocaml project

2018-10-11 Thread Pino Toscano
Not built on Debian 8, as the version of OCaml is not new enough. Signed-off-by: Pino Toscano --- jobs/defaults.yaml | 2 ++ projects/libvirt-ocaml.yaml | 23 +++ 2 files changed, 25 insertions(+) create mode 100644 projects/libvirt-ocaml.yaml diff --git

[libvirt] [jenkins-ci PATCH 1/3] guests: add mappings for OCaml components

2018-10-11 Thread Pino Toscano
Soon to be used by libvirt-ocaml. Signed-off-by: Pino Toscano --- guests/vars/mappings.yml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index 5df918f..cd92bd8 100644 --- a/guests/vars/mappings.yml +++ b/guests/vars/mappings.yml @@

[libvirt] [jenkins-ci PATCH 0/3] Add libvirt-ocaml

2018-10-11 Thread Pino Toscano
Now that the libvirt-ocaml repository is fixed, let's build it in CI. Pino Toscano (3): guests: add mappings for OCaml components guests: add libvirt-ocaml project projects: add libvirt-ocaml project guests/host_vars/libvirt-centos-7/main.yml| 1 +

Re: [libvirt] [PATCH] virfiletest: Load mock on Linux only

2018-10-11 Thread Andrea Bolognani
On Thu, 2018-10-11 at 10:37 +0200, Michal Privoznik wrote: > The mock is built on Linux only. Therefore we should load it only > on Linux too. This fixes the FreeBSD build. > > Signed-off-by: Michal Privoznik > --- > tests/virfiletest.c | 4 > 1 file changed, 4 insertions(+) Reviewed-by:

Re: [libvirt] [PATCH 00/30] syntax: Remove spaces after casts

2018-10-11 Thread Andrea Bolognani
On Thu, 2018-10-11 at 10:45 +0200, Martin Kletzander wrote: > On Thu, Oct 11, 2018 at 10:20:34AM +0200, Andrea Bolognani wrote: > > I was quite surprised, while reviewing some code, that an obvious > > case of "space after cast" was not being caught by syntax-check; a > > bit of digging made me

Re: [libvirt] [PATCHv5 11/19] conf: Refactor code for matching existing resctrls

2018-10-11 Thread Wang, Huaqiang
On 10/11/2018 3:15 AM, John Ferlan wrote: > > > On 10/9/18 6:30 AM, Wang Huaqiang wrote: >> Refactoring the code of matching the new resctrl with >> existing resctrl groups. Add the virObjectRef action >> into function virDomainResctrlVcpuMatch. >> >> Signed-off-by: Wang Huaqiang >> --- >>

Re: [libvirt] [PATCHv5 10/19] util: Introduce default monitor

2018-10-11 Thread Wang, Huaqiang
On 10/11/2018 3:14 AM, John Ferlan wrote: > > > On 10/9/18 6:30 AM, Wang Huaqiang wrote: >> In resctrl file system, more than one monitoring groups >> could be created within one allocation group, along with >> the creation of allocation group, a monitoring group is >> created at the same, which

Re: [libvirt] [PATCHv5 09/19] util: Add more interfaces for resctrl monitor

2018-10-11 Thread Wang, Huaqiang
On 10/11/2018 3:13 AM, John Ferlan wrote: > > > On 10/9/18 6:30 AM, Wang Huaqiang wrote: >> Add interfaces monitor group to support operations such >> as add PID, set ID, remove group ... etc. >> >> The interface for getting cache occupancy information >> from the monitor is also added. >> >>

Re: [libvirt] [PATCH v6 03/13] conf: Introduce a new PCI address extension flag

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] > @@ -166,6 +166,10 @@ struct _virDomainDeviceInfo { > * assignment, never saved and never reported. > */ > int pciConnectFlags; /* enum virDomainPCIConnectFlags */ > +/* pciAddrExtFlags is only used interanlly to

Re: [libvirt] [PATCHv5 08/19] util: Add interface for creating monitor group

2018-10-11 Thread Wang, Huaqiang
On 10/11/2018 3:13 AM, John Ferlan wrote: > > On 10/9/18 6:30 AM, Wang Huaqiang wrote: >> Add interface for creating the resource monitoring group according >> to '@virResctrlMonitor->path'. >> >> Signed-off-by: Wang Huaqiang >> --- >> src/libvirt_private.syms | 1 + >> src/util/virresctrl.c

Re: [libvirt] [PATCH 00/30] syntax: Remove spaces after casts

2018-10-11 Thread Martin Kletzander
On Thu, Oct 11, 2018 at 10:20:34AM +0200, Andrea Bolognani wrote: On Wed, 2018-04-25 at 15:24 +0200, Martin Kletzander wrote: According to previous discussions it looks like this is the preferred way of casting. One difference to the previous one is that this time I tuned the regexp a bit so

[libvirt] [PATCH] virfiletest: Load mock on Linux only

2018-10-11 Thread Michal Privoznik
The mock is built on Linux only. Therefore we should load it only on Linux too. This fixes the FreeBSD build. Signed-off-by: Michal Privoznik --- tests/virfiletest.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/virfiletest.c b/tests/virfiletest.c index d5102b1cc4..1f2be74c8d

Re: [libvirt] [PATCH v6 01/13] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-10-11 Thread Yi Min Zhao
在 2018/10/11 下午3:17, Andrea Bolognani 写道: On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] struct _virPCIDeviceAddress { unsigned int domain; unsigned int bus; unsigned int slot; unsigned int function; int multi; /* virTristateSwitch */ +

Re: [libvirt] [PATCH 00/30] syntax: Remove spaces after casts

2018-10-11 Thread Andrea Bolognani
On Wed, 2018-04-25 at 15:24 +0200, Martin Kletzander wrote: > According to previous discussions it looks like this is the preferred way > of casting. One difference to the previous one is that this time I > tuned the regexp a bit so that it doesn't match some macros and > assignments and it also

Re: [libvirt] [PATCH v6 01/13] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-10-11 Thread Andrea Bolognani
On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: [...] > struct _virPCIDeviceAddress { > unsigned int domain; > unsigned int bus; > unsigned int slot; > unsigned int function; > int multi; /* virTristateSwitch */ > +virZPCIDeviceAddress zpci; > }; It's kinda