Re: [libvirt] [RFC PATCH 00/17] Add vhost-user-gpu support

2018-08-14 Thread Marc-André Lureau
ping On Fri, Jul 13, 2018 at 3:28 PM wrote: > > From: Marc-André Lureau > > Hi, > > This series of patches add support for running a virtio GPU in a > seperate process, using vhost-user. > > The QEMU series "[PATCH v4 00/29] vhost-user for input & GPU" is still > under review, and will hopefully

Re: [libvirt] [PATCH 2/2] esx:Fix esxDomainGetMaxVcpus to return correct vcpus

2018-08-14 Thread Marcos Paulo de Souza
On Mon, Aug 13, 2018 at 11:21:05PM +0200, Matthias Bolte wrote: > 2018-08-10 5:56 GMT+02:00 Marcos Paulo de Souza : > > Before this change, esxDomainGetMaxVcpus returned -1, which in turn > > fails in libvirt. This commit reimplements esxDomainGetMaxVcpus instead > > of calling

Re: [libvirt] [PATCH 00/11] More virAuthGet* cleanups

2018-08-14 Thread Marcos Paulo de Souza
On Tue, Aug 14, 2018 at 01:07:45PM -0400, John Ferlan wrote: > In a case of review collision, Michal pushed Marcos Paulo de Souza's > series after I had reviewed, but before seeing my review (oh well): > > https://www.redhat.com/archives/libvir-list/2018-August/msg00874.html > > Rather than

Re: [libvirt] [PATCH 1/5] virauth.c: Check for valid auth callback

2018-08-14 Thread Marcos Paulo de Souza
On Tue, Aug 14, 2018 at 10:53:50AM -0400, John Ferlan wrote: > > > On 08/02/2018 08:27 PM, Marcos Paulo de Souza wrote: > > Instead of adding the same check for every drivers, execute the checks > > in virAuthGetUsername and virAuthGetPassword. These funtions are called > > when user is not set

Re: [libvirt] [PATCH] news: Add support for MBA (Memory Bandwidth Allocation)

2018-08-14 Thread John Ferlan
On 08/14/2018 01:05 AM, bing@intel.com wrote: > From: Bing Niu > > Signed-off-by: Bing Niu > --- > docs/news.xml | 9 + > 1 file changed, 9 insertions(+) > Reviewed-by: John Ferlan (and pushed) Tks, - John -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v3 2/3] check-file-access: Allow specifying action

2018-08-14 Thread John Ferlan
On 07/27/2018 11:24 AM, Michal Privoznik wrote: > The check-file-access.pl script is used to match access list > generated by virtestmock against whitelisted rules stored in > file_access_whitelist.txt. So far the rules are in form: > > $path: $progname: $testname > > This is not sufficient

Re: [libvirt] [PATCH v3 3/3] virtestmock: Track action

2018-08-14 Thread John Ferlan
On 07/27/2018 11:24 AM, Michal Privoznik wrote: > As advertised in the previous commit, we need the list of > accessed files to also contain action that caused the $path to > appear on the list. Not only this enables us to fine tune our > white list rules it also helps us to see why $path is

Re: [libvirt] [PATCH v3 1/3] qemuxml2argvtest: Set more fake drivers

2018-08-14 Thread John Ferlan
On 07/27/2018 12:06 PM, Michal Privoznik wrote: > On 07/27/2018 05:29 PM, Daniel P. Berrangé wrote: >> On Fri, Jul 27, 2018 at 05:24:45PM +0200, Michal Privoznik wrote: >>> So far we are setting only fake secret and storage drivers. >>> Therefore if the code wants to call a public NWFilter API

[libvirt] [PATCH 11/11] rpc: Don't overwrite virAuthGet{Username|Password}Path errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. Signed-off-by: John Ferlan --- src/rpc/virnetlibsshsession.c | 2 -- src/rpc/virnetsshsession.c| 5 + 2 files changed, 1 insertion(+), 6 deletions(-) diff --git

[libvirt] [PATCH 10/11] test: Don't overwrite virAuthGet{Username|Password} errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. Signed-off-by: John Ferlan --- src/test/test_driver.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/src/test/test_driver.c b/src/test/test_driver.c

[libvirt] [PATCH 09/11] xenapi: Don't overwrite virAuthGet{Username|Password} errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. This means that we will no longer overwrite the error from the API. Signed-off-by: John Ferlan --- src/xenapi/xenapi_driver.c | 16 1 file changed, 4 insertions(+), 12

[libvirt] [PATCH 07/11] hyperv: Don't overwrite virAuthGet{Username|Password} errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. This means that we will no longer overwrite the error from the API. Signed-off-by: John Ferlan --- src/hyperv/hyperv_driver.c | 16 +--- 1 file changed, 5 insertions(+), 11

[libvirt] [PATCH 01/11] util: Alter virAuthGet*Path API to check valid parameters

2018-08-14 Thread John Ferlan
Before trying to dereference @auth, let's ensure it's valid. Signed-off-by: John Ferlan --- src/util/virauth.c | 12 1 file changed, 12 insertions(+) diff --git a/src/util/virauth.c b/src/util/virauth.c index 759b8f0cd3..1b9e4b6704 100644 --- a/src/util/virauth.c +++

[libvirt] [PATCH 00/11] More virAuthGet* cleanups

2018-08-14 Thread John Ferlan
In a case of review collision, Michal pushed Marcos Paulo de Souza's series after I had reviewed, but before seeing my review (oh well): https://www.redhat.com/archives/libvir-list/2018-August/msg00874.html Rather than worry about it, here's a series of changes that I described in my review:

[libvirt] [PATCH 08/11] phyp: Don't overwrite virAuthGet{Username|Password} errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. This means that we will no longer overwrite the error from the API. Signed-off-by: John Ferlan --- src/phyp/phyp_driver.c | 16 1 file changed, 4 insertions(+), 12

[libvirt] [PATCH 05/11] util: Alter virAuthGet*Path API to generate auth->cb error

2018-08-14 Thread John Ferlan
Rather than forcing the caller to generate an error, let's generate the Username or Password error message failure if the auth->cb fails. This is the last error path that needs a specific message for various callers. Signed-off-by: John Ferlan --- src/util/virauth.c | 10 -- 1 file

[libvirt] [PATCH 06/11] esx: Don't overwrite virAuthGet{Username|Password} errors

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path API's generate all the error messages we can remove them from the callers. This means that we will no longer overwrite the error from the API. Signed-off-by: John Ferlan --- src/esx/esx_driver.c | 27 +++ 1 file changed, 7 insertions(+), 20

[libvirt] [PATCH 04/11] util: Alter virAuthGet*Path API return processing

2018-08-14 Thread John Ferlan
If we never find the valid credtype in the list, then we'd return NULL without an error signaled forcing the caller to generate one that will probably be incorrect. Let's be specific. Signed-off-by: John Ferlan --- src/util/virauth.c | 13 + 1 file changed, 9 insertions(+), 4

[libvirt] [PATCH 02/11] util: Alter virAuthGet*Path API to check valid callback

2018-08-14 Thread John Ferlan
Before trying to call @auth->cb, let's ensure it exists. Signed-off-by: John Ferlan --- src/util/virauth.c | 12 1 file changed, 12 insertions(+) diff --git a/src/util/virauth.c b/src/util/virauth.c index 1b9e4b6704..7e7098317d 100644 --- a/src/util/virauth.c +++

[libvirt] [PATCH 03/11] util: Remove invalid parameter checks from virAuthGet{Username|Password}

2018-08-14 Thread John Ferlan
Now that the virAuthGet*Path helpers make the checks, we can remove them from here. Reviewed-by: John Ferlan Signed-off-by: John Ferlan --- src/util/virauth.c | 14 +- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/util/virauth.c b/src/util/virauth.c index

Re: [libvirt] [PATCH] rpc: Initialize a worker pool for max_workers=0 as well

2018-08-14 Thread John Ferlan
On 08/07/2018 07:38 AM, Marc Hartmayer wrote: > Semantically, there is no difference between an uninitialized worker > pool and an initialized worker pool with zero workers. Let's allow the > worker pool to be initialized for max_workers=0 as well then which > makes the API more symmetric and

Re: [libvirt] [PATCH 0/5] Unify check for auth and auth->cb

2018-08-14 Thread Michal Privoznik
On 08/03/2018 02:27 AM, Marcos Paulo de Souza wrote: > Hi guys, > > in some drivers, auth and auth->cb are checked in connectOpen function, while > in xenapi, > only auth is checked, which that could lead to a problem if cb if invalid. In > phyp, auth and auth->cb are checked twice, in getUser

Re: [libvirt] [jenkins-ci PATCH 0/2] Run 'make syntax-check' for libvirt-dbus

2018-08-14 Thread Ján Tomko
On Tue, Aug 14, 2018 at 05:35:32PM +0200, Andrea Bolognani wrote: This requires https://www.redhat.com/archives/libvir-list/2018-August/msg00863.html to be merged first. Andrea Bolognani (2): guests: Install flake8 for libvirt-dbus projects: Run 'make syntax-check' for libvirt-dbus

Re: [libvirt] [dbus PATCH 1/3] tests: Point flake8 to the files it needs to check

2018-08-14 Thread Ján Tomko
On Tue, Aug 14, 2018 at 05:30:44PM +0200, Andrea Bolognani wrote: Recent versions of the tool will look for Python scripts on their own, but when performing a VPATH build it's very likely the resulting list will be empty and nothing will actually be checked. Point flake8 to the files explicitly

Re: [libvirt] [dbus PATCH 0/3] Fix and improve syntax-check

2018-08-14 Thread Ján Tomko
On Tue, Aug 14, 2018 at 05:30:43PM +0200, Andrea Bolognani wrote: Andrea Bolognani (3): tests: Point flake8 to the files it needs to check configure: Detect flake8 automatically configure: Find flake8 on FreeBSD Makefile.am | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1

Re: [libvirt] [dbus PATCH 2/3] configure: Detect flake8 automatically

2018-08-14 Thread Pino Toscano
On Tuesday, 14 August 2018 17:30:45 CEST Andrea Bolognani wrote: > This also allows the user to run a custom flake8 > by setting FLAKE8 in the environment. > > Signed-off-by: Andrea Bolognani > --- > Makefile.am | 2 +- > configure.ac | 1 + > 2 files changed, 2 insertions(+), 1 deletion(-) >

[libvirt] [jenkins-ci PATCH 1/2] guests: Install flake8 for libvirt-dbus

2018-08-14 Thread Andrea Bolognani
It is required to run 'make syntax-check'. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 7 +++ guests/vars/projects/libvirt-dbus.yml | 1 + 2 files changed, 8 insertions(+) diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index

[libvirt] [jenkins-ci PATCH 0/2] Run 'make syntax-check' for libvirt-dbus

2018-08-14 Thread Andrea Bolognani
This requires https://www.redhat.com/archives/libvir-list/2018-August/msg00863.html to be merged first. Andrea Bolognani (2): guests: Install flake8 for libvirt-dbus projects: Run 'make syntax-check' for libvirt-dbus guests/vars/mappings.yml | 7 +++

[libvirt] [jenkins-ci PATCH 2/2] projects: Run 'make syntax-check' for libvirt-dbus

2018-08-14 Thread Andrea Bolognani
Now that we have the necessary tools installed, we can run the extra checks for every build. Signed-off-by: Andrea Bolognani --- projects/libvirt-dbus.yaml | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/projects/libvirt-dbus.yaml b/projects/libvirt-dbus.yaml

[libvirt] [dbus PATCH 3/3] configure: Find flake8 on FreeBSD

2018-08-14 Thread Andrea Bolognani
The newest version available from ports at the moment is built against Python 3.6 and is thus installed as flake8-3.6 on the platform. This makes syntax-check work out of the box on FreeBSD. Signed-off-by: Andrea Bolognani --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[libvirt] [dbus PATCH 2/3] configure: Detect flake8 automatically

2018-08-14 Thread Andrea Bolognani
This also allows the user to run a custom flake8 by setting FLAKE8 in the environment. Signed-off-by: Andrea Bolognani --- Makefile.am | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a0696bf..c6d09e6 100644 ---

[libvirt] [dbus PATCH 1/3] tests: Point flake8 to the files it needs to check

2018-08-14 Thread Andrea Bolognani
Recent versions of the tool will look for Python scripts on their own, but when performing a VPATH build it's very likely the resulting list will be empty and nothing will actually be checked. Point flake8 to the files explicitly to avoid the issue. Signed-off-by: Andrea Bolognani ---

[libvirt] [dbus PATCH 0/3] Fix and improve syntax-check

2018-08-14 Thread Andrea Bolognani
Andrea Bolognani (3): tests: Point flake8 to the files it needs to check configure: Detect flake8 automatically configure: Find flake8 on FreeBSD Makefile.am | 2 +- configure.ac | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) -- 2.17.1 -- libvir-list mailing list

Re: [libvirt] [PATCHv2 09/62] qemu: hotplug: Prepare disk source in qemuDomainAttachDeviceDiskLive

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:43PM +0200, Peter Krempa wrote: Move the preparation steps from qemuDomainAttachDiskGeneric up into qemuDomainAttachDeviceDiskLive so that also media changing can use the prepared file. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 11 ++- 1

Re: [libvirt] [PATCHv2 08/62] qemu: hotplug: consolidate media change code paths

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:42PM +0200, Peter Krempa wrote: Use qemuDomainAttachDeviceDiskLive to change the media in qemuDomainChangeDiskLive as the former function already does all the necessary steps to prepare the new medium. This also allows us to turn qemuDomainChangeEjectableMedia

Re: [libvirt] [PATCH 1/5] virauth.c: Check for valid auth callback

2018-08-14 Thread John Ferlan
On 08/02/2018 08:27 PM, Marcos Paulo de Souza wrote: > Instead of adding the same check for every drivers, execute the checks > in virAuthGetUsername and virAuthGetPassword. These funtions are called > when user is not set in the URI. > > Signed-off-by: Marcos Paulo de Souza > --- >

Re: [libvirt] [dbus PATCH 0/2] configure: Various fixes

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 01:55:25PM +0200, Andrea Bolognani wrote: Andrea Bolognani (2): configure: Fix quoting configure: Call PKG_CHECK_MODULES() correctly configure.ac | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) Reviewed-by: Ján Tomko Jano

Re: [libvirt] [PATCHv2 00/62] qemu: Add support for -blockdev

2018-08-14 Thread no-reply
Hi, This series was run against 'syntax-check' test by patchew.org, which failed, please find the details below: Type: series Message-id: cover.1534173734.git.pkre...@redhat.com Subject: [libvirt] [PATCHv2 00/62] qemu: Add support for -blockdev === TEST SCRIPT BEGIN === #!/bin/bash # Testing

Re: [libvirt] [PATCH 0/4] cpu: modularize the CPU map data file

2018-08-14 Thread Jiri Denemark
On Tue, Aug 14, 2018 at 08:21:40 -0400, John Ferlan wrote: > > > On 08/14/2018 05:00 AM, Jiri Denemark wrote: > > On Wed, Aug 01, 2018 at 18:02:28 +0100, Daniel P. Berrangé wrote: > >> Currently we have a cpu_map.xml file that contains all the features and > >> CPU models for all architectures

Re: [libvirt] [PATCHv2 07/62] Revert "qemu: monitor: Add the 'query-nodes' argument for query-blockstats"

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:41PM +0200, Peter Krempa wrote: Turns out that 'query-nodes' is not what we want and the 'query-blockstats' command was in fact buggy. Revert the new field since it's not needed. This reverts commit 50edca1331298bfcb2622e8fe588d493aff9ab68. Signed-off-by: Peter

Re: [libvirt] [PATCH 2/4] cpu: push more parsing logic into common code

2018-08-14 Thread Jiri Denemark
On Wed, Aug 01, 2018 at 18:02:30 +0100, Daniel P. Berrangé wrote: > The x86 and ppc impls both duplicate some logic when parsing CPU > features. Change the callback signature so that this duplication can be > pushed up a level to common code. > > Signed-off-by: Daniel P. Berrangé > --- >

Re: [libvirt] [dbus PATCH] tests: Remove unused import

2018-08-14 Thread Ján Tomko
On Tue, Aug 14, 2018 at 04:16:04PM +0200, Andrea Bolognani wrote: This fixes 'make syntax-check'. The issue was introduced by commit 7da2b425a8cc. Reported-by: Ján Tomko Signed-off-by: Andrea Bolognani --- tests/test_nodedev.py | 1 - 1 file changed, 1 deletion(-) Reviewed-by: Ján Tomko

Re: [libvirt] [dbus PATCH 1/4] tests: Drop pytest.mark.usefixtures from test_nodedev

2018-08-14 Thread Andrea Bolognani
On Mon, 2018-08-13 at 14:11 +0200, Ján Tomko wrote: > On Fri, Jul 27, 2018 at 02:37:38PM +0200, Andrea Bolognani wrote: > > -@pytest.mark.usefixtures("node_device_create") > > class TestNodeDevice(libvirttest.BaseTestClass): > > """ Tests for methods and properties of the NodeDevice interface

[libvirt] [dbus PATCH] tests: Remove unused import

2018-08-14 Thread Andrea Bolognani
This fixes 'make syntax-check'. The issue was introduced by commit 7da2b425a8cc. Reported-by: Ján Tomko Signed-off-by: Andrea Bolognani --- tests/test_nodedev.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/test_nodedev.py b/tests/test_nodedev.py index 082cf0b..5c8206e 100755 ---

Re: [libvirt] [PATCHv2 06/62] tests: qemucapabilities: Update capability data for qemu 3.0.0

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:40PM +0200, Peter Krempa wrote: The diff contains changes from the change of the JSON library reformatting as well as dropping of the preconfig state and adding of the 'qdev' field to output of 'query-blockstats'. After commit

Re: [libvirt] [jenkins-ci PATCH] guests: Install libiscsi for libvirt

2018-08-14 Thread Pavel Hrdina
On Tue, Aug 14, 2018 at 04:03:49PM +0200, Andrea Bolognani wrote: > Since libvirt commit 34a6962c41b4 it's required to > successfully build the RPM packages. > > Signed-off-by: Andrea Bolognani > --- > guests/vars/mappings.yml | 4 > guests/vars/projects/libvirt.yml | 1 + > 2

Re: [libvirt] [PATCHv2 05/62] qemu: monitor: Remove useless 'locked' property from struct qemuDomainDiskInfo

2018-08-14 Thread Ján Tomko
s/useless/unused/ maybe? On Mon, Aug 13, 2018 at 05:59:39PM +0200, Peter Krempa wrote: We don't use it for anything useful so it does not make much sense to extract it. Signed-off-by: Peter Krempa --- src/qemu/qemu_domain.h | 1 - src/qemu/qemu_monitor_json.c | 7 ---

Re: [libvirt] [PATCHv2 04/62] qemu: monitor: Remove unsupported function check for 'block_resize'

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:38PM +0200, Peter Krempa wrote: QEMU supports 'block_resize' since 0.14 so we don't need to do explicit checking. Additionally the caller did not use the different value at all. Signed-off-by: Peter Krempa --- src/qemu/qemu_monitor_json.c | 7 --- 1 file

[libvirt] [jenkins-ci PATCH] guests: Install libiscsi for libvirt

2018-08-14 Thread Andrea Bolognani
Since libvirt commit 34a6962c41b4 it's required to successfully build the RPM packages. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 4 guests/vars/projects/libvirt.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/guests/vars/mappings.yml

Re: [libvirt] [PATCHv2 03/62] qemu: Improve errors in qemuDomainBlockResize

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:37PM +0200, Peter Krempa wrote: Remove the pointless "empty path" check and use a better error message if the disk was not found. Signed-off-by: Peter Krempa --- src/qemu/qemu_driver.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) Reviewed-by: Ján

Re: [libvirt] [PATCH v2] libvirt_iohelper: record the libvirt_iohelper's error message at virFileWrapperFdFree

2018-08-14 Thread Michal Privoznik
On 07/23/2018 02:22 PM, xinhua.Cao wrote: > Currently iohelper's error log is recorded in virFileWrapperFdClose. > In qemuDomainSaveMemory, it usually fails at qemuMigrationSrcToFile, > and then goto cleanup, so the iohelper error log is not recorded, > and so is the another placement. We now

Re: [libvirt] [PATCHv2 02/62] tests: qemumonitorjson: Simplify debugging of 'blockInfo' test

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:36PM +0200, Peter Krempa wrote: Print the differences in case when the expected data does not match. Signed-off-by: Peter Krempa --- tests/qemumonitorjsontest.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) Reviewed-by: Ján Tomko

Re: [libvirt] [PATCHv2 01/62] qemu: process: Fix alias for disk-tray-moved event

2018-08-14 Thread Ján Tomko
On Mon, Aug 13, 2018 at 05:59:35PM +0200, Peter Krempa wrote: Currently we'd report the alias of the drive which is backing the cdrom rather than the device itself: $ virsh event ds tray-change --loop event 'tray-change' for domain ds disk drive-ide0-0-1: opened event 'tray-change' for domain

Re: [libvirt] [PATCH 0/7] Remove arbitrary limit on socket_id/core_id

2018-08-14 Thread Michal Privoznik
On 08/14/2018 11:07 AM, Andrea Bolognani wrote: > See patch 6 for the explanation; the previous 5 patches > are cleanups. > > I had to snip out some patches to comply with the message > size limit for the list - ironic, I know. The full commits > can be fetched from > >

Re: [libvirt] [PATCH 1/5] tests: qemuxml2argvmock: Don't mock virCommandPassFD

2018-08-14 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 03:21:06PM +0200, Peter Krempa wrote: > This function does not modify the host. It merely puts the file > descriptor into a list in virCommandPtr. Yes & no. It doesn't directly modify the host, but my adding the FD to 'passfd' set, when virCommandFree is run later, it

[libvirt] [PATCH 2/5] qemu: command: Extract opening of TPM backend FDs for mocking purposes

2018-08-14 Thread Peter Krempa
Allow mocking of the file descriptor numbers used for the TPM passthrough mode by extracting the relevant code into an exported function. Signed-off-by: Peter Krempa --- src/qemu/qemu_command.c | 41 +++-- src/qemu/qemu_command.h | 7 +++ 2 files

[libvirt] [PATCH 4/5] qemu: capabilities: Always assume QEMU_CAPS_ADD_FD

2018-08-14 Thread Peter Krempa
The capability was usable since qemu 1.3 so we can remove all the detection code. Signed-off-by: Peter Krempa --- Note that the *replies files need to be renumbered. I've split that to a separate patch for ease of review. Notably because it was done automatically by tests/qemucapsfixreplies.

[libvirt] [PATCH 3/5] tests: qemuxml2argv: modernize TPM passthrough tests

2018-08-14 Thread Peter Krempa
All supported qemus support FD passing so modify the tests to test the proper code path. Signed-off-by: Peter Krempa --- tests/qemuxml2argvdata/tpm-passthrough-crb.args | 5 +++-- tests/qemuxml2argvdata/tpm-passthrough.args | 5 +++-- tests/qemuxml2argvmock.c| 16

[libvirt] [PATCH 0/5] qemu: Get rid of QEMU_CAPS_ADD_FD

2018-08-14 Thread Peter Krempa
The fallout was slightly larger than expected. Peter Krempa (5): tests: qemuxml2argvmock: Don't mock virCommandPassFD qemu: command: Extract opening of TPM backend FDs for mocking purposes tests: qemuxml2argv: modernize TPM passthrough tests qemu: capabilities: Always assume

[libvirt] [PATCH 1/5] tests: qemuxml2argvmock: Don't mock virCommandPassFD

2018-08-14 Thread Peter Krempa
This function does not modify the host. It merely puts the file descriptor into a list in virCommandPtr. Signed-off-by: Peter Krempa --- tests/qemuxml2argvmock.c | 8 1 file changed, 8 deletions(-) diff --git a/tests/qemuxml2argvmock.c b/tests/qemuxml2argvmock.c index

[libvirt] [jenkins-ci PATCH] guests: Remove Fedora 26 specific mapping

2018-08-14 Thread Andrea Bolognani
We dropped Fedora 26 support in commit 9dbfddc3e7d9, but somehow overlooked this bit at the time. Signed-off-by: Andrea Bolognani --- Pushed as trivial. guests/vars/mappings.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index

Re: [libvirt] [PATCH] spec: Enable the iscsi-direct storage driver conditionally

2018-08-14 Thread Pavel Hrdina
On Tue, Aug 14, 2018 at 02:37:44PM +0200, Andrea Bolognani wrote: > Most distributions we build RPMs on don't ship a > recent enough version of libiscsi, so we can't enable > the driver unconditionally. Add an explicit dependency > on the runtime package while at it. > > Signed-off-by: Andrea

Re: [libvirt] [PATCH] spec: Require libiscsi-devel instead of libiscsi

2018-08-14 Thread Andrea Bolognani
On Tue, 2018-08-14 at 14:18 +0200, Pavel Hrdina wrote: > This change is correct but it's not good enough to fix all the issues in > specfile related to iscsi-direct, I'll post a patch in a minute that > fixes remaining issues including this one.

[libvirt] [PATCH] spec: Enable the iscsi-direct storage driver conditionally

2018-08-14 Thread Andrea Bolognani
Most distributions we build RPMs on don't ship a recent enough version of libiscsi, so we can't enable the driver unconditionally. Add an explicit dependency on the runtime package while at it. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 26 -- 1 file changed,

Re: [libvirt] [PATCH 0/4] cpu: modularize the CPU map data file

2018-08-14 Thread John Ferlan
On 08/14/2018 05:00 AM, Jiri Denemark wrote: > On Wed, Aug 01, 2018 at 18:02:28 +0100, Daniel P. Berrangé wrote: >> Currently we have a cpu_map.xml file that contains all the features and >> CPU models for all architectures in one place. I frequently find myself >> wondering about the

Re: [libvirt] [PATCH] spec: Require libiscsi-devel instead of libiscsi

2018-08-14 Thread Pavel Hrdina
On Tue, Aug 14, 2018 at 01:44:40PM +0200, Andrea Bolognani wrote: > Commit 34a6962c41b4 added a BuildRequires for the > iscsi-direct backend, but we need the headers rather > than the runtime package to be available in order to > link against the library. > > Signed-off-by: Andrea Bolognani >

Re: [libvirt] [PATCH v3 04/11] util: netlink: use VIR_AUTOPTR for aggregate types

2018-08-14 Thread Erik Skultety
On Mon, Aug 13, 2018 at 10:23:02PM +0530, Sukrit Bhatnagar wrote: > On Mon, 13 Aug 2018 at 18:10, Erik Skultety wrote: > > > > On Thu, Aug 09, 2018 at 09:42:12AM +0530, Sukrit Bhatnagar wrote: > > > By making use of GNU C's cleanup attribute handled by the > > > VIR_AUTOPTR macro for declaring

Re: [libvirt] [PATCH] bhyve: fix process reconnect

2018-08-14 Thread Michal Privoznik
On 08/05/2018 05:54 PM, Roman Bogorodskiy wrote: > To reconnect to the bhyve process after deamon restart, a process > VM's pid points to is checked to have proctitle equal to 'bhyve: $vmname'. > However, there could be a bug in bhyve(8) which prevents it from > setting proctitle, so process

Re: [libvirt] [PATCH] spec: Require libiscsi-devel instead of libiscsi

2018-08-14 Thread Erik Skultety
On Tue, Aug 14, 2018 at 01:44:40PM +0200, Andrea Bolognani wrote: > Commit 34a6962c41b4 added a BuildRequires for the > iscsi-direct backend, but we need the headers rather > than the runtime package to be available in order to > link against the library. > > Signed-off-by: Andrea Bolognani > ---

Re: [libvirt] [PATCH v2 0/7] Introduce metadata locking

2018-08-14 Thread no-reply
Hi, This series was run against 'syntax-check' test by patchew.org, which failed, please find the details below: Type: series Message-id: cover.1534245398.git.mpriv...@redhat.com Subject: [libvirt] [PATCH v2 0/7] Introduce metadata locking === TEST SCRIPT BEGIN === #!/bin/bash # Testing script

Re: [libvirt] [PATCH 2/4] cpu: push more parsing logic into common code

2018-08-14 Thread Jiri Denemark
On Mon, Aug 13, 2018 at 18:27:06 -0400, John Ferlan wrote: > > > On 08/01/2018 01:02 PM, Daniel P. Berrangé wrote: > > The x86 and ppc impls both duplicate some logic when parsing CPU > > features. Change the callback signature so that this duplication can be > > pushed up a level to common

[libvirt] [PATCH] spec: Require libiscsi-devel instead of libiscsi

2018-08-14 Thread Andrea Bolognani
Commit 34a6962c41b4 added a BuildRequires for the iscsi-direct backend, but we need the headers rather than the runtime package to be available in order to link against the library. Signed-off-by: Andrea Bolognani --- libvirt.spec.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[libvirt] [dockerfiles PATCH] Refresh after switch from jansson to yajl

2018-08-14 Thread Andrea Bolognani
The corresponding libvirt-jenkins-ci commit is f188ff6a7ceb. Signed-off-by: Andrea Bolognani --- Pushed under the Dockerfile refresh rule. buildenv-centos-7.Dockerfile | 4 ++-- buildenv-debian-8.Dockerfile | 2 +- buildenv-debian-9.Dockerfile | 2 +-

[libvirt] [PATCH v2 6/7] domain_lock: Implement metadata locking

2018-08-14 Thread Michal Privoznik
In order for our drivers to lock resources for metadata change we need set of new APIs. Fortunately, we don't have to care about every possible device a domain can have. We care only about those which can live on a network filesystem and hence can be accessed by multiple daemons at the same time.

[libvirt] [PATCH v2 4/7] lockd_driver_lockd: Implement metadata flag

2018-08-14 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/locking/lock_daemon_dispatch.c | 12 ++-- src/locking/lock_driver_lockd.c| 31 +-- src/locking/lock_driver_lockd.h| 1 + 3 files changed, 32 insertions(+), 12 deletions(-) diff --git

[libvirt] [PATCH v2 7/7] qemu_security: Lock metadata while relabelling

2018-08-14 Thread Michal Privoznik
Fortunately, we have qemu wrappers so it's sufficient to put lock/unlock call only there. Signed-off-by: Michal Privoznik --- src/qemu/qemu_security.c | 107 +++ 1 file changed, 107 insertions(+) diff --git a/src/qemu/qemu_security.c

[libvirt] [PATCH v2 5/7] lock_driver_sanlock: Handle metadata flag gracefully

2018-08-14 Thread Michal Privoznik
No real support implemented here. But hey, at least we will not fail. Signed-off-by: Michal Privoznik --- src/locking/lock_driver_sanlock.c | 25 ++--- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/src/locking/lock_driver_sanlock.c

[libvirt] [PATCH v2 2/7] virlockspace: Introduce VIR_LOCK_SPACE_ACQUIRE_WAIT

2018-08-14 Thread Michal Privoznik
This flag modifies the way the lock is acquired. It waits for the lock to be set instead of usual set-or-fail logic that happens without this flag. Signed-off-by: Michal Privoznik --- src/util/virlockspace.c | 14 ++ src/util/virlockspace.h | 1 + 2 files changed, 11 insertions(+),

[libvirt] [PATCH v2 1/7] virlockspace: Allow caller to specify start and length offset in virLockSpaceAcquireResource

2018-08-14 Thread Michal Privoznik
So far the virLockSpaceAcquireResource() locks the first byte in the underlying file. But caller might want to lock other range. Signed-off-by: Michal Privoznik --- src/locking/lock_daemon_dispatch.c | 3 +++ src/util/virlockspace.c| 15 ++- src/util/virlockspace.h

[libvirt] [PATCH v2 3/7] lock_driver.h: Introduce metadata flag

2018-08-14 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- src/locking/lock_driver.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/locking/lock_driver.h b/src/locking/lock_driver.h index 8b7521..7c8f79520a 100644 --- a/src/locking/lock_driver.h +++ b/src/locking/lock_driver.h @@ -56,6 +56,8 @@ typedef

[libvirt] [PATCH v2 0/7] Introduce metadata locking

2018-08-14 Thread Michal Privoznik
v2 of: https://www.redhat.com/archives/libvir-list/2018-August/msg00482.html diff to v1: - 1/6 from original patch set is replaced with different approach. As Dan suggested, virLockSpace accepts range to lock through its API and has new flag that tells it to wait for the lock to be acquired.

Re: [libvirt] [jenkins-ci PATCH 0/4] Switch back from jansson to yajl

2018-08-14 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 01:07:54PM +0200, Andrea Bolognani wrote: > A straighforward revert of e1575b08511f..d2bbe1eee61a. > > Andrea Bolognani (4): > guests: Re-introduce yajl kludge > guests: Add yajl mapping > guests: Install yajl for libvirt > guests: Don't install jansson for libvirt

[libvirt] [jenkins-ci PATCH 3/4] guests: Install yajl for libvirt

2018-08-14 Thread Andrea Bolognani
It's once again a build dependency. This reverts commit 34e7fe227418db1d06ce2cd50b042ee3d1a03f29. Signed-off-by: Andrea Bolognani --- guests/vars/projects/libvirt.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/guests/vars/projects/libvirt.yml b/guests/vars/projects/libvirt.yml index

[libvirt] [jenkins-ci PATCH 0/4] Switch back from jansson to yajl

2018-08-14 Thread Andrea Bolognani
A straighforward revert of e1575b08511f..d2bbe1eee61a. Andrea Bolognani (4): guests: Re-introduce yajl kludge guests: Add yajl mapping guests: Install yajl for libvirt guests: Don't install jansson for libvirt guests/playbooks/update/tasks/kludges.yml | 2 ++ guests/vars/mappings.yml

[libvirt] [jenkins-ci PATCH 4/4] guests: Don't install jansson for libvirt

2018-08-14 Thread Andrea Bolognani
It's no longer needed, and neither is the mapping. This reverts commit e1575b08511f09e9c7759f02fadd14752fb2f4f1. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 5 - guests/vars/projects/libvirt.yml | 1 - 2 files changed, 6 deletions(-) diff --git

[libvirt] [jenkins-ci PATCH 2/4] guests: Add yajl mapping

2018-08-14 Thread Andrea Bolognani
We're going to use it for libvirt. This reverts commit 0399edd04259f8c49dfd0dbd76740217c90baa1c. Signed-off-by: Andrea Bolognani --- guests/vars/mappings.yml | 5 + 1 file changed, 5 insertions(+) diff --git a/guests/vars/mappings.yml b/guests/vars/mappings.yml index be356aa..f6b762d

[libvirt] [jenkins-ci PATCH 1/4] guests: Re-introduce yajl kludge

2018-08-14 Thread Andrea Bolognani
libvirt switched back from jansson to yajl, so we're going to need this in a second. This reverts commit d2bbe1eee61aea55beed7eea5d9ed60f3a08cbb9. Signed-off-by: Andrea Bolognani --- guests/playbooks/update/tasks/kludges.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git

[libvirt] [PATCH] Fix build on non-linux platforms after another VIR_AUTOPTR patches

2018-08-14 Thread Erik Skultety
Caused by commit f7d0663d49. The problem is missing libnl library on these platforms, so the VIR_DEFINE_AUTOPTR_FUNC has to be compiled in conditionally. Signed-off-by: Erik Skultety --- Checked with Travis CI, local fedora with MinGW and FreeBSD, thus pushed under the build breaker rule.

Re: [libvirt] [PATCH 1/4] cpu: allow include files for CPU definition

2018-08-14 Thread Jiri Denemark
On Wed, Aug 01, 2018 at 18:02:29 +0100, Daniel P. Berrangé wrote: > Allow for syntax > > It seems the code should just work with but Makefile.am and libvirt.spec would need some adjustment. > to reference other files in the CPU database directory > > Signed-off-by: Daniel P.

Re: [libvirt] [PATCH v2 0/3] conf: standardize naming

2018-08-14 Thread Andrea Bolognani
On Mon, 2018-08-13 at 11:55 -0400, Anya Harter wrote: > on vir*ObjListExport call stack > > Anya Harter (3): > conf: rename structs used by Export function > conf: rename Export Callback functions > conf: rename Match functions > > src/conf/virinterfaceobj.c | 16 +--- >

Re: [libvirt] [PATCH v3 1/2] process: wait longer on kill per assigned Hostdev

2018-08-14 Thread Bjoern Walk
Christian Ehrhardt [2018-08-14, 11:27AM +0200]: > diff --git a/src/util/virprocess.c b/src/util/virprocess.c > index ecea27a2d4..46360cc051 100644 > --- a/src/util/virprocess.c > +++ b/src/util/virprocess.c > @@ -341,15 +341,19 @@ int virProcessKill(pid_t pid, int sig) > * Returns 0 if it was

[libvirt] [PATCH v3 0/2] Fix detection of slow guest shutdown

2018-08-14 Thread Christian Ehrhardt
Hi, after a good discussion a few days ago in https://www.redhat.com/archives/libvir-list/2018-August/msg00122.html and a short lived but back then untested v2 in https://www.redhat.com/archives/libvir-list/2018-August/msg00199.html I finally get access to the right HW again and completed the

[libvirt] [PATCH v3 1/2] process: wait longer on kill per assigned Hostdev

2018-08-14 Thread Christian Ehrhardt
It was found that in cases with host devices virProcessKillPainfully might be able to send signal zero to the target PID for quite a while with the process already being gone from /proc/. That is due to cleanup and reset of devices which might include a secondary bus reset that on top of the

[libvirt] [PATCH v3 2/2] process: wait longer 5->30s on hard shutdown

2018-08-14 Thread Christian Ehrhardt
In cases where virProcessKillPainfully already reailizes that SIGTERM wasn't enough we are partially on a bad path already. Maybe the system is overloaded or having serious trouble to free and reap resources in time. In those case give the SIGKILL that was sent after 10 seconds some more time to

Re: [libvirt] [PATCH 0/7] Remove arbitrary limit on socket_id/core_id

2018-08-14 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 11:07:49AM +0200, Andrea Bolognani wrote: > See patch 6 for the explanation; the previous 5 patches > are cleanups. > > I had to snip out some patches to comply with the message > size limit for the list - ironic, I know. The full commits > can be fetched from Although

[libvirt] [PATCH 4/7] util: Rewrite virHostCPUCountThreadSiblings()

2018-08-14 Thread Andrea Bolognani
We already have a function which parses thread_siblings_list for a CPU and returns the corresponding bitmap, and a bunch of utility functions that perform operations on bitmaps such as counting the number of set bits: use those to implement the function instead of having an additional ad-hoc

[libvirt] [PATCH 1/7] util: Drop VIR_HOST_CPU_MASK_LEN

2018-08-14 Thread Andrea Bolognani
Unused since commit c67e04e25fa5. Signed-off-by: Andrea Bolognani --- src/util/virhostcpu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index 060d382781..c260d603a9 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -197,7

[libvirt] [PATCH 5/7] tests: Drop core_siblings/thread_siblings files

2018-08-14 Thread Andrea Bolognani
The latter are no longer used by libvirt, and the former never were; moreover, both have a corresponding *_list file which we can manipulate very conveniently using our bitmap APIs, so dropping them makes sure in the future developers will look into that rather than trying to parse the kernel

[libvirt] [PATCH 0/7] Remove arbitrary limit on socket_id/core_id

2018-08-14 Thread Andrea Bolognani
See patch 6 for the explanation; the previous 5 patches are cleanups. I had to snip out some patches to comply with the message size limit for the list - ironic, I know. The full commits can be fetched from https://github.com/andreabolognani/libvirt/tree/high-ids Andrea Bolognani (7): util:

[libvirt] [PATCH 7/7] tests: Add linux-high-ids test

2018-08-14 Thread Andrea Bolognani
This proves libvirt can now handle high socket_id and core_id values correctly and ensures we won't introduce regressions in this area. Signed-off-by: Andrea Bolognani --- .../linux-aarch64-high-ids.cpuinfo| 143 ++ .../linux-aarch64-high-ids.expected | 1

  1   2   >