[PATCH] qemuProcessSetupDisksTransientSnapshot: Skip enabling transientOverlayCreated flag

2021-05-27 Thread Masayoshi Mizuma
From: Masayoshi Mizuma QEMU_DOMAIN_DISK_PRIVATE(disk)->transientOverlayCreated flag gets true unexpectedly on qemuProcessSetupDisksTransientSnapshot() when the disk has option. The flag should be enabled on qemuDomainAttachDiskGeneric() after the overlay setup is completed. Skip enabling

Re: [libvirt PATCH 04/10] remote: consistently use flags for passing ro/user/autostart props

2021-05-27 Thread Laine Stump
On 5/26/21 11:16 AM, Ján Tomko wrote: On a Wednesday in 2021, Daniel P. Berrangé wrote: We have helper methods that return boolans for ro/user/autostart booleans (or bools if you want to be pedantic) properties. We then pack them into a flags parameter, and later unpack them again. This

Libvirt CI for running functional tests

2021-05-27 Thread Praveen K Paladugu
Hi, While developing cloud-hypervisor driver for libvirt, we re-fitted cloud-hypervisor project's CI to libvirt. This CI was built on Rust and currently supports VM boot up tests. https://github.com/cloud-hypervisor/libvirt/tree/ch/ch_integration_tests We are working on extending this CI to

libvirt-7.4.0 release candidate 2

2021-05-27 Thread Jiri Denemark
I have just tagged v7.4.0-rc2 in the repository and pushed signed tarballs and source RPMs to https://libvirt.org/sources/ Please give the release candidate some testing and in case you find a serious issue which should have a fix in the upcoming release, feel free to reply to this thread to make

[libvirt PATCH 1/2] domain_conf: extract disk driver source bits to its own function

2021-05-27 Thread Pavel Hrdina
Attribute `type` and sub-element `metadata_cache` are internally stored in the `virStorageSource` structure. Sometimes we only care about the disk source bits so we need a dedicated helper for that. Signed-off-by: Pavel Hrdina --- src/conf/domain_conf.c | 46

[libvirt PATCH 2/2] virDomainDiskDefParseSource: parse source bits from driver element

2021-05-27 Thread Pavel Hrdina
Before the mentioned commit we always parsed the whole disk definition for qemuDomainBlockCopy API but we only used the @src part. Based on that assumption the code was changed to parse only the disk element. Unfortunately that is not correct as we need to parse some parts of element as well.

[libvirt PATCH 0/2] fix disk XML formatting for qemuDomainBlockCopy API

2021-05-27 Thread Pavel Hrdina
Pavel Hrdina (2): domain_conf: extract disk driver source bits to its own function virDomainDiskDefParseSource: parse source bits from driver element src/conf/domain_conf.c | 52 ++ 1 file changed, 37 insertions(+), 15 deletions(-) -- 2.31.1

Re: [libvirt PATCH 0/2] Revert mdev autostart support

2021-05-27 Thread Michal Prívozník
On 5/27/21 3:24 PM, Jonathon Jongsma wrote: > On Thu, 27 May 2021 14:04:08 +0200 > Michal Prívozník wrote: > >> On 5/26/21 5:40 PM, Jonathon Jongsma wrote: >>> As Daniel Berrange mentioned, the method of supporting autostart >>> for node devices was not consistent with other libvirt objects. >>>

Re: Entering freeze for libvirt-7.4.0

2021-05-27 Thread Jiri Denemark
On Wed, May 26, 2021 at 11:37:48 -0500, Jonathon Jongsma wrote: > On Tue, May 25, 2021 at 10:12 AM Jiri Denemark wrote: > > > > I have just tagged v7.4.0-rc1 in the repository and pushed signed > > tarballs and source RPMs to https://libvirt.org/sources/ > > > > Please give the release candidate

Re: [libvirt PATCH 0/2] Revert mdev autostart support

2021-05-27 Thread Jonathon Jongsma
On Thu, 27 May 2021 14:04:08 +0200 Michal Prívozník wrote: > On 5/26/21 5:40 PM, Jonathon Jongsma wrote: > > As Daniel Berrange mentioned, the method of supporting autostart > > for node devices was not consistent with other libvirt objects. > > This patch series reverts this feature before it

Re: Recommended volume permissions (being created for vagrant-libvirt via fog-libvirt)

2021-05-27 Thread Michal Prívozník
On 5/25/21 6:50 PM, Darragh Bailey wrote: > Hi, > > A request has come up recently in vagrant-libvirt about changing the > permissions used for the VM volume image file. > > Currently there is a backing image file uploaded that gets 744 as the file > permissions, and then the VM domain is

Re: [libvirt PATCH 0/2] Revert mdev autostart support

2021-05-27 Thread Michal Prívozník
On 5/26/21 5:40 PM, Jonathon Jongsma wrote: > As Daniel Berrange mentioned, the method of supporting autostart for node > devices was not consistent with other libvirt objects. This patch series > reverts this feature before it gets into a release. I will submit a follow-up > patch soon which adds

Re: [libvirt PATCH 1/2] Partial Revert of "tests: nodedevxml2xmltest: test more mdev files"

2021-05-27 Thread Michal Prívozník
On 5/26/21 5:40 PM, Jonathon Jongsma wrote: > This reverts parts of commit bb8c3b61208ed0f29dcbeca857529600f04b3146 > that added tests for autostart functionality (which will be reverted in > the following commit) > --- > tests/nodedevschemadata/mdev_autostart.xml| 10 -- >

Re: [PATCH] meson.build: Compile with -Walloca

2021-05-27 Thread Ján Tomko
On a Thursday in 2021, Thomas Huth wrote: We are already compiling libvirt with -Wvla - so it does not make too much sense to still allow people to use alloca() instead. Thus put it on the list of things we want to warn about. Fortunately, there is currently no warning with this flag, so the

Re: [PATCH] meson.build: Remove the -Wvla-larger-then flag

2021-05-27 Thread Martin Kletzander
On Thu, May 27, 2021 at 12:00:59PM +0100, Daniel P. Berrangé wrote: On Thu, May 27, 2021 at 12:49:28PM +0200, Martin Kletzander wrote: On Thu, May 27, 2021 at 12:37:36PM +0200, Thomas Huth wrote: > The flag has a typo in it, it's "...-than=..." and not "...-then=...", > so this was in fact

Re: [libvirt PATCH 00/10] remote: various refactoring & bugs for remote driver

2021-05-27 Thread Daniel P . Berrangé
On Wed, May 26, 2021 at 05:26:42PM +0200, Ján Tomko wrote: > On a Wednesday in 2021, Daniel P. Berrangé wrote: > > This is in prep for switching to use the modular daemons by default. In > > testing that setup I hit a couple of minor bugs. > > > > Daniel P. Berrangé (10): > > remote: use

Re: [PATCH] meson.build: Remove the -Wvla-larger-then flag

2021-05-27 Thread Daniel P . Berrangé
On Thu, May 27, 2021 at 12:49:28PM +0200, Martin Kletzander wrote: > On Thu, May 27, 2021 at 12:37:36PM +0200, Thomas Huth wrote: > > The flag has a typo in it, it's "...-than=..." and not "...-then=...", > > so this was in fact never used. Since we're also using -Wvla (without > > size), we

Re: [PATCH] meson.build: Remove the -Wvla-larger-then flag

2021-05-27 Thread Martin Kletzander
On Thu, May 27, 2021 at 12:37:36PM +0200, Thomas Huth wrote: The flag has a typo in it, it's "...-than=..." and not "...-then=...", so this was in fact never used. Since we're also using -Wvla (without size), we should already get warnings about any variable length arrays anyway, so the

[PATCH] meson.build: Compile with -Walloca

2021-05-27 Thread Thomas Huth
We are already compiling libvirt with -Wvla - so it does not make too much sense to still allow people to use alloca() instead. Thus put it on the list of things we want to warn about. Fortunately, there is currently no warning with this flag, so the current sources should be clean.

Re: [libvirt PATCH 1/2] Partial Revert of "tests: nodedevxml2xmltest: test more mdev files"

2021-05-27 Thread Daniel P . Berrangé
On Wed, May 26, 2021 at 10:40:25AM -0500, Jonathon Jongsma wrote: > This reverts parts of commit bb8c3b61208ed0f29dcbeca857529600f04b3146 > that added tests for autostart functionality (which will be reverted in > the following commit) > --- > tests/nodedevschemadata/mdev_autostart.xml

Re: [libvirt PATCH 2/2] nodedev: Revert auto-start property for mdevs

2021-05-27 Thread Daniel P . Berrangé
On Wed, May 26, 2021 at 10:40:26AM -0500, Jonathon Jongsma wrote: > We supported autostart of node devices via an xml element, but this > is not consistent with other libvirt objects which use an explicit API > for setting autostart status. So revert this and implement it as an > official API in a

Re: [PATCH for 7.4.0] virCapabilitiesHostNUMAInitReal: Don't jump over cleanup

2021-05-27 Thread Martin Kletzander
On Thu, May 27, 2021 at 11:46:56AM +0200, Michal Privoznik wrote: In one of my recent commits I've done some renaming. But whilst doing so I also mistakenly replaced 'goto cleanup' with 'return -1' in virCapabilitiesHostNUMAInitReal() which was incorrect. Fixes:

[PATCH] meson.build: Remove the -Wvla-larger-then flag

2021-05-27 Thread Thomas Huth
The flag has a typo in it, it's "...-than=..." and not "...-then=...", so this was in fact never used. Since we're also using -Wvla (without size), we should already get warnings about any variable length arrays anyway, so the additional "-Wvla-larger-than" does not make much sense and thus we can

[PATCH for 7.4.0] virCapabilitiesHostNUMAInitReal: Don't jump over cleanup

2021-05-27 Thread Michal Privoznik
In one of my recent commits I've done some renaming. But whilst doing so I also mistakenly replaced 'goto cleanup' with 'return -1' in virCapabilitiesHostNUMAInitReal() which was incorrect. Fixes: fe25224fdaa53bbeceed3ddeef1b3a150665e656 Signed-off-by: Michal Privoznik ---

Re: [PATCH] qemuDomainAttachDiskGenericTransient: Add NULL check in case the overlay disk already exists

2021-05-27 Thread Ján Tomko
On a Wednesday in 2021, Masayoshi Mizuma wrote: From: Masayoshi Mizuma When is set to a disk and the overlay disk already exists because of something abnormal, libvirt is terminated by Segmentation fault. # virsh start Test0 error: Disconnected from qemu:///system due to end of file