[libvirt] [PATCH RFC 0/4]] nwfilter: don't reinstantiate filters if they are not changed

2018-10-17 Thread Nikolay Shirokovskiy
The series adds optimization in network filters instantiation as suggested in [1]. Applied on top of [2]. However this approach has drawback I'm unfortunately discovered too late) Next steps will left us with no network filters after this series applied: systemctl stop libvirtd systemctl restart

[libvirt] [PATCH 3/4] nwfilter: force filters reinstantiation on firewalld reload

2018-10-17 Thread Nikolay Shirokovskiy
We need reinstantiation because reload will flush rules installed by libvirtd. Signed-off-by: Nikolay Shirokovskiy --- src/nwfilter/nwfilter_driver.c | 6 +++--- src/nwfilter/nwfilter_gentech_driver.c | 13 + src/nwfilter/nwfilter_gentech_driver.h | 3 ++- 3 files changed,

Re: [libvirt] [PATCH] nwfilter: fix learning address thread shutdown

2018-10-17 Thread Nikolay Shirokovskiy
On 18.10.2018 03:26, John Ferlan wrote: > > > On 10/17/18 4:25 AM, Nikolay Shirokovskiy wrote: >> >> >> On 17.10.2018 01:28, John Ferlan wrote: >>> >>> >>> On 10/12/18 3:23 AM, Nikolay Shirokovskiy wrote: If learning thread is configured to learn on all ethernet frames (which is hard

[libvirt] [PATCH 4/4] nwfilter: force filters reinstantiation on binary update

2018-10-17 Thread Nikolay Shirokovskiy
This helps us bring correct firewall rules if previous binary install them incorrectly. Signed-off-by: Nikolay Shirokovskiy --- src/conf/virnwfilterbindingobj.c | 20 src/conf/virnwfilterbindingobj.h | 3 +++ src/libvirt_private.syms | 1 + src/nw

[libvirt] [PATCH 1/4] nwfilter: add nwfilter hash

2018-10-17 Thread Nikolay Shirokovskiy
For filter without references to other filters hash is just sha-256 of filter's xml. For filters with references hash is sha-256 of string consisting of filter's self hash and hashes of directly referenced filters. If filter is not complete that is some of filters it's referencing directly or indi

[libvirt] [PATCH 2/4] nwfilter: don't reinstantiate filters if they are not changed

2018-10-17 Thread Nikolay Shirokovskiy
Skip binding's filter reinstantiation if it is not changed since it was instantiated last time. The purpose it to fasten libvirtd restart at least if filters won't changed, see RFC [1]. Thus we need to keep instantiated filter hash for binding in binding's status. This patch skips filters reinsta

Re: [libvirt] [PATCH] conf: More clear error msg for incomplete coalesce xml

2018-10-17 Thread Han Han
On Wed, Oct 17, 2018 at 4:46 PM Martin Kletzander wrote: > On Tue, Oct 16, 2018 at 07:19:41PM -0400, John Ferlan wrote: > > > > > >On 10/14/18 10:26 AM, Han Han wrote: > >> https://bugzilla.redhat.com/show_bug.cgi?id=1535930 > >> > >> Report more clear err msg instead of unknown error when coales

Re: [libvirt] [RFC 0/3] update NVDIMM support

2018-10-17 Thread Han Han
On Thu, Oct 18, 2018 at 11:07 AM Luyao Zhong wrote: > Hi Han, > > I'm not sure which release my patches will merge into. How about adding > the patch to update the release news after my last version of these > patches. Waiting for more reviews and comments. > Well. That's OK. > Regards, > Luyao

Re: [libvirt] [RFC 0/3] update NVDIMM support

2018-10-17 Thread Luyao Zhong
Hi Han, I'm not sure which release my patches will merge into. How about adding the patch to update the release news after my last version of these patches.  Waiting for more reviews and comments. Regards, Luyao Zhong On 2018/10/18 上午9:10, Han Han wrote: On Wed, Oct 17, 2018 at 10:25 AM L

[libvirt] [PATCH v2] snapshot: Don't hose list on deletion failure

2018-10-17 Thread Eric Blake
If qemuDomainSnapshotDiscard() fails for any reason (rare, but possible with an ill-timed ENOMEM or if qemuDomainSnapshotForEachQcow2() has problems talking to the qemu guest monitor), then an attempt to retry the snapshot deletion API will crash because we didn't undo the effects of virDomainSnaps

Re: [libvirt] [RFC 0/3] update NVDIMM support

2018-10-17 Thread Han Han
On Wed, Oct 17, 2018 at 10:25 AM Luyao Zhong wrote: > Hi libvirt experts, > > This is the RFC for updating NVDIMM support in libvirt. > > QEMU has supported four more properties which libvirt has not introduced > yet, including 'align', 'pmem', 'nvdimm-persistences' and 'unarmed'. > > The 'align'

Re: [libvirt] [PATCH] snapshot: Don't hose list on deletion failure

2018-10-17 Thread Eric Blake
On 10/17/18 7:30 PM, Eric Blake wrote: If qemuDomainSnapshotDiscard() fails for any reason (rare, but possible with an ill-timed ENOMEM or if qemuDomainSnapshotForEachQcow2() has problems talking to the qemu guest monitor), then an attempt to retry the snapshot deletion API will crash because we

Re: [libvirt] [PATCH] network: add prefix to dhcp range of dnsmasq conf file for IPv4 too

2018-10-17 Thread Laine Stump
Self-NACK. I'vebeen informed by the original reporter that for IPv4 we have to specify a netmask rather than prefix (it worked for me with prefix, but for him it didn't :-/) I'll send a V2 in the morning. Too close to bedtime now to do anything that requires attention to detail... On 10/17/2018 1

[libvirt] [PATCH] snapshot: Don't hose list on deletion failure

2018-10-17 Thread Eric Blake
If qemuDomainSnapshotDiscard() fails for any reason (rare, but possible with an ill-timed ENOMEM or if qemuDomainSnapshotForEachQcow2() has problems talking to the qemu guest monitor), then an attempt to retry the snapshot deletion API will crash because we didn't undo the effects of virDomainSnaps

Re: [libvirt] [PATCH] nwfilter: fix learning address thread shutdown

2018-10-17 Thread John Ferlan
On 10/17/18 4:25 AM, Nikolay Shirokovskiy wrote: > > > On 17.10.2018 01:28, John Ferlan wrote: >> >> >> On 10/12/18 3:23 AM, Nikolay Shirokovskiy wrote: >>> If learning thread is configured to learn on all ethernet frames (which is >>> hardcoded) then chances are big that there is packet on ev

Re: [libvirt] [PATCH RFC v2] qemu: fix deadlock when waiting in non async jobs

2018-10-17 Thread John Ferlan
On 10/16/18 3:22 AM, Nikolay Shirokovskiy wrote: > > > On 16.10.2018 03:00, John Ferlan wrote: >> >> >> On 10/8/18 4:10 AM, Nikolay Shirokovskiy wrote: >>> Block job abort operation can not handle properly qemu crashes when waiting >>> for >>> abort/pivot completion. Deadlock scenario is next

Re: [libvirt] [PATCH v4 2/5] libxl: add support for PVH

2018-10-17 Thread Marek Marczykowski-Górecki
On Sat, Oct 13, 2018 at 08:46:19AM -0600, Jim Fehlig wrote: > I had some couch time at the start of the weekend and was finally able to > try using this series with virt-install. As it turns out, reporting > duplicate blocks for 'xen' is not quite right. Instead we > will want to report the addit

Re: [libvirt] [PATCH v4 2/5] libxl: add support for PVH

2018-10-17 Thread Jim Fehlig
On 10/16/18 7:23 PM, Marek Marczykowski-Górecki wrote: On Sat, Oct 13, 2018 at 08:46:19AM -0600, Jim Fehlig wrote: I had some couch time at the start of the weekend and was finally able to try using this series with virt-install. As it turns out, reporting duplicate blocks for 'xen' is not qui

[libvirt] [PATCH] qemu: Fix IOThread pids lost after qemuProcessReconnect

2018-10-17 Thread Jie Wang
>From fca1732c0e1f691fb25c614349d5486bbc73a109 Mon Sep 17 00:00:00 2001 From: Jie Wang Date: Wed, 17 Oct 2018 22:55:51 +0800 Subject: [PATCH] qemu: Fix IOThread pids lost after qemuProcessReconnect IOThread pids info will lost after libvirtd restart, then if we call pinIOThread, sched_setaffinity

[libvirt] [PATCH] network: add prefix to dhcp range of dnsmasq conf file for IPv4 too

2018-10-17 Thread Laine Stump
dnsmasq documentation says that the *IPv4* prefix/network address/broadcast address sent to dhcp clients will be automatically determined by dnsmasq by looking at the interface it's listening on, so the original libvirt code that added dhcp support to virtual networks did not add a prefix to the dn

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

2018-10-17 Thread Andrea Bolognani
On Tue, 2018-10-16 at 11:28 +0800, Yi Min Zhao wrote: > 在 2018/10/11 下午10:50, Andrea Bolognani 写道: > > On Fri, 2018-09-28 at 16:46 +0800, Yi Min Zhao wrote: > > > # conf/device_conf.h > > > +virDeviceInfoPCIAddressExtensionIsPresent; > > > +virDeviceInfoPCIAddressExtensionIsWanted; > > > virDev

[libvirt] [PATCH 2/2] Revert "qemu: Forbid pinning vCPUs for TCG domain"

2018-10-17 Thread Daniel P . Berrangé
This reverts commit 8b035c84d8a7362a87a95e6114b8e7f959685ed9. The MTTCG impl in QEMU does allow pinning vCPUs. When the guest is running we already check if pinning is possible in the qemuDomainPinVcpuLive method, so this check was adding no benefit. When the guest is not running, we cannot know

[libvirt] [PATCH 0/2] Fix compatibility with MTTCG

2018-10-17 Thread Daniel P . Berrangé
QEMU is using MTTCG by default on an increasingly large set of host/guest combinations. This allows us to use the normal vCPU pinning support we already have for KVM. We just need to stop throwing away the PID info, and stop artificially blocking pinning APIs. Daniel P. Berrangé (2): qemu: fix r

[libvirt] [PATCH 1/2] qemu: fix recording of vCPU pids for MTTCG

2018-10-17 Thread Daniel P . Berrangé
MTTCG is the new multi-threaded impl of TCG which follows KVM in having one host OS thread per vCPU. Historically we have discarded all PIDs reported for TCG guests, but we must now selectively honour this data. We don't have anything in the domain XML that indicates whether a guest is using TCG o

Re: [libvirt] [PATCH v3 4/6] chardev: add support for authorization for TLS clients

2018-10-17 Thread Juan Quintela
Daniel P. Berrangé wrote: > From: "Daniel P. Berrange" > > Currently any client which can complete the TLS handshake is able to use > a chardev server. The server admin can turn on the 'verify-peer' option > for the x509 creds to require the client to provide a x509 > certificate. This means the

Re: [libvirt] [PATCH v3 2/6] nbd: allow authorization with nbd-server-start QMP command

2018-10-17 Thread Juan Quintela
Daniel P. Berrangé wrote: > From: "Daniel P. Berrange" > > As with the previous patch to qemu-nbd, the nbd-server-start QMP command > also needs to be able to specify authorization when enabling TLS encryption. > > First the client must create a QAuthZ object instance using the > 'object-add' com

Re: [libvirt] [PATCH v3 3/6] migration: add support for a "tls-authz" migration parameter

2018-10-17 Thread Juan Quintela
Daniel P. Berrangé wrote: > From: "Daniel P. Berrange" > > The QEMU instance that runs as the server for the migration data > transport (ie the target QEMU) needs to be able to configure access > control so it can prevent unauthorized clients initiating an incoming > migration. This adds a new 't

Re: [libvirt] [PATCH v3 1/6] qemu-nbd: add support for authorization of TLS clients

2018-10-17 Thread Juan Quintela
Daniel P. Berrangé wrote: > From: "Daniel P. Berrange" > > Currently any client which can complete the TLS handshake is able to use > the NBD server. The server admin can turn on the 'verify-peer' option > for the x509 creds to require the client to provide a x509 certificate. > This means the cl

Re: [libvirt] [PATCH v3 04/13] security_manager: Rework metadata locking

2018-10-17 Thread Michal Privoznik
On 10/17/2018 01:46 PM, Daniel P. Berrangé wrote: > On Wed, Oct 17, 2018 at 12:52:50PM +0200, Michal Privoznik wrote: >> On 10/17/2018 11:45 AM, Daniel P. Berrangé wrote: >>> On Wed, Oct 17, 2018 at 11:06:46AM +0200, Michal Privoznik wrote: Trying to use virlockd to lock metadata turns out to

Re: [libvirt] [PATCH] util: Fix a typo in comments of virresctrl.c

2018-10-17 Thread Andrea Bolognani
On Wed, 2018-10-17 at 16:27 +0800, Wang Huaqiang wrote: > Signed-off-by: Wang Huaqiang > --- > src/util/virresctrl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Andrea Bolognani and pushed. -- Andrea Bolognani / Red Hat / Virtualization -- libvir-list mailing list l

Re: [libvirt] [PATCH v3 04/13] security_manager: Rework metadata locking

2018-10-17 Thread Daniel P . Berrangé
On Wed, Oct 17, 2018 at 12:52:50PM +0200, Michal Privoznik wrote: > On 10/17/2018 11:45 AM, Daniel P. Berrangé wrote: > > On Wed, Oct 17, 2018 at 11:06:46AM +0200, Michal Privoznik wrote: > >> Trying to use virlockd to lock metadata turns out to be too big > >> gun. Since we will always spawn a sep

Re: [libvirt] [PATCH v3 04/13] security_manager: Rework metadata locking

2018-10-17 Thread Michal Privoznik
On 10/17/2018 11:45 AM, Daniel P. Berrangé wrote: > On Wed, Oct 17, 2018 at 11:06:46AM +0200, Michal Privoznik wrote: >> 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 loc

Re: [libvirt] [PATCH v3 04/13] security_manager: Rework metadata locking

2018-10-17 Thread Daniel P . Berrangé
On Wed, Oct 17, 2018 at 11:06:46AM +0200, Michal Privoznik wrote: > 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 pictu

Re: [libvirt] [PATCH v3 01/13] virprocess: Introduce virProcessRunInFork

2018-10-17 Thread Daniel P . Berrangé
On Wed, Oct 17, 2018 at 11:06:43AM +0200, Michal Privoznik wrote: > This new helper can be used to spawn a child process and run > passed callback from it. This will come handy esp. if the > callback is not thread safe. > > Signed-off-by: Michal Privoznik > --- > src/libvirt_private.syms | 1 +

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

2018-10-17 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 v3 12/13] Revert "lock_driver_lockd: Introduce VIR_LOCK_SPACE_PROTOCOL_ACQUIRE_RESOURCE_METADATA flag"

2018-10-17 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 v3 11/13] Revert "lock_driver: Introduce new VIR_LOCK_MANAGER_OBJECT_TYPE_DAEMON"

2018-10-17 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(+), 2

[libvirt] [PATCH v3 10/13] Revert "_virLockManagerLockDaemonPrivate: Move @hasRWDisks into dom union"

2018-10-17 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 268676c407..22a5a9

[libvirt] [PATCH v3 07/13] Revert "lock_manager: Allow disabling configFile for virLockManagerPluginNew"

2018-10-17 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 chan

[libvirt] [PATCH v3 00/13] Implement alternative metadata locking

2018-10-17 Thread Michal Privoznik
v3 of: https://www.redhat.com/archives/libvir-list/2018-October/msg00667.html diff to v2: - Introduced two new patches (1/13 and 2/13) so that even non-Linux platforms are covered - In 4/13 I switched from indefinite wait for lock to a lock with timeout (of 10 seconds). This is basically to p

[libvirt] [PATCH v3 06/13] Revert "qemu_conf: Introduce metadata_lock_manager"

2018-10-17 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 --- a/src/qemu/q

[libvirt] [PATCH v3 08/13] Revert "lock_driver: Introduce VIR_LOCK_MANAGER_ACQUIRE_ROLLBACK"

2018-10-17 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 a/src/locking/lock_dri

[libvirt] [PATCH v3 04/13] security_manager: Rework metadata locking

2018-10-17 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

[libvirt] [PATCH v3 05/13] Revert "security_manager: Load lock plugin on init"

2018-10-17 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 --- src/security/security_mana

[libvirt] [PATCH v3 2/6] vfio/mdev: Add "aggregation" attribute for supported mdev type

2018-10-17 Thread Zhenyu Wang
For supported mdev driver to create aggregated device, this creates new "aggregation" attribute for target type, which will show maximum number of instance resources that can be aggregated. Cc: Kirti Wankhede Cc: Alex Williamson Cc: Kevin Tian Cc: Cornelia Huck Signed-off-by: Zhenyu Wang ---

[libvirt] [PATCH v3 09/13] Revert "lock_driver: Introduce VIR_LOCK_MANAGER_RESOURCE_TYPE_METADATA"

2018-10-17 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 de

[libvirt] [PATCH v3 01/13] virprocess: Introduce virProcessRunInFork

2018-10-17 Thread Michal Privoznik
This new helper can be used to spawn a child process and run passed callback from it. This will come handy esp. if the callback is not thread safe. Signed-off-by: Michal Privoznik --- src/libvirt_private.syms | 1 + src/util/virprocess.c| 81 src/uti

[libvirt] [PATCH v3 03/13] security: Always spawn process for transactions

2018-10-17 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 | 2 +- src/security/security_selinux.c | 2 +- 2 files changed, 2 inser

[libvirt] [PATCH v3 02/13] virprocess: Make virProcessRunInMountNamespace use virProcessRunInFork

2018-10-17 Thread Michal Privoznik
Both virProcessRunInMountNamespace() and virProcessRunInFork() look very similar. De-duplicate the code and make virProcessRunInMountNamespace() call virProcessRunInFork(). Signed-off-by: Michal Privoznik --- src/util/virprocess.c | 62 +-- 1 file changed,

[libvirt] [PATCH v3 5/6] Documentation/ABI/testing/sysfs-bus-vfio-mdev: Update for vfio/mdev aggregation support

2018-10-17 Thread Zhenyu Wang
Update vfio/mdev ABI description for new aggregation attributes. Cc: Kirti Wankhede Cc: Alex Williamson Cc: Kevin Tian Cc: Cornelia Huck Signed-off-by: Zhenyu Wang --- Documentation/ABI/testing/sysfs-bus-vfio-mdev | 25 +++ 1 file changed, 25 insertions(+) diff --git a/Docum

[libvirt] [PATCH v3 4/6] Documentation/vfio-mediated-device.txt: Update for vfio/mdev aggregation support

2018-10-17 Thread Zhenyu Wang
Update vfio/mdev doc on new "aggregate" create parameter, new "aggregation" attribute and "aggregated_instances" attribute for mdev device. Cc: Kirti Wankhede Cc: Alex Williamson Cc: Kevin Tian Cc: Cornelia Huck Signed-off-by: Zhenyu Wang --- Documentation/vfio-mediated-device.txt | 44 +

[libvirt] [PATCH v3 1/6] vfio/mdev: Add new "aggregate" parameter for mdev create

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

[libvirt] [PATCH v3 6/6] drm/i915/gvt: Add new type with aggregation support

2018-10-17 Thread Zhenyu Wang
New aggregation type is created for KVMGT which can be used to combine minimal resource number for target instances, to create user defined number of resources. For KVMGT, aggregated resource is determined by memory and fence resource allocation for target number of instances. v2: - apply for new

[libvirt] [PATCH v3 3/6] vfio/mdev: Add "aggregated_instances" attribute for supported mdev device

2018-10-17 Thread Zhenyu Wang
For mdev device created by "aggregate" parameter, this creates new mdev device attribute "aggregated_instances" to show number of aggregated instances allocated. v2: - change attribute name as "aggregated_instances" v3: - create only for aggregated allocation Cc: Kirti Wankhede Cc: Alex William

[libvirt] [PATCH v3 0/6] VFIO mdev aggregated resources handling

2018-10-17 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 fro

Re: [libvirt] [PATCH v2 1/1] Add attribute single_usage_restriction for mdev type-id

2018-10-17 Thread Christoph Hellwig
I don't see any patch actually adding (nevermind using) the attibute, so something seems wrong here. -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH 3/3] qemu: don't duplicate suspended events and state changes

2018-10-17 Thread Nikolay Shirokovskiy
On 16.10.2018 21:46, John Ferlan wrote: > > $SUBJ: > > s/don't/Don't > > On 10/10/18 4:04 AM, Nikolay Shirokovskiy wrote: >> Now when STOP event handler has correct both suspended event reason >> and paused state reason let's wipe out duplicated event sending and >> state changed in/after qem

Re: [libvirt] [PATCH 2/3] qemu: map suspended state reason to suspended event detail

2018-10-17 Thread Nikolay Shirokovskiy
On 16.10.2018 21:42, John Ferlan wrote: > > $SUBJ: > > s/map/Map > > On 10/10/18 4:04 AM, Nikolay Shirokovskiy wrote: >> Map is based on existing cases in code where we send suspended >> event after changing domain state to paused. >> >> Signed-off-by: Nikolay Shirokovskiy >> --- >> src/qem

Re: [libvirt] [PATCH] conf: Fix typos in pcie controllers' name

2018-10-17 Thread Andrea Bolognani
On Wed, 2018-10-17 at 09:10 +0800, Han Han wrote: > Signed-off-by: Han Han > --- > src/conf/domain_addr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/conf/domain_addr.c b/src/conf/domain_addr.c > index 442e6aab94..e4ed143b76 100644 > --- a/src/conf/domain_add

Re: [libvirt] [PATCH] conf: More clear error msg for incomplete coalesce xml

2018-10-17 Thread Martin Kletzander
On Tue, Oct 16, 2018 at 07:19:41PM -0400, John Ferlan wrote: On 10/14/18 10:26 AM, Han Han wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1535930 Report more clear err msg instead of unknown error when coalesce settings is incomplete. Incomplete is not an error. It's request for remov

Re: [libvirt] [PATCH 1/3] qemu: pass stop reason from qemuProcessStopCPUs to stop handler

2018-10-17 Thread Nikolay Shirokovskiy
On 16.10.2018 21:40, John Ferlan wrote: > > $SUBJ: > > s/pass/Pass > > On 10/10/18 4:04 AM, Nikolay Shirokovskiy wrote: >> We send duplicate suspended lifecycle events on qemu process stop in several >> places. The reason is stop event handler always send suspended event and >> we addidionall

[libvirt] [PATCH] util: Fix a typo in comments of virresctrl.c

2018-10-17 Thread Wang Huaqiang
Signed-off-by: Wang Huaqiang --- src/util/virresctrl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index df5b512..5d811a2 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -259,7 +259,7 @@ virResctrlInfoMonFree(

Re: [libvirt] [PATCH] nwfilter: fix learning address thread shutdown

2018-10-17 Thread Nikolay Shirokovskiy
On 17.10.2018 01:28, John Ferlan wrote: > > > On 10/12/18 3:23 AM, Nikolay Shirokovskiy wrote: >> If learning thread is configured to learn on all ethernet frames (which is >> hardcoded) then chances are big that there is packet on every iteration of >> inspecting frames loop. As result we wil

Re: [libvirt] [PATCH] libvirt: add daemon itself as shutdown reason

2018-10-17 Thread Nikolay Shirokovskiy
On 16.10.2018 15:48, John Ferlan wrote: > > > On 10/8/18 7:21 AM, Nikolay Shirokovskiy wrote: >> Let's introduce shutdown reason "daemon" which means we have to >> kill running domain ourselves as the best action we can take at >> that moment. Failure to pick up domain on daemon restart is >>