Re: [libvirt] [PATCH 12/12] qemu: driver: allow remote destinations for block copy

2019-08-15 Thread Ján Tomko
On Thu, Aug 08, 2019 at 06:00:42PM +0200, Peter Krempa wrote: Now that we support blockdev for qemuDomainBlockCopy we can allow copying to remote destinations as well. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 47 -- 1 file changed, 32

Re: [libvirt] [PATCH 11/12] qemu: Add blockdev support for the block copy job

2019-08-15 Thread Ján Tomko
On Thu, Aug 08, 2019 at 06:00:41PM +0200, Peter Krempa wrote: Implement job handling for the block copy job (drive/blockdev-mirror) when using -blockdev. In contrast to the previously implemented blockjobs the block copy job introduces new images to the running qemu instance, thus requires a bit

Re: [libvirt] [PATCH 10/12] qemu: Introduce code for blockdev-create

2019-08-15 Thread Ján Tomko
On Thu, Aug 08, 2019 at 06:00:40PM +0200, Peter Krempa wrote: QEMU finally exposes an interface which allows us to instruct it to format or create arbitrary images. This is required for blockdev integration of block copy and snapshots as we need to pre-format images prior to use with

[libvirt] Exposing feature deprecation to machine clients (was: [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters)

2019-08-15 Thread Markus Armbruster
John Snow writes: > On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: >> To get rid of implicit filters related workarounds in future let's >> deprecate them now. >> >> Signed-off-by: Vladimir Sementsov-Ogievskiy >> --- [...] >> diff --git a/blockdev.c b/blockdev.c >> index

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Peter Krempa
On Thu, Aug 15, 2019 at 12:49:28 +0200, Kevin Wolf wrote: > Am 14.08.2019 um 21:27 hat John Snow geschrieben: [...] > > example: > > > > { "return": {}, > > "deprecated": True, > > "warning": "Omitting filter-node-name parameter is deprecated, it will > > be required in the future" > > } >

Re: [libvirt] [PATCH] docs: Make anchors in API html files clickable/linkable

2019-08-15 Thread Ján Tomko
On Thu, Aug 15, 2019 at 10:21:59AM +0200, Peter Krempa wrote: Use 'id' instead of 'name' for anchors which adds the hidden clickable headerlink helper so it's way simpler to link to a specific part of the docs. was deprecated in favor of anyway. Signed-off-by: Peter Krempa ---

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Markus Armbruster
Peter Krempa writes: > On Thu, Aug 15, 2019 at 12:49:28 +0200, Kevin Wolf wrote: >> Am 14.08.2019 um 21:27 hat John Snow geschrieben: > > [...] > >> > example: >> > >> > { "return": {}, >> > "deprecated": True, >> > "warning": "Omitting filter-node-name parameter is deprecated, it will >> >

[libvirt] [PATCH] virpci:fix Secondary Bus Reset bug

2019-08-15 Thread hexin900110
From: hexin The parent bridge configuration of the current device should be read and reset, instead of reading the current device configuration. Signed-off-by: He Xin Signed-off-by: Liu Qi Signed-off-by: Zhang Yu --- src/util/virpci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [libvirt] [Qemu-devel] [PATCH 1/2] qapi: deprecate drive-mirror and drive-backup

2019-08-15 Thread Peter Krempa
On Wed, Aug 14, 2019 at 15:22:15 -0400, John Snow wrote: > > > On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: > > It's hard and not necessary to maintain outdated versions of these > > commands. > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy > > --- > > qemu-deprecated.texi |

Re: [libvirt] [Qemu-block] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Maxim Levitsky
On Wed, 2019-08-14 at 15:27 -0400, John Snow wrote: > > On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: > > To get rid of implicit filters related workarounds in future let's > > deprecate them now. > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy > > --- > > qemu-deprecated.texi

Re: [libvirt] [PATCH 5/5] util: default to read-only in virPCIDeviceConfigOpen

2019-08-15 Thread Erik Skultety
On Tue, Aug 13, 2019 at 03:45:19PM +0200, Ján Tomko wrote: > All the callers left require virPCIDeviceConfigOpen to be fatal > and only use read-only access to the config file. > > Signed-off-by: Ján Tomko > --- FYI this patch broke make check, both virpcitest and virhostdevtest. Erik --

Re: [libvirt] [PATCH 5/5] util: default to read-only in virPCIDeviceConfigOpen

2019-08-15 Thread Peter Krempa
On Thu, Aug 15, 2019 at 10:10:06 +0200, Erik Skultety wrote: > On Tue, Aug 13, 2019 at 03:45:19PM +0200, Ján Tomko wrote: > > All the callers left require virPCIDeviceConfigOpen to be fatal > > and only use read-only access to the config file. > > > > Signed-off-by: Ján Tomko > > --- > > FYI

[libvirt] [PATCH] docs: Make anchors in API html files clickable/linkable

2019-08-15 Thread Peter Krempa
Use 'id' instead of 'name' for anchors which adds the hidden clickable headerlink helper so it's way simpler to link to a specific part of the docs. Signed-off-by: Peter Krempa --- docs/newapi.xsl | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/newapi.xsl

Re: [libvirt] [PATCH] util: storage: Fix parsing of 'exportname' from legacy NBD strings

2019-08-15 Thread Jiri Denemark
On Wed, Jul 31, 2019 at 17:22:48 +0200, Peter Krempa wrote: > If the nbd export name contains a colon, our parser would not parse it > properly as we split the string by colons. Modify the code to look up > the exportname and copy any trailing characters as the export name is > supposed to be at

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Kevin Wolf
Am 14.08.2019 um 21:27 hat John Snow geschrieben: > > > On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: > > To get rid of implicit filters related workarounds in future let's > > deprecate them now. > > > > Signed-off-by: Vladimir Sementsov-Ogievskiy > > --- > > qemu-deprecated.texi

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread John Snow
On 8/15/19 6:49 AM, Kevin Wolf wrote: > Am 14.08.2019 um 21:27 hat John Snow geschrieben: >> >> >> On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: >>> To get rid of implicit filters related workarounds in future let's >>> deprecate them now. >>> >>> Signed-off-by: Vladimir

Re: [libvirt] [PATCH 2/2] virpcimock: Mock __open_2()

2019-08-15 Thread Erik Skultety
On Thu, Aug 15, 2019 at 05:15:57PM +0200, Michal Privoznik wrote: > Hold on to your hat, this is going to be a wild ride. As nearly > nothing in glic, nor open() is a real function. Just look into > bits/fcntl2.h and you'll see that open() is actually a thin > wrapper that calls either

Re: [libvirt] [PATCH 1/2] ci: Allow gdb in containers

2019-08-15 Thread Erik Skultety
On Thu, Aug 15, 2019 at 05:15:56PM +0200, Michal Privoznik wrote: > The gdb requires ptrace capability, but the way we run containers > now is that they drop every capability. Preserve SYS_PTRACE then. > > Signed-off-by: Michal Privoznik > --- Makes sense to me, so I can give you my:

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Kevin Wolf
Am 15.08.2019 um 18:07 hat John Snow geschrieben: > > > On 8/15/19 6:49 AM, Kevin Wolf wrote: > > Am 14.08.2019 um 21:27 hat John Snow geschrieben: > >> > >> > >> On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: > >>> To get rid of implicit filters related workarounds in future let's >

[libvirt] [PATCH 1/2] ci: Allow gdb in containers

2019-08-15 Thread Michal Privoznik
The gdb requires ptrace capability, but the way we run containers now is that they drop every capability. Preserve SYS_PTRACE then. Signed-off-by: Michal Privoznik --- Makefile.ci | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile.ci b/Makefile.ci index 8857c953b2..977e0445c6 100644

[libvirt] [PATCH 0/2] Fix the latest virpcitest failure

2019-08-15 Thread Michal Privoznik
See 2/2 for explanation. Michal Prívozník (2): ci: Allow gdb in containers virpcimock: Mock __open_2() Makefile.ci| 1 + tests/virpcimock.c | 29 + 2 files changed, 30 insertions(+) -- 2.21.0 -- libvir-list mailing list libvir-list@redhat.com

[libvirt] [PATCH 2/2] virpcimock: Mock __open_2()

2019-08-15 Thread Michal Privoznik
Hold on to your hat, this is going to be a wild ride. As nearly nothing in glic, nor open() is a real function. Just look into bits/fcntl2.h and you'll see that open() is actually a thin wrapper that calls either __open_alias() or __open_2(). Now, before 801ebb5edb6 the open() done in

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread John Snow
On 8/15/19 12:48 PM, Kevin Wolf wrote: > Am 15.08.2019 um 18:07 hat John Snow geschrieben: >> On 8/15/19 6:49 AM, Kevin Wolf wrote: >>> Am 14.08.2019 um 21:27 hat John Snow geschrieben: This might be OK to do right away, though. I asked Markus this not too long ago; do we want

Re: [libvirt] Exposing feature deprecation to machine clients (was: [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters)

2019-08-15 Thread John Snow
On 8/15/19 10:16 AM, Markus Armbruster wrote: > John Snow writes: > >> On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: >>> To get rid of implicit filters related workarounds in future let's >>> deprecate them now. >>> >>> Signed-off-by: Vladimir Sementsov-Ogievskiy >>> --- > [...]

[libvirt] [PATCH] test_driver: implement virConnectCompareCPU

2019-08-15 Thread Ilias Stamatis
Signed-off-by: Ilias Stamatis --- Probably we need to extend the host CPU's capabilities as well along with this patch. Currently virCPUx86Compare reports "unknown host CPU". src/test/test_driver.c | 21 + 1 file changed, 21 insertions(+) diff --git

[libvirt] [PATCH] virDomainGetAutostart takes a pointer that it writes the output value to

2019-08-15 Thread Sage Imel
The current version of get_autostart seg faults. This patch correctly passes a pointer to an int to virDomainGetAutostart and returns a result based on the value of that int Signed-off-by: sage Imel --- src/domain.rs | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [libvirt] [Qemu-devel] [PATCH 1/2] qapi: deprecate drive-mirror and drive-backup

2019-08-15 Thread John Snow
On 8/15/19 3:44 AM, Peter Krempa wrote: > On Wed, Aug 14, 2019 at 15:22:15 -0400, John Snow wrote: >> >> >> On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: >>> It's hard and not necessary to maintain outdated versions of these >>> commands. >>> >>> Signed-off-by: Vladimir

Re: [libvirt] [PATCH] remote_daemon_dispatch.c: typecast ARRAY_CARDINALITY() in remoteDispatchProbeURI()

2019-08-15 Thread Jim Fehlig
On 8/14/19 7:13 AM, Michal Privoznik wrote: > Since users can enable/disable drivers at compile time, it may > happen that @drivers array is in fact empty (in both its > occurrences within the function). This means that > ARRAY_CARDINALITY() returns 0UL which makes gcc unhappy because > of loop

Re: [libvirt] [PATCH 2/2] virpcimock: Mock __open_2()

2019-08-15 Thread Ján Tomko
On Thu, Aug 15, 2019 at 05:15:57PM +0200, Michal Privoznik wrote: Hold on to your hat, this is going to be a wild ride. As nearly nothing in glic, nor open() is a real function. Just look into s/glic/glibc/ bits/fcntl2.h and you'll see that open() is actually a thin wrapper that calls either

Re: [libvirt] [PATCH 1/6] util: Export virStorageFileSupportsBackingChainTraversal

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:16PM +0200, Peter Krempa wrote: The function will be reused in the qemu snapshot code. The argument is turned into const similarly to the other virStorageFileSupports* functions. Signed-off-by: Peter Krempa --- src/libvirt_private.syms | 1 +

Re: [libvirt] [PATCH 4/6] qemu: driver: Improve error suppression in qemuDomainStorageUpdatePhysical

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:19PM +0200, Peter Krempa wrote: None of the callers of qemuDomainStorageUpdatePhysical care about errors. Use the new flag for qemuDomainStorageOpenStat which suppresses some errors and move the reset of the rest of the uncommon errors into this function. Document

Re: [libvirt] [PATCH 3/6] util: storagefile: Don't report errors from virStorageSourceUpdatePhysicalSize

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:18PM +0200, Peter Krempa wrote: virStorageSourceUpdatePhysicalSize is called only from qemuDomainStorageUpdatePhysical and all callers of it reset the libvirt error if -1 is returned. Don't bother setting the error in the first place. Signed-off-by: Peter Krempa

Re: [libvirt] [PATCH 2/6] qemu: Allow skipping some errors in qemuDomainStorageOpenStat

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:17PM +0200, Peter Krempa wrote: Some callers of this function actually don't care about errors and reset it. The message is still logged which might irritate users in this case. Add a boolean flag which will do few checks whether it actually makes sense to even try

[libvirt] [PATCH] access: fix incorrect addition to virAccessPermNetwork

2019-08-15 Thread Laine Stump
Commit e69444e17 (first appeared in libvirt-5.5.0) added the new value "VIR_ACCESS_PERM_NETWORK_SEARCH_PORTS" to the virAccessPerNetwork enum, and also the string "search_ports" to the VIR_ENUM_IMPL() macro for that enum. Unfortunately, the enum value was added in the middle of the list, while the

Re: [libvirt] [PATCH 6/6] qemu: Don't report some ignored errors in qemuDomainGetStatsOneBlockFallback

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:21PM +0200, Peter Krempa wrote: The function ignores all errors from qemuStorageLimitsRefresh by calling virResetLastError. This still logs them. Since qemuStorageLimitsRefresh allows suppressing some, do so. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c

Re: [libvirt] [PATCH 5/6] qemu: Allow suppressing errors from qemuStorageLimitsRefresh

2019-08-15 Thread Ján Tomko
On Wed, Aug 14, 2019 at 06:59:20PM +0200, Peter Krempa wrote: qemuStorageLimitsRefresh uses qemuDomainStorageOpenStat internally and there are callers which don't care about the error. Propagate the skipInaccessible flag so that we can log less errors. Callers currently don't care about the

Re: [libvirt] [Qemu-devel] [PATCH 2/2] qapi: deprecate implicit filters

2019-08-15 Thread Markus Armbruster
Kevin Wolf writes: > Am 15.08.2019 um 18:07 hat John Snow geschrieben: >> >> >> On 8/15/19 6:49 AM, Kevin Wolf wrote: >> > Am 14.08.2019 um 21:27 hat John Snow geschrieben: >> >> >> >> >> >> On 8/14/19 6:07 AM, Vladimir Sementsov-Ogievskiy wrote: >> >>> To get rid of implicit filters related

[libvirt] [PATCH] test_driver: Fix permissions for test_driver.c

2019-08-15 Thread Ján Tomko
From: Andrea Bolognani Introduced in commit 4a6ee53581b3. Signed-off-by: Andrea Bolognani (cherry picked from commit df1b5cf02efd4fee6f01ebe69fd0f1fd24b3947d) Reintroduced-by: fb275b76734ba1c0b18ad1088e3c82fb01961903 Signed-off-by: Ján Tomko --- src/test/test_driver.c | 0 1 file changed, 0

[libvirt] [PATCH 1/2] network: fix crash during cleanup from failure to allocate port

2019-08-15 Thread Laine Stump
During networkPortCreateXML, if networkAllocatePort() failed, networkReleasePort() would be called, which would (in the case of network pools of macvtap passthrough devices) attempt to find the allocated device by comparing port->plug.direct.linkdev to each device in the pool. Since

[libvirt] [PATCH 2/2] network: replace virSaveLastError() with virErrorPreserveLast()

2019-08-15 Thread Laine Stump
virErrorPreserveLast()/virErrorRestore() (added in commit 8333e7455 back in 2017), do a better better job of saving and restoring the last libvirt error than virSaveLastError()/virErrorRestore() (they're simpler, and they also save/restore the system errno). Signed-off-by: Laine Stump ---

[libvirt] [PATCH 0/2] network: fix crash during cleanup from failure to allocate port

2019-08-15 Thread Laine Stump
The first patch fixes the bug. The 2nd patch just updates some code that I noticed while fixing the bug (because I figured someone would whine that I was just moving around calls to outdated APIs). Laine Stump (2): network: fix crash during cleanup from failure to allocate port network: