Re: [libvirt] [Qemu-devel] [PULL v3 00/54] Kconfig conversion, excluding ARM and MIPS

2019-03-20 Thread Laszlo Ersek
Hi Paolo, (+libvir-list) I'd like to report a regression introduced by this patch set: On 03/07/19 21:58, Paolo Bonzini wrote: > The following changes since commit > 6cb4f6db4f4367faa33da85b15f75bbbd2bed2a6: > > Merge remote-tracking branch > 'remotes/cleber/tags/python-next-pull-request'

Re: [libvirt] [PATCH 09/16] snapshot: Refactor list filtering

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > Separate the algorithm for which list members to vist (which is > generic and can be shared with checkpoints, provided that checkpoints > pick the same bit values for some of its flags) from the decision on > which members to return (which is specific to

Re: [libvirt] [PATCH 08/16] snapshot: Access snapshot def directly when needed

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > An upcoming patch will rework virDomainSnapshotObjList to be generic > for both snapshots and checkpoints; reduce the churn by adding a new > accessor virDomainSnapshotObjGetDef() which returns the > snapshot-specific definition even when the list is

Re: [libvirt] [PATCH 01/16] test: Avoid use-after-free on virDomainSnapshotDelete

2019-03-20 Thread Eric Blake
On 3/20/19 6:47 AM, Ján Tomko wrote: > On Wed, Mar 20, 2019 at 12:40:50AM -0500, Eric Blake wrote: >> The following virsh command was triggering a use-after-free: >> >> $ virsh -c test:///default ' >>  snapshot-create-as test s1 >>  snapshot-create-as test s2 >>  snapshot-delete --children-only

[libvirt] [PATCH 17/16] snapshot: Store qemu snapshot state in bulk

2019-03-20 Thread Eric Blake
Rather than one file per snapshot, store all qemu snapshots in a single file, using the recently added bulk snapshot list operations. For now, this doesn't change how often libvirt writes a snapshot file, but it does open the door for the next patch to update the signature to

[libvirt] [PATCH 18/16] snapshot: Consolidate writing snapshot state to disk

2019-03-20 Thread Eric Blake
Remove a now-unused parameter from qemuDomainSnapshotWriteMetadata(). Then, instead of calling it after every individual change to a given snapshot, call it only once at the end of the API function that resulted in any overall changes. Signed-off-by: Eric Blake --- src/qemu/qemu_domain.h | 1 -

Re: [libvirt] [PATCH 07/16] snapshot: Add accessors for updating snapshot list relations

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > Rather than allowing a leaky abstraction where multiple drivers have > to open-code operations that update the relations in a > virDomainSnapshotObjList, it is better to add accessor functions so > that updates to relations are maintained closer to the

Re: [libvirt] [PATCH 06/16] snapshot: Track current snapshot in virDomainSnapshotObjList

2019-03-20 Thread Eric Blake
On 3/20/19 3:39 PM, John Ferlan wrote: > > > On 3/20/19 1:40 AM, Eric Blake wrote: >> It is easier to track the current snapshot as part of the list of >> snapshots. In particular, doing so lets us guarantee that the current >> snapshot is cleared if that snapshot is removed from the list

Re: [libvirt] [PATCH 06/16] snapshot: Track current snapshot in virDomainSnapshotObjList

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > It is easier to track the current snapshot as part of the list of > snapshots. In particular, doing so lets us guarantee that the current > snapshot is cleared if that snapshot is removed from the list (rather > than depending on the caller to do so, and

Re: [libvirt] [PATCH 05/16] snapshot: Drop virDomainSnapshotDef.current

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > The only use for the 'current' member of virDomainSnapshotDef was with > the PARSE/FORMAT_INTERNAL flag for controlling an internal-use > element marking whether a particular snapshot definition was > current, and even then, only by the qemu driver on

Re: [libvirt] [PATCH 04/16] vbox: Clean up some snapshot usage

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > An upcoming patch will be reworking virDomainSnapshotDef to have a > base class; minimize the churn by using a local variable to reduce the > number of dereferences required when acessing the domain definition > associated with the snapshot. > >

Re: [libvirt] [PATCH 03/16] snapshot: Create virDomainMoment base class

2019-03-20 Thread John Ferlan
On 3/20/19 1:40 AM, Eric Blake wrote: > Upcoming patches want to add virDomainCheckpoint that behaves very > similarly to virDomainSnapshot; the easiest way to share common code > is to give both classes a common base class. Thanks to the accessor > functions in the previous patch, we have

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Igor Mammedov
On Wed, 20 Mar 2019 15:24:42 + Daniel P. Berrangé wrote: > On Wed, Mar 20, 2019 at 04:20:19PM +0100, Igor Mammedov wrote: > > > This could be solved if QEMU has some machine type based property > > > that indicates whether "memdev" is required for a given machine, > > > but crucially *does

Re: [libvirt] [PATCH 1/2] snapshots: allow create --redefine to force a new configuration

2019-03-20 Thread Peter Krempa
On Wed, Mar 20, 2019 at 11:39:01 -0500, Eric Blake wrote: > On 3/20/19 3:16 AM, Christian Ehrhardt wrote: > > >> So looking at the bug, user created a snapshot, then upgraded qemu to a > >> version which dropped the old machine type. > >> > >> Reverting to a inactive internal snapshot in this

Re: [libvirt] [PATCH 1/2] snapshots: allow create --redefine to force a new configuration

2019-03-20 Thread Eric Blake
On 3/20/19 3:16 AM, Christian Ehrhardt wrote: >> So looking at the bug, user created a snapshot, then upgraded qemu to a >> version which dropped the old machine type. >> >> Reverting to a inactive internal snapshot in this case will restore the >> definition including the machine type. That is

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Igor Mammedov
On Wed, 20 Mar 2019 13:46:59 + Daniel P. Berrangé wrote: > On Wed, Mar 20, 2019 at 10:32:53AM -0300, Eduardo Habkost wrote: > > On Wed, Mar 20, 2019 at 11:51:51AM +, Daniel P. Berrangé wrote: > > > On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: > > [...] [...] > >

Re: [libvirt] [jenkins-ci] defaults.yaml: Only spam libvirt...@redhat.com

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 11:37:06AM -0400, Yash Mankad wrote: > The libvirt CI maintainers/contributors have agreed to update > the default spam e-mail to include only the libvirt-ci mailing > list and remove my e-mail from the spam list in the > defaults.yaml FWIW you don't really need our

Re: [libvirt] [jenkins-ci] defaults.yaml: Only spam libvirt...@redhat.com

2019-03-20 Thread Andrea Bolognani
On Wed, 2019-03-20 at 11:37 -0400, Yash Mankad wrote: > The libvirt CI maintainers/contributors have agreed to update > the default spam e-mail to include only the libvirt-ci mailing > list and remove my e-mail from the spam list in the > defaults.yaml > > Signed-off-by: Yash Mankad > --- >

[libvirt] [jenkins-ci] defaults.yaml: Only spam libvirt...@redhat.com

2019-03-20 Thread Yash Mankad
The libvirt CI maintainers/contributors have agreed to update the default spam e-mail to include only the libvirt-ci mailing list and remove my e-mail from the spam list in the defaults.yaml Signed-off-by: Yash Mankad --- jenkins/jobs/defaults.yaml | 2 +- 1 file changed, 1 insertion(+), 1

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 04:20:19PM +0100, Igor Mammedov wrote: > > This could be solved if QEMU has some machine type based property > > that indicates whether "memdev" is required for a given machine, > > but crucially *does not* actually activate that property until > > several releases later. >

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 11:46:20AM -0300, Eduardo Habkost wrote: > On Wed, Mar 20, 2019 at 01:46:59PM +, Daniel P. Berrangé wrote: > > On Wed, Mar 20, 2019 at 10:32:53AM -0300, Eduardo Habkost wrote: > > > On Wed, Mar 20, 2019 at 11:51:51AM +, Daniel P. Berrangé wrote: > > > > On Wed, Mar

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Igor Mammedov
On Wed, 20 Mar 2019 11:51:51 + Daniel P. Berrangé wrote: > On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: > > On Tue, 19 Mar 2019 14:51:07 + > > Daniel P. Berrangé wrote: > > > > > On Tue, Mar 19, 2019 at 02:08:01PM +0100, Igor Mammedov wrote: > > > > On Thu, 7 Mar

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Eduardo Habkost
On Wed, Mar 20, 2019 at 01:46:59PM +, Daniel P. Berrangé wrote: > On Wed, Mar 20, 2019 at 10:32:53AM -0300, Eduardo Habkost wrote: > > On Wed, Mar 20, 2019 at 11:51:51AM +, Daniel P. Berrangé wrote: > > > On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: > > [...] > > > >

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 10:32:53AM -0300, Eduardo Habkost wrote: > On Wed, Mar 20, 2019 at 11:51:51AM +, Daniel P. Berrangé wrote: > > On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: > [...] > > > So it's rather questionable if we should care about arbitrarily old > > >

Re: [libvirt] [PATCH] virnwfilterbindingobj: Introduce and use virNWFilterBindingObjStealDef

2019-03-20 Thread John Ferlan
On 3/20/19 9:11 AM, Michal Privoznik wrote: > On 3/20/19 12:17 PM, John Ferlan wrote: >> >> >> On 3/20/19 6:31 AM, Michal Privoznik wrote: >>> https://bugzilla.redhat.com/show_bug.cgi?id=1686927 >>> >>> When trying to create a nwfilter binding via >>> nwfilterBindingCreateXML() we may encounter

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Eduardo Habkost
On Wed, Mar 20, 2019 at 11:51:51AM +, Daniel P. Berrangé wrote: > On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: [...] > > So it's rather questionable if we should care about arbitrarily old > > libvirt with new QEMU in case of new machines (especially upstream). > >

Re: [libvirt] [PATCH] virnwfilterbindingobj: Introduce and use virNWFilterBindingObjStealDef

2019-03-20 Thread Ján Tomko
On Wed, Mar 20, 2019 at 11:31:57AM +0100, Michal Privoznik wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1686927 When trying to create a nwfilter binding via nwfilterBindingCreateXML() we may encounter a crash. The sequence of functions called is as follows: 1) nwfilterBindingCreateXML()

Re: [libvirt] [PATCH] virnwfilterbindingobj: Introduce and use virNWFilterBindingObjStealDef

2019-03-20 Thread Michal Privoznik
On 3/20/19 12:17 PM, John Ferlan wrote: On 3/20/19 6:31 AM, Michal Privoznik wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1686927 When trying to create a nwfilter binding via nwfilterBindingCreateXML() we may encounter a crash. The sequence of functions called is as follows: 1)

Re: [libvirt] [PATCH] rpm: fix upgrades when RBD is disabled in a new version

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 01:01:52PM +0100, Erik Skultety wrote: > On Tue, Mar 19, 2019 at 04:00:59PM +, Daniel P. Berrangé wrote: > > We previously had to disable RBD on 32-bit platforms since Ceph has > > dropped all support for 32-bit. Unfortunately anyone with the RPM > >

Re: [libvirt] [PATCH] rpm: fix upgrades when RBD is disabled in a new version

2019-03-20 Thread Erik Skultety
On Tue, Mar 19, 2019 at 04:00:59PM +, Daniel P. Berrangé wrote: > We previously had to disable RBD on 32-bit platforms since Ceph has > dropped all support for 32-bit. Unfortunately anyone with the RPM > libvirt-daemon-driver-storage-rbd installed on 32-bit now has a > broken upgrade path. > >

Re: [libvirt] [PATCH v2 2/3] xml: nodedev: add class info for pci capability

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 12:35:14PM +0100, Pavel Hrdina wrote: > On Tue, Mar 12, 2019 at 02:14:40PM +0300, Nikolay Shirokovskiy wrote: > > This info can be useful to filter devices visible > > to mgmt clients so that they won't see devices that > > unsafe/not meaningful to pass thru. > > > >

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 11:26:34AM +0100, Igor Mammedov wrote: > On Tue, 19 Mar 2019 14:51:07 + > Daniel P. Berrangé wrote: > > > On Tue, Mar 19, 2019 at 02:08:01PM +0100, Igor Mammedov wrote: > > > On Thu, 7 Mar 2019 10:07:05 + > > > Daniel P. Berrangé wrote: > > > > > > > On Wed,

Re: [libvirt] [PATCH 01/16] test: Avoid use-after-free on virDomainSnapshotDelete

2019-03-20 Thread Ján Tomko
On Wed, Mar 20, 2019 at 12:40:50AM -0500, Eric Blake wrote: The following virsh command was triggering a use-after-free: $ virsh -c test:///default ' snapshot-create-as test s1 snapshot-create-as test s2 snapshot-delete --children-only test s1 snapshot-current --name test' Domain snapshot

Re: [libvirt] [PATCH v2 2/3] xml: nodedev: add class info for pci capability

2019-03-20 Thread Pavel Hrdina
On Tue, Mar 12, 2019 at 02:14:40PM +0300, Nikolay Shirokovskiy wrote: > This info can be useful to filter devices visible > to mgmt clients so that they won't see devices that > unsafe/not meaningful to pass thru. > > Provide class info the way it is provided by udev or > kernel that is as single

Re: [libvirt] [PATCH] virnwfilterbindingobj: Introduce and use virNWFilterBindingObjStealDef

2019-03-20 Thread John Ferlan
On 3/20/19 6:31 AM, Michal Privoznik wrote: > https://bugzilla.redhat.com/show_bug.cgi?id=1686927 > > When trying to create a nwfilter binding via > nwfilterBindingCreateXML() we may encounter a crash. The sequence > of functions called is as follows: > > 1) nwfilterBindingCreateXML() parses

Re: [libvirt] [PATCH] security: apparmor: make vhost-net access a static rule

2019-03-20 Thread Christian Ehrhardt
On Wed, Mar 20, 2019 at 8:45 AM Christian Ehrhardt wrote: > > On Mon, Mar 4, 2019 at 11:42 AM Christian Ehrhardt > wrote: > > > > On Fri, Mar 1, 2019 at 5:56 PM Jamie Strandboge wrote: > > > > > > On Mon, 18 Feb 2019, Christian Ehrhardt wrote: > > > > > > > So far we were detecting at guest

Re: [libvirt] [Qemu-devel] Evolve or go extinct

2019-03-20 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Wed, Mar 20, 2019 at 07:46:33AM +0100, Markus Armbruster wrote: >> We're going in circles. Igor keeps telling you QEMU needs to shed dead >> weight, badly. In Igor's words: >> >> We really need to figure out how to introduce breaking change on >>

[libvirt] [PATCH] virnwfilterbindingobj: Introduce and use virNWFilterBindingObjStealDef

2019-03-20 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=1686927 When trying to create a nwfilter binding via nwfilterBindingCreateXML() we may encounter a crash. The sequence of functions called is as follows: 1) nwfilterBindingCreateXML() parses the XML and calls virNWFilterBindingObjListAdd() which calls

Re: [libvirt] [Qemu-devel] [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.

2019-03-20 Thread Igor Mammedov
On Tue, 19 Mar 2019 14:51:07 + Daniel P. Berrangé wrote: > On Tue, Mar 19, 2019 at 02:08:01PM +0100, Igor Mammedov wrote: > > On Thu, 7 Mar 2019 10:07:05 + > > Daniel P. Berrangé wrote: > > > > > On Wed, Mar 06, 2019 at 07:54:17PM +0100, Igor Mammedov wrote: > > > > On Wed, 6 Mar

Re: [libvirt] Evolve or go extinct (was: [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.)

2019-03-20 Thread Daniel P . Berrangé
On Wed, Mar 20, 2019 at 07:46:33AM +0100, Markus Armbruster wrote: > We're going in circles. Igor keeps telling you QEMU needs to shed dead > weight, badly. In Igor's words: > > We really need to figure out how to introduce breaking change on > management (CLI) side* in QEMU and make it

Re: [libvirt] [PATCH 1/2] snapshots: allow create --redefine to force a new configuration

2019-03-20 Thread Christian Ehrhardt
On Wed, Mar 20, 2019 at 8:53 AM Peter Krempa wrote: > > On Tue, Mar 19, 2019 at 08:18:15 +0100, Christian Ehrhardt wrote: > > On Mon, Mar 18, 2019 at 4:58 PM Peter Krempa wrote: > > > > > > On Mon, Mar 18, 2019 at 16:21:18 +0100, Christian Ehrhardt wrote: > > > > Currently there is no means to

Re: [libvirt] Evolve or go extinct (was: [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.)

2019-03-20 Thread Peter Krempa
On Wed, Mar 20, 2019 at 07:46:33 +0100, Markus Armbruster wrote: [...] > I'm with Igor on this one. I'm all for QEMU going the extra mile to > help libvirt, simply because that helps a very large fraction of our > users. I'm now asking libvirt to extend the courtesy back to QEMU. > > Please

Re: [libvirt] [PATCH 1/2] snapshots: allow create --redefine to force a new configuration

2019-03-20 Thread Peter Krempa
On Tue, Mar 19, 2019 at 08:18:15 +0100, Christian Ehrhardt wrote: > On Mon, Mar 18, 2019 at 4:58 PM Peter Krempa wrote: > > > > On Mon, Mar 18, 2019 at 16:21:18 +0100, Christian Ehrhardt wrote: > > > Currently there is no means to permanently modify the metadata stored > > > within a snapshot if

Re: [libvirt] [PATCH] security: apparmor: make vhost-net access a static rule

2019-03-20 Thread Christian Ehrhardt
On Mon, Mar 4, 2019 at 11:42 AM Christian Ehrhardt wrote: > > On Fri, Mar 1, 2019 at 5:56 PM Jamie Strandboge wrote: > > > > On Mon, 18 Feb 2019, Christian Ehrhardt wrote: > > > > > So far we were detecting at guest start if any devices needed vhost net > > > and only if that was true added a

[libvirt] Evolve or go extinct (was: [PATCH v2] numa: warn if numa 'mem' option or default RAM splitting between nodes is used.)

2019-03-20 Thread Markus Armbruster
Daniel P. Berrangé writes: > On Tue, Mar 19, 2019 at 02:08:01PM +0100, Igor Mammedov wrote: >> On Thu, 7 Mar 2019 10:07:05 + >> Daniel P. Berrangé wrote: >> >> > On Wed, Mar 06, 2019 at 07:54:17PM +0100, Igor Mammedov wrote: >> > > On Wed, 6 Mar 2019 18:16:08 + >> > > Daniel P.