Re: [libvirt] [PATCH v3 8/9] qemu: Implement virDomainGetGuestInfo()

2019-08-27 Thread Michal Privoznik
On 8/26/19 6:08 PM, Jonathon Jongsma wrote: On Mon, 2019-08-26 at 17:29 +0200, Michal Privoznik wrote: On 8/23/19 6:31 PM, Jonathon Jongsma wrote: Iimplements the new guest information API by querying requested information via the guest agent. Signed-off-by: Jonathon Jongsma ---

Re: [libvirt] [PATCH v2 02/16] domain: add "vhostuser" attribute to virtio video model

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:51:56PM -0400, Cole Robinson wrote: On 8/23/19 12:21 PM, Cole Robinson wrote: From: Marc-André Lureau Accept a new attribute to specify usage of helper process, ex: For other devices, we have Which is an attempt to make this more generic. IMO

Re: [libvirt] [PATCH v2 02/16] domain: add "vhostuser" attribute to virtio video model

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:46PM -0400, Cole Robinson wrote: From: Marc-André Lureau Accept a new attribute to specify usage of helper process, ex: Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- docs/formatdomain.html.in | 6 ++

Re: [libvirt] [PATCH v2 0/6] support boot from vfio-ccw mdev devices

2019-08-27 Thread Bjoern Walk
Bjoern Walk [2019-08-20, 12:19PM +0200]: > Boris Fiuczynski [2019-08-13, 05:40PM +0200]: > > Changes in v2: > > 1. moved refactoring into separate patch > > 2. removed line misalignment > > 3. moved valition from command line generator into domain xml validation > > 4. added tests for vfio-ap

[libvirt] Error when creating VM with persistent memory

2019-08-27 Thread Seema Pandit
I am trying to create a VM with added persistent memory using virsh. It fails when persistent memory namespace size is larger than available system memory. Please see error below, prealloc=yes is set in the command line. For dax type namespace, as I understand, prealloc should not be needed. Is

Re: [libvirt] [PATCH v2 11/16] qemu: add vhost-user-gpu helper unit

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:55PM -0400, Cole Robinson wrote: From: Marc-André Lureau Similar to the qemu_tpm.c, add a unit with a few functions to start/stop and setup the cgroup of the external vhost-user-gpu process. See function documentation. Since the vhost-user connection fd isn't

Re: [libvirt] [PATCH v2 16/16] tests: add vhost-user-gpu xml2argv tests

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:22:00PM -0400, Cole Robinson wrote: From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- .../vhost-user-gpu-secondary.args | 38 .../vhost-user-gpu-secondary.xml | 44 +++

Re: [libvirt] [PATCH 3/4] remote: forbid the --listen arg when systemd socket activation

2019-08-27 Thread Daniel P . Berrangé
On Mon, Aug 26, 2019 at 04:06:47PM +0200, Ján Tomko wrote: > On Fri, Aug 23, 2019 at 04:11:42PM +0100, Daniel P. Berrangé wrote: > > When using systemd socket activation the --listen arg has no > > effect. This is confusing to users upgrading from previous versions of > > libvirt as their config

[libvirt] [PATCH 2/2] qemu: Don't duplicate domain def in qemuDomainGetFSInfo

2019-08-27 Thread Michal Privoznik
Introduced in v3.0.0-rc1~336, the commit message doesn't really justifies the expensive domain def copy creation. Now, that vm->def is guarded in this function by job acquirement we can use vm->def directly. Signed-off-by: Michal Privoznik --- src/qemu/qemu_driver.c | 15 +-- 1 file

[libvirt] [PATCH 0/2] qemu: Couple of cleanups after qemuDomainGetGuestInfo

2019-08-27 Thread Michal Privoznik
*** BLURB HERE *** Michal Prívozník (2): qemu: Acquire domain job in qemuDomainGetFSInfo and qemuDomainGetGuestInfo qemu: Don't duplicate domain def in qemuDomainGetFSInfo src/qemu/qemu_driver.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) --

[libvirt] [PATCH 1/2] qemu: Acquire domain job in qemuDomainGetFSInfo and qemuDomainGetGuestInfo

2019-08-27 Thread Michal Privoznik
These two functions work with vm->def in their critical sections (i.e. after the job was acquired and before it is released). But that means, they need QUERY domain job too to prevent vm->def change. Signed-off-by: Michal Privoznik --- src/qemu/qemu_driver.c | 12 1 file changed, 8

Re: [libvirt] [PATCH v2 09/16] qemu: add vhost-user helpers

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:53PM -0400, Cole Robinson wrote: From: Marc-André Lureau Add qemuVhostUserFetchConfigs() to discover vhost-user helpers. qemuVhostUserFillDomainGPU() will find the first matching GPU helper with the required capabilities and set the associated vhost_user_binary.

Re: [libvirt] [PATCH v2 14/16] qemu: build vhost-user GPU devices

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:58PM -0400, Cole Robinson wrote: From: Marc-André Lureau For each vhost-user GPUs, - build a socket chardev, and pass the vhost-user socket to it - build a vhost-user video device and associate it with the chardev Signed-off-by: Marc-André Lureau Signed-off-by:

[libvirt] [PATCH] Generate status of the backend implementation in storage.html

2019-08-27 Thread Cedric Bosdonnat
Since it helps a user to know which of the storage backends support what operation, include an autogenerated matrix showing it in the docs. --- .gitignore | 1 + docs/Makefile.am | 9 +++-- docs/apibuild.py | 2 ++ docs/storage.html.in | 14

Re: [libvirt] [PATCH v2 03/16] domain: add rendernode attribute on

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 01:04:53PM -0400, Cole Robinson wrote: On 8/23/19 12:21 PM, Cole Robinson wrote: From: Marc-André Lureau vhost-user-gpu helper may accept --render-node option to specify on which GPU should the renderning be done. What does it do if the user doesn't pass one? Pick

Re: [libvirt] [PATCH 0/2] qemu: Couple of cleanups after qemuDomainGetGuestInfo

2019-08-27 Thread Ján Tomko
On Tue, Aug 27, 2019 at 09:34:06AM +0200, Michal Privoznik wrote: *** BLURB HERE *** Michal Prívozník (2): qemu: Acquire domain job in qemuDomainGetFSInfo and qemuDomainGetGuestInfo qemu: Don't duplicate domain def in qemuDomainGetFSInfo src/qemu/qemu_driver.c | 27

[libvirt] [PATCH 3/4] remote_daemon_dispatch: Don't leak @ret on failure

2019-08-27 Thread Michal Privoznik
If there's a problem in encoding @ret (for instance virTypedParamsSerialize() fails) then @ret is leaked. Signed-off-by: Michal Privoznik --- src/remote/remote_daemon_dispatch.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/remote/remote_daemon_dispatch.c

Re: [libvirt] [PATCH v2 3/6] qemu: move hostdev boot validation into domain validation

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:27PM +0200, Boris Fiuczynski wrote: Moving the hostdev boot support validation from the command line generator code into the domain validation code. Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- src/qemu/qemu_command.c | 13 +

Re: [libvirt] [BUG] When PLUG a bridge interface to an active VM, the generated LIVE and CONFIG mac address are different

2019-08-27 Thread Michal Privoznik
On 8/22/19 10:43 AM, Xu Yandong (Yandong Xu) wrote: Hi, When plug a bridge interface to an active VM with both LIVE AND CONFIG flags, libvirt generate different mac address to LIVE and CONFIG instance, so After I reboot the VM, DHCP server doesn't assign the same IP address to the new bridge

Re: [libvirt] [PATCH] apparmor: Allow to run pygrup

2019-08-27 Thread Andrea Bolognani
On Wed, 2019-08-21 at 10:38 +0200, Guido Günther wrote: > Debian has pygrub in > >/usr/lib/xen-*/bin/pygrub > > Allow it to be run. For those following along at home: see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931768 for more information. > +++

Re: [libvirt] [PATCH v2 1/6] tests: add vfio-ap mdev tests

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:25PM +0200, Boris Fiuczynski wrote: Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- .../hostdev-subsys-mdev-vfio-ap-boot-fail.xml | 23 +++ .../hostdev-subsys-mdev-vfio-ap.args | 28 +++

Re: [libvirt] [PATCH v2 2/6] tests: add vhost scsi hostdev boot unsupported test

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:26PM +0200, Boris Fiuczynski wrote: Adding a failure test for booting from a vhost scsi hostdev device. Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- .../hostdev-scsi-vhost-scsi-pci-boot-fail.xml | 41 +++ tests/qemuxml2argvtest.c

Re: [libvirt] [PATCH v2 4/6] qemu: make error messages device specific

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:28PM +0200, Boris Fiuczynski wrote: Changing the error messages to report the problem encountered. Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- src/qemu/qemu_domain.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by:

Re: [libvirt] [PATCH v2 5/6] qemu: refactor mdev validation method signatures

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:29PM +0200, Boris Fiuczynski wrote: Refactoring the method signatures in preparation for checking boot index of the mediated devices. Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- src/qemu/qemu_domain.c | 28 1 file

Re: [libvirt] [PATCH v2 6/6] qemu: support bootindex on vfio-ccw mdev devices

2019-08-27 Thread Ján Tomko
On Tue, Aug 13, 2019 at 05:40:30PM +0200, Boris Fiuczynski wrote: Add support to specify a boot order on vfio-ccw passthrough devices. Signed-off-by: Boris Fiuczynski Reviewed-by: Marc Hartmayer --- src/qemu/qemu_command.c | 4 +++ src/qemu/qemu_domain.c

Re: [libvirt] [BUG] When PLUG a bridge interface to an active VM, the generated LIVE and CONFIG mac address are different

2019-08-27 Thread Ján Tomko
On Tue, Aug 27, 2019 at 02:13:28PM +0200, Michal Privoznik wrote: On 8/22/19 10:43 AM, Xu Yandong (Yandong Xu) wrote: Hi, When plug a bridge interface to an active VM with both LIVE AND CONFIG flags, libvirt generate different mac address to LIVE and CONFIG instance, so After I reboot the VM,

[libvirt] [PATCH 4/4] remote_daemon_dispatch: Don't open code xdr_free()

2019-08-27 Thread Michal Privoznik
At two places we are open coding xdr_free(): remoteRelayDomainEventTunable() and remoteRelayDomainEventJobCompleted(). Bot of these functions use make_nonnull_domain() to put domain IDs tuple into return structure and then continue encoding the rest of structure. If that fails, they call

[libvirt] [PATCH 1/4] remote_daemon_dispatch: Check for limit properly in remoteDispatchConnectGetAllDomainStats

2019-08-27 Thread Michal Privoznik
The return structure is a bit complicated and that's why it is very easy to check for RPC limits incorrectly. The structure is an array of remote_domain_stats_record structures with the limit of REMOTE_DOMAIN_LIST_MAX. The latter structure then poses a different limit on typed params:

[libvirt] [PATCH 2/4] remote: Check for limits when encoding typed params

2019-08-27 Thread Michal Privoznik
The same way we check for limits when decoding typed parameters (virTypedParamsDeserialize()) we should do the same check when serializing them so that we don't put onto the wire more than our limits allow. Surprisingly, we were doing so explicitly in some places but not all of them.

[libvirt] [PATCH 0/4] remote: Enforce RPC limits when encoding typed params

2019-08-27 Thread Michal Privoznik
Couple of bug fixes here. Michal Prívozník (4): remote_daemon_dispatch: Check for limit properly in remoteDispatchConnectGetAllDomainStats remote: Check for limits when encoding typed params remote_daemon_dispatch: Don't leak @ret on failure remote_daemon_dispatch: Don't open code

Re: [libvirt] [PATCH v2 10/16] qemu: add qemuSecurityStartVhostUserGPU helper

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:54PM -0400, Cole Robinson wrote: From: Marc-André Lureau See function documentation. Used in a following patch. Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- src/qemu/qemu_security.c | 47

Re: [libvirt] [jenkins-ci PATCH 7/7] Switch osinfo-db-tools builds to Meson

2019-08-27 Thread Andrea Bolognani
On Mon, 2019-08-26 at 16:02 +0300, Fabiano Fidêncio wrote: > On Mon, Aug 26, 2019 at 11:45 AM Andrea Bolognani wrote: > > Let me know if you're okay with me making the changes I suggested > > before pushing, and let's coordinate so that they get applied as > > closely as possible to the moment

[libvirt] [jenkins-ci PATCH] Use shallow git clones for projects

2019-08-27 Thread Erik Skultety
First of all, we don't need the full history for builds and we can save some time during the prepare phase. The disk footprint is about 5x smaller, but the most important thing is the repo clone duration difference e.g. in libvirt's case is quite significant: full history: real 3m45.236s user

Re: [libvirt] [jenkins-ci PATCH] Use shallow git clones for projects

2019-08-27 Thread Erik Skultety
On Tue, Aug 27, 2019 at 02:12:12PM +0100, Daniel P. Berrangé wrote: > On Tue, Aug 27, 2019 at 02:56:02PM +0200, Erik Skultety wrote: > > First of all, we don't need the full history for builds and we can save > > some time during the prepare phase. The disk footprint is about 5x > > smaller, but

Re: [libvirt] [jenkins-ci PATCH] Use shallow git clones for projects

2019-08-27 Thread Daniel P . Berrangé
On Tue, Aug 27, 2019 at 03:39:53PM +0200, Erik Skultety wrote: > On Tue, Aug 27, 2019 at 02:12:12PM +0100, Daniel P. Berrangé wrote: > > On Tue, Aug 27, 2019 at 02:56:02PM +0200, Erik Skultety wrote: > > > First of all, we don't need the full history for builds and we can save > > > some time

Re: [libvirt] [PATCH v3 43/48] api: introduce virConnectSetIdentity for pasing uid, gid, selinux info

2019-08-27 Thread Daniel P . Berrangé
On Tue, Jul 30, 2019 at 08:32:00PM +0200, Andrea Bolognani wrote: > On Mon, 2019-07-29 at 18:11 +0100, Daniel P. Berrangé wrote: > > api: introduce virConnectSetIdentity for pasing uid, gid, selinux info > > s/pasing/passing/ > > > When using the fine grained access control mechanism for APIs,

Re: [libvirt] [jenkins-ci PATCH] Use shallow git clones for projects

2019-08-27 Thread Daniel P . Berrangé
On Tue, Aug 27, 2019 at 02:56:02PM +0200, Erik Skultety wrote: > First of all, we don't need the full history for builds and we can save > some time during the prepare phase. The disk footprint is about 5x > smaller, but the most important thing is the repo clone duration > difference e.g. in

[libvirt] Plans for next release

2019-08-27 Thread Daniel Veillard
With the end of month coming soon, time to plan for next release, I suggest to enter freeze tomorrow wed 28, the have an RC2 on Friday and if everything looks good next Monday we can push 5.7.0 Hope this works for everybody, Daniel -- Daniel Veillard | Red Hat Developers Tools

[libvirt] [PATCH 2/9] util: make a couple virNetDevMacVlan*() functions public

2019-08-27 Thread Laine Stump
In virNetDevMacVLanOpen(), The "retries" arg has been removed and the value hardcoded as 10, since previously the function was only called from one place, so it was always 10. Signed-off-by: Laine Stump --- src/util/virnetdevmacvlan.c | 12 +--- src/util/virnetdevmacvlan.h | 9

[libvirt] [PATCH 1/9] util: new function virNetDevMacVLanIsMacvtap()

2019-08-27 Thread Laine Stump
This function returns T if the given name is a macvtap device. This is determined by 1) getting the ifindex of the device with that name (if there is one), and 2) checking for existence of /dev/tapXX, where "XX" is the ifindex learned in (1). It's also possible to learn this by getting a netlink

[libvirt] [PATCH 0/9] support use of precreated tap devices from unprivileged libvirtd

2019-08-27 Thread Laine Stump
This resolves https://bugzilla.redhat.com/1723367 It has become more popular to run libvirtd in an unprivileged environment (e.g. inside a container), but until now the only possible types of network connection for a qemu started by an unprivileged libvirtd were: 1) a usermode slirp connection

[libvirt] [PATCH] news: Mention new --precopy-bandwidth parameter for virsh migrate

2019-08-27 Thread Jim Fehlig
Signed-off-by: Jim Fehlig --- docs/news.xml | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index c6580e4e72..990c84274d 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -65,6 +65,16 @@ + + + virsh: Support

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

2019-08-27 Thread John Snow
On 8/23/19 5:22 AM, Vladimir Sementsov-Ogievskiy wrote: > 14.08.2019 13:07, Vladimir Sementsov-Ogievskiy wrote: >> To get rid of implicit filters related workarounds in future let's >> deprecate them now. > > Interesting, could we deprecate implicit filter without deprecation of > unnecessity

[libvirt] [PATCH v4 1/4] lib: minor fixes to virDomainGetGuestInfo docs

2019-08-27 Thread Jonathon Jongsma
Due to a typo, some of the field names didn't have closing quotes and the information about the hostname was omitted. Signed-off-by: Jonathon Jongsma --- src/libvirt-domain.c | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/libvirt-domain.c

[libvirt] [PATCH v4 4/4] virsh: alphabetize domain commands in man page

2019-08-27 Thread Jonathon Jongsma
It appears that all commands were originally fully in alphabetical order but as new commands were added, they were sometimes inserted out of order. Fix up all domain commands so that they're in alphabetical order again. Signed-off-by: Jonathon Jongsma --- NOTE: if this patch is too invasive,

[libvirt] [PATCH v4 3/4] virsh: add 'guestinfo' command

2019-08-27 Thread Jonathon Jongsma
The 'guestinfo' command uses the new virDomainGetGuestInfo() API to query information about the specified domain and print it out for the user. The output is modeled roughly on the 'domstats' command. Signed-off-by: Jonathon Jongsma --- tools/virsh-domain.c | 85

[libvirt] [PATCH v4 2/4] qemu: guestinfo: handle unsupported agent commands

2019-08-27 Thread Jonathon Jongsma
When we're collecting guest information, older agents may not support all agent commands. In the case where the user requested all info types (i.e. types == 0), ignore unsupported command errors and gather as much information as possible. If the agent command failed for some other reason, or if

[libvirt] [PATCH 5/9] conf: new "managed" attribute for target dev of

2019-08-27 Thread Laine Stump
Although has always been able to use an existing tap device, this is just a coincidence due to the fact that the same ioctl is used to create a new tap device or get a handle to an existing device. Even then, once we have the handle to the device, we still insist on doing extra setup to it

[libvirt] [PATCH 7/9] qemu: support unmanaged macvtap devices with

2019-08-27 Thread Laine Stump
Traditionally, macvtap devices are supported using , but that type requires specifying a source device name and macvtap mode which can't be altered after the initial device creation (and may not even be available to the management software that's creating the XML config to feed to libvirt). But

[libvirt] [PATCH 4/9] conf: use virXMLFormatElement for interface

2019-08-27 Thread Laine Stump
This will simplify addition of another attribute to the element Signed-off-by: Laine Stump --- src/conf/domain_conf.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index b7a342bb91..f21731b5f6 100644 ---

[libvirt] [PATCH 6/9] qemu: support unmanaged target tap dev for

2019-08-27 Thread Laine Stump
If managed='no', then the tap device must already exist, and setting of MAC address and online status (IFF_UP) is skipped. NB: we still set IFF_VNET_HDR and IFF_MULTI_QUEUE as appropriate, because those bits must be properly set in the TUNSETIFF we use to set the tap device name of the handle

[libvirt] [PATCH 9/9] docs: update news file

2019-08-27 Thread Laine Stump
with info about support for using precreated tap/macvtap devices in unprivileged libvirtd. Signed-off-by: Laine Stump --- docs/news.xml | 13 + 1 file changed, 13 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index c6580e4e72..be51d6c953 100644 --- a/docs/news.xml +++

[libvirt] [PATCH 3/9] qemu: reorganize qemuInterfaceEthernetConnect()

2019-08-27 Thread Laine Stump
This just moves around a few things in qemuInterfaceConnect() with no functional difference (except that a few failures that would have previously resulted in a "success" audit log will now properly produce a "fail" audit). The change is so that adding support for unmanaged tap/macvtap devices

[libvirt] [PATCH 8/9] qemu: explicitly delete standard tap devices only on platforms that require it

2019-08-27 Thread Laine Stump
libvirt creates its tap devices without the IFF_PERSIST flag, so they will be automatically deleted when qemu is finished with them. In the case of tap devices created outside of libvirt, if the creating entity wants the devices to be deleted, it will also omit IFF_PERSIST, but if it wants them to

Re: [libvirt] [PATCH 2/4] remote: Check for limits when encoding typed params

2019-08-27 Thread Jonathon Jongsma
Nice improvement. Reviewed-by: Jonathon Jongsma On Tue, 2019-08-27 at 14:05 +0200, Michal Privoznik wrote: > The same way we check for limits when decoding typed parameters > (virTypedParamsDeserialize()) we should do the same check when > serializing them so that we don't put onto the wire

Re: [libvirt] [PATCH 1/4] remote_daemon_dispatch: Check for limit properly in remoteDispatchConnectGetAllDomainStats

2019-08-27 Thread Jonathon Jongsma
Looks correct to me. Good catch. Reviewed-by: Jonathon Jongsma On Tue, 2019-08-27 at 14:05 +0200, Michal Privoznik wrote: > The return structure is a bit complicated and that's why it is > very easy to check for RPC limits incorrectly. The structure is > an array of remote_domain_stats_record

Re: [libvirt] [PATCH 0/4] remote: Enforce RPC limits when encoding typed params

2019-08-27 Thread Erik Skultety
On Tue, Aug 27, 2019 at 02:05:05PM +0200, Michal Privoznik wrote: > Couple of bug fixes here. Reviewed-by: Erik Skultety -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] Generate status of the backend implementation in storage.html

2019-08-27 Thread Cedric Bosdonnat
On Tue, 2019-08-27 at 16:38 +0200, Michal Privoznik wrote: > On 8/27/19 11:17 AM, Cedric Bosdonnat wrote: > > Since it helps a user to know which of the storage backends support > > what > > operation, include an autogenerated matrix showing it in the docs. > > --- > > .gitignore

Re: [libvirt] [PATCH v2 01/16] qemu: extract out qemuFetchConfigs from firmware

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:45PM -0400, Cole Robinson wrote: From: Marc-André Lureau The same config files disovery & priority rules are used for vhost-user backends. Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- src/qemu/Makefile.inc.am | 2 + src/qemu/qemu_configs.c

Re: [libvirt] [PATCH v2 06/16] qemu: check that qemu is vhost-user-vga capable

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:50PM -0400, Cole Robinson wrote: From: Marc-André Lureau To support virtio VGA with vhost-user, vhost-user-vga device is necessary. Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- src/qemu/qemu_domain.c | 11 --- 1 file changed, 8

Re: [libvirt] [PATCH v2 05/16] qemu: add vhost-user-gpu capabilities checks

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:49PM -0400, Cole Robinson wrote: From: Marc-André Lureau Those new devices are merged for QEMU 4.1. Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- src/qemu/qemu_capabilities.c | 4 src/qemu/qemu_capabilities.h

Re: [libvirt] [PATCH v2 04/16] qemu-cgroup: allow accel rendernode access

2019-08-27 Thread Ján Tomko
On Fri, Aug 23, 2019 at 12:21:48PM -0400, Cole Robinson wrote: From: Marc-André Lureau Signed-off-by: Marc-André Lureau Signed-off-by: Cole Robinson --- src/qemu/qemu_cgroup.c | 24 1 file changed, 24 insertions(+) Reviewed-by: Ján Tomko Jano signature.asc

Re: [libvirt] [PATCH 4/4] rpm: don't enable socket activation in upgrade if --listen present

2019-08-27 Thread Daniel P . Berrangé
On Mon, Aug 26, 2019 at 04:21:34PM +0200, Ján Tomko wrote: > On Fri, Aug 23, 2019 at 04:11:43PM +0100, Daniel P. Berrangé wrote: > > Currently during RPM upgrade we restart libvirtd and unconditionally > > enable use of systemd socket activation for the UNIX sockets. > > > > If the user had

[libvirt] [PATCH 1/6] tests: add vfio-ap mdev tests

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- .../hostdev-subsys-mdev-vfio-ap-boot-fail.xml | 23 + .../hostdev-subsys-mdev-vfio-ap.args | 28

[libvirt] [PATCH 5/6] qemu: refactor mdev validation method signatures

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Refactoring the method signatures in preparation for checking boot index of the mediated devices. Reviewed-by: Ján Tomko Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- src/qemu/qemu_domain.c | 28

[libvirt] [PATCH 2/6] tests: add vhost scsi hostdev boot unsupported test

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Adding a failure test for booting from a vhost scsi hostdev device. Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- .../hostdev-scsi-vhost-scsi-pci-boot-fail.xml | 41 +++ tests/qemuxml2argvtest.c

[libvirt] [PATCH 6/6] qemu: support bootindex on vfio-ccw mdev devices

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Add support to specify a boot order on vfio-ccw passthrough devices. Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- src/qemu/qemu_command.c | 4 +++ src/qemu/qemu_domain.c| 26

[libvirt] [PATCH 3/6] qemu: move hostdev boot validation into domain validation

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Moving the hostdev boot support validation from the command line generator code into the domain validation code. Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- src/qemu/qemu_command.c | 12

[libvirt] [PATCH 0/6] support boot from vfio-ccw mdev devices

2019-08-27 Thread Bjoern Walk
v2 -> v3: * use real QEMU capabilities data for tests Boris Fiuczynski (6): tests: add vfio-ap mdev tests tests: add vhost scsi hostdev boot unsupported test qemu: move hostdev boot validation into domain validation qemu: make error messages device specific qemu: refactor mdev

[libvirt] [PATCH 4/6] qemu: make error messages device specific

2019-08-27 Thread Bjoern Walk
From: Boris Fiuczynski Changing the error messages to report the problem encountered. Reviewed-by: Ján Tomko Reviewed-by: Marc Hartmayer Signed-off-by: Bjoern Walk Signed-off-by: Boris Fiuczynski --- src/qemu/qemu_domain.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

Re: [libvirt] [PATCH v2 6/6] qemu: support bootindex on vfio-ccw mdev devices

2019-08-27 Thread Bjoern Walk
Ján Tomko [2019-08-27, 01:51PM +0200]: > On Tue, Aug 13, 2019 at 05:40:30PM +0200, Boris Fiuczynski wrote: > > diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c > > index 6fa9a26b64..6f672184be 100644 > > --- a/tests/qemuxml2xmltest.c > > +++ b/tests/qemuxml2xmltest.c > > @@ -958,6

Re: [libvirt] [PATCH] virsh: Add support for setting bandwidth in migrate

2019-08-27 Thread Michal Privoznik
On 8/27/19 12:09 AM, Jim Fehlig wrote: Commit f15789ec added support for setting postcopy migration bandwidth to the migrate subcommand. This change does the same for standard migration. Signed-off-by: Jim Fehlig --- I used the term 'standard migration' in the commit message but 'pre-copy' in

Re: [libvirt] [PATCH v2 6/6] qemu: support bootindex on vfio-ccw mdev devices

2019-08-27 Thread Peter Krempa
On Tue, Aug 27, 2019 at 16:22:02 +0200, Bjoern Walk wrote: > Ján Tomko [2019-08-27, 01:51PM +0200]: > > On Tue, Aug 13, 2019 at 05:40:30PM +0200, Boris Fiuczynski wrote: > > > diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c > > > index 6fa9a26b64..6f672184be 100644 > > > ---

Re: [libvirt] [PATCH] Generate status of the backend implementation in storage.html

2019-08-27 Thread Michal Privoznik
On 8/27/19 11:17 AM, Cedric Bosdonnat wrote: Since it helps a user to know which of the storage backends support what operation, include an autogenerated matrix showing it in the docs. --- .gitignore | 1 + docs/Makefile.am | 9 +++-- docs/apibuild.py

Re: [libvirt] [PATCH 9/9] virhostdevtest: s/virReportError/fprintf/

2019-08-27 Thread Michal Privoznik
On 8/26/19 2:38 PM, Ján Tomko wrote: On Mon, Aug 12, 2019 at 01:54:25PM +0200, Michal Privoznik wrote: If a test fails, it's stderr is caught in the logs. That's how our CI works. But virReportError() is not. Where are you missing the error message? If you run the tested function through

[libvirt] [jenkins-ci PATCH v2] guests: Introduce a var to enable shallow git clones for projects

2019-08-27 Thread Erik Skultety
First of all, we don't need the full history for builds and we can save some time during the prepare phase. The disk footprint is about 5x smaller, but the most important thing is the repo clone duration difference e.g. in libvirt's case is quite significant: full history: real 3m45.236s user