Re: [libvirt] [RFC PATCHv2 00/10] x86 RDT Cache Monitoring Technology (CMT)

2018-07-17 Thread Wang, Huaqiang
> -Original Message- > From: Martin Kletzander [mailto:mklet...@redhat.com] > Sent: Tuesday, July 17, 2018 5:11 PM > To: Wang, Huaqiang > Cc: libvir-list@redhat.com; Feng, Shaohe ; Niu, Bing > ; Ding, Jian-feng ; Zang, Rui > > Subject: Re: [libvirt] [RFC PATCHv2 00/10] x86 RDT Cache

Re: [libvirt] [PATCH] qemu: stop qemu progress when restore failed

2018-07-17 Thread John Ferlan
On 07/04/2018 10:05 PM, Jie Wang wrote: >>From 29482622218f525f0133be0b7db74835174035d9 Mon Sep 17 00:00:00 2001 > From: Jie Wang > Date: Thu, 5 Jul 2018 09:52:03 +0800 > Subject: [PATCH] qemu: stop qemu progress when restore failed Strange stuff in the comment message... > > if

Re: [libvirt] [PATCHv2 11/11] qemu_driver: BaselineHypervisorCPU supports S390 using QEMU/QMP

2018-07-17 Thread Collin Walling
On 07/17/2018 05:01 PM, David Hildenbrand wrote: > On 13.07.2018 18:00, Jiri Denemark wrote: >> On Mon, Jul 09, 2018 at 22:56:55 -0500, Chris Venteicher wrote: >>> Transient S390 configurations require using QEMU to compute CPU Model >>> Baseline and to do CPU Feature Expansion. >>> >>> Start and

Re: [libvirt] [PATCH 2/3] support new forward mode of vlan for virtual network

2018-07-17 Thread John Ferlan
On 07/05/2018 11:36 PM, Shi Lei wrote: > Signed-off-by: Shi Lei > --- > src/conf/network_conf.c | 12 --- > src/conf/network_conf.h | 1 + > src/network/bridge_driver.c | 80 > + > 3 files changed, 82 insertions(+), 11 deletions(-) >

Re: [libvirt] [PATCH 3/3] fix other functions to add VIR_NETWORK_FORWARD_VLAN

2018-07-17 Thread John Ferlan
On 07/05/2018 11:36 PM, Shi Lei wrote: > Signed-off-by: Shi Lei > --- > src/conf/domain_conf.c | 1 + > src/conf/virnetworkobj.c | 1 + > src/qemu/qemu_process.c | 1 + > 3 files changed, 3 insertions(+) > This should have been merged into the previous patch; however, this doing point

Re: [libvirt] [PATCH 1/3] add functions: load 8021q module, create/destroy vlan-dev

2018-07-17 Thread John Ferlan
On 07/05/2018 11:36 PM, Shi Lei wrote: > Signed-off-by: Shi Lei > --- > configure.ac | 5 +- > src/libvirt_private.syms | 4 + > src/util/virnetdev.c | 195 > +++ > src/util/virnetdev.h | 14 > 4 files changed, 216

Re: [libvirt] [PATCHv2 11/11] qemu_driver: BaselineHypervisorCPU supports S390 using QEMU/QMP

2018-07-17 Thread David Hildenbrand
On 13.07.2018 18:00, Jiri Denemark wrote: > On Mon, Jul 09, 2018 at 22:56:55 -0500, Chris Venteicher wrote: >> Transient S390 configurations require using QEMU to compute CPU Model >> Baseline and to do CPU Feature Expansion. >> >> Start and use a single QEMU instance to do both the baseline and

Re: [libvirt] [PATCH v2 00/10] viriscsi: Couple of fixes

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > v2 of: > > https://www.redhat.com/archives/libvir-list/2018-June/msg01861.html > > diff to v1: > - fixed misleading while() loop in 03/10 > - Introduced some tests > - patch 06/10 is new, while writing the tests I've noticed that > errors

Re: [libvirt] [PATCH 5/5] qemu: keep websocketGenerated on libvirtd restarts

2018-07-17 Thread John Ferlan
On 07/04/2018 07:03 AM, Nikolay Shirokovskiy wrote: > Otherwise after libvirtd restart we come back to issues fixed by > introducing this flag in [1]. > > [1] 61a0026a : qemu: Fix xml dump of autogenerated websocket > > Signed-off-by: Nikolay Shirokovskiy > --- > src/conf/domain_conf.c | 9

Re: [libvirt] [PATCH 3/5] qemu: vnc: mark websocket as used on reconnect

2018-07-17 Thread John Ferlan
On 07/04/2018 07:03 AM, Nikolay Shirokovskiy wrote: > Signed-off-by: Nikolay Shirokovskiy > --- > src/qemu/qemu_process.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > So your contention is that commit id 84067696 missed a condition? I agree, but would like you to reference

Re: [libvirt] [PATCH 2/5] qemu: simplify graphics port releasing

2018-07-17 Thread John Ferlan
On 07/04/2018 07:03 AM, Nikolay Shirokovskiy wrote: > Originally port allocator have 2 functions to release ports: one > for for manually reserved ports and one for autoallocated ports. Thus > a bit complicated code of port releasing. Now we have only one releasing > function. But there's a

Re: [libvirt] [PATCH 1/5] qemu: fix typo in vnc port releasing

2018-07-17 Thread John Ferlan
On 07/04/2018 07:03 AM, Nikolay Shirokovskiy wrote: > Signed-off-by: Nikolay Shirokovskiy > --- > src/qemu/qemu_process.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Copy-Pasta from commit id 1a065caa7 it seems (it's only 4 years old, just a young bug). Reviewed-by: John

Re: [libvirt] [PATCH v2] util: set OOM in virCopyLastError if error is not set

2018-07-17 Thread John Ferlan
>>> +} else { >>> +to->code = VIR_ERR_NO_MEMORY; >>> +to->domain = VIR_FROM_NONE; >>> +to->level = VIR_ERR_ERROR; >> >> Should we do a VIR_FREE(to->message); so that nothing that was there >> before somehow remains... I don't think either agent or monitor>

Re: [libvirt] [PATCH v2 10/10] viriscsitest: Extend virISCSIConnectionLogin test

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > Extend this existing test so that a case when IQN is provided is > tested too. Since a special iSCSI interface is created and its > name is randomly generated at runtime we need to link with > virrandommock to have predictable names. > >

Re: [libvirt] [PATCH v2 07/10] viriscsitest: Test virISCSIConnectionLogin

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > Introduce one basic test that tests the simplest case: > logging into portal without any IQN. > > Signed-off-by: Michal Privoznik > --- > tests/viriscsitest.c | 46 ++ > 1 file changed, 46

Re: [libvirt] [PATCH v2 09/10] viriscsitest: Introduce testIscsiadmCbData struct

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > Some tests will want to pass their own callback data into the > testIscsiadmCbData callback. Introduce testIscsiadmCbData struct > to give this some form and order. > > Signed-off-by: Michal Privoznik > --- > tests/viriscsitest.c | 15

Re: [libvirt] [PATCH v2 08/10] viriscsitest: Move testSessionInfo struct

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > This struct has nothing to do with testIscsiadmCb() rather than > testISCSIGetSession(). Move it closer to the latter. > > Signed-off-by: Michal Privoznik > --- > tests/viriscsitest.c | 12 ++-- > 1 file changed, 6 insertions(+), 6

Re: [libvirt] [PATCH v2 07/10] viriscsitest: Test virISCSIConnectionLogin

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > Introduce one basic test that tests the simplest case: > logging into portal without any IQN. > > Signed-off-by: Michal Privoznik > --- > tests/viriscsitest.c | 46 ++ > 1 file changed, 46

Re: [libvirt] [PATCH v2 06/10] virCommandWait: Propagate dryRunCallback return value properly

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > The documentation to virCommandWait() function states that if > @exitstatus is NULL and command finished with error -1 is > returned. In other words, if @dryRunCallback is set and returns > an error (by setting its @status argument to a nonzero

Re: [libvirt] [PATCH v2 03/10] virStorageBackendIQNFound: Rework iscsiadm output parsing

2018-07-17 Thread John Ferlan
On 07/04/2018 05:23 AM, Michal Privoznik wrote: > Firstly, we can utilize virCommandSetOutputBuffer() API which > will collect the command output for us. Secondly, sscanf()-ing > through each line is easier to understand (and more robust) than > jumping over a string with strchr(). > >

Re: [libvirt] [jenkins-ci PATCH v2 10/12] lcitool: Add projects information handling

2018-07-17 Thread Katerina Koukiou
On Tue, Jul 17, 2018 at 04:44:24PM +0200, Andrea Bolognani wrote: > On Tue, 2018-07-17 at 15:04 +0200, Katerina Koukiou wrote: > > On Thu, Jul 12, 2018 at 05:19:27PM +0200, Andrea Bolognani wrote: > > > +class Projects: > > > + > > > +def __init__(self): > > > +try: > > > +

Re: [libvirt] [jenkins-ci PATCH v2 07/12] lcitool: Implement the 'update' action

2018-07-17 Thread Katerina Koukiou
On Tue, Jul 17, 2018 at 04:45:39PM +0200, Andrea Bolognani wrote: > On Tue, 2018-07-17 at 14:57 +0200, Katerina Koukiou wrote: > > On Thu, Jul 12, 2018 at 05:19:24PM +0200, Andrea Bolognani wrote: > > > +cmd = [ "ansible-playbook" ] > > > > IMO this requirement should be as well in python

Re: [libvirt] [jenkins-ci PATCH v2 04/12] lcitool: Add inventory handling

2018-07-17 Thread Katerina Koukiou
On Tue, Jul 17, 2018 at 02:51:47PM +0200, Andrea Bolognani wrote: > On Tue, 2018-07-17 at 11:57 +0200, Katerina Koukiou wrote: > > On Thu, Jul 12, 2018 at 05:19:21PM +0200, Andrea Bolognani wrote: > > > +import yaml > > > > Since you have to install yaml to actually use it, I suggest at this > >

[libvirt] [jenkins-ci PATCH v3 09/12] guests: Add Docker-related information to the inventory

2018-07-17 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- guests/host_vars/libvirt-centos-7/docker.yml | 2 ++ guests/host_vars/libvirt-debian-8/docker.yml | 2 ++ guests/host_vars/libvirt-debian-9/docker.yml | 2 ++ guests/host_vars/libvirt-debian-sid/docker.yml | 2 ++

[libvirt] [jenkins-ci PATCH v3 10/12] lcitool: Add projects information handling

2018-07-17 Thread Andrea Bolognani
The original tool's limited scope meant loading this information was not needed, but we're going to start making use of it pretty soon. Signed-off-by: Andrea Bolognani --- guests/lcitool | 47 +++ 1 file changed, 47 insertions(+) diff --git

[libvirt] [jenkins-ci PATCH v3 12/12] lcitool: Implement the 'dockerfile' action

2018-07-17 Thread Andrea Bolognani
This is basically the exact same algorithm used by the Ansible playbooks to process package mappings, implemented in pure Python. Signed-off-by: Andrea Bolognani --- guests/lcitool | 86 ++ 1 file changed, 80 insertions(+), 6 deletions(-) diff

[libvirt] [jenkins-ci PATCH v3 07/12] lcitool: Implement the 'update' action

2018-07-17 Thread Andrea Bolognani
The 'prepare' alias was kinda redundant and offered dubious value, so it has been dropped. Signed-off-by: Andrea Bolognani --- guests/lcitool | 30 ++ 1 file changed, 30 insertions(+) diff --git a/guests/lcitool b/guests/lcitool index 5156869..ba5ed5d 100755 ---

[libvirt] [jenkins-ci PATCH v3 04/12] lcitool: Add inventory handling

2018-07-17 Thread Andrea Bolognani
We use an actual YAML parser this time around, and bring the behavior more in line with what Ansible is doing, so interoperability should be more solid overall. New in this implementation is more flexibility in defining host lists, including support for explicit lists as well as glob patterns.

[libvirt] [jenkins-ci PATCH v3 08/12] guests: Update documentation

2018-07-17 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- guests/README.markdown | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guests/README.markdown b/guests/README.markdown index bc780f3..4a40619 100644 --- a/guests/README.markdown +++ b/guests/README.markdown @@ -6,16 +6,16 @@ of the

[libvirt] [jenkins-ci PATCH v3 06/12] lcitool: Implement the 'install' action

2018-07-17 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- guests/lcitool | 75 -- 1 file changed, 73 insertions(+), 2 deletions(-) diff --git a/guests/lcitool b/guests/lcitool index 2df231a..5156869 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -22,6 +22,7 @@

[libvirt] [jenkins-ci PATCH v3 02/12] lcitool: Stub out Python implementation

2018-07-17 Thread Andrea Bolognani
Doesn't do much right now, but it's a start :) Signed-off-by: Andrea Bolognani --- guests/lcitool | 46 ++ 1 file changed, 46 insertions(+) create mode 100755 guests/lcitool diff --git a/guests/lcitool b/guests/lcitool new file mode 100755 index

[libvirt] [jenkins-ci PATCH v3 03/12] lcitool: Add tool configuration handling

2018-07-17 Thread Andrea Bolognani
The on-disk configuration format and its behavior are fully backwards compatible with the previous implementation. Signed-off-by: Andrea Bolognani --- guests/lcitool | 115 + 1 file changed, 115 insertions(+) diff --git a/guests/lcitool

[libvirt] [jenkins-ci PATCH v3 11/12] lcitool: Implement the 'projects' action

2018-07-17 Thread Andrea Bolognani
Signed-off-by: Andrea Bolognani --- guests/lcitool | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/guests/lcitool b/guests/lcitool index 95d16b3..cfea077 100755 --- a/guests/lcitool +++ b/guests/lcitool @@ -303,7 +303,8 @@ class Application: update

[libvirt] [jenkins-ci PATCH v3 05/12] lcitool: Implement the 'hosts' action

2018-07-17 Thread Andrea Bolognani
This replaces the 'list' action from the original implementation. We're going to list more than just hosts over time, so a more specific name is warranted. Signed-off-by: Andrea Bolognani --- guests/lcitool | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff

[libvirt] [jenkins-ci PATCH v3 01/12] lcitool: Drop shell implementation

2018-07-17 Thread Andrea Bolognani
We're going to rewrite the script completely, and getting the current implementation out of the way firts will make the diffs more reasonable. Signed-off-by: Andrea Bolognani --- guests/lcitool | 227 - 1 file changed, 227 deletions(-) delete

[libvirt] [jenkins-ci PATCH v3 00/12] lcitool: Rewrite in Python (and add Dockefile generator)

2018-07-17 Thread Andrea Bolognani
pylint is reasonably happy with the script now: $ pylint lcitool No config file found, using default configuration * Module lcitool C: 1, 0: Missing module docstring (missing-docstring) C: 37, 0: Missing class docstring (missing-docstring) C: 47, 4: Missing method

Re: [libvirt] [PATCH 2/2] docs: formatdomain: clarify period cputune subelement

2018-07-17 Thread Fabiano Fidêncio
On Tue, Jul 17, 2018 at 5:47 PM, Katerina Koukiou wrote: > Although the name of the element is not self-explanatory, > it's affecting only the vcpu threads. > > Signed-off-by: Katerina Koukiou > --- > docs/formatdomain.html.in | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) >

[libvirt] [PATCH 1/2] docs: formatdomain: add info about global_period and global_quota for cputune

2018-07-17 Thread Katerina Koukiou
Patch series https://www.redhat.com/archives/libvir-list/2016-January/msg00482.html introduced the parameters but didn't update the docs. Signed-off-by: Katerina Koukiou --- docs/formatdomain.html.in | 21 + 1 file changed, 21 insertions(+) diff --git

[libvirt] [PATCH 0/2] Some additions/fixes in formatdomain docs

2018-07-17 Thread Katerina Koukiou
Katerina Koukiou (2): docs: formatdomain: add info about global_period and global_quota for cputune docs: formatdomain: clarify period cputune subelement docs/formatdomain.html.in | 31 ++- 1 file changed, 26 insertions(+), 5 deletions(-) -- 2.17.1 --

[libvirt] [PATCH 2/2] docs: formatdomain: clarify period cputune subelement

2018-07-17 Thread Katerina Koukiou
Although the name of the element is not self-explanatory, it's affecting only the vcpu threads. Signed-off-by: Katerina Koukiou --- docs/formatdomain.html.in | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in

[libvirt] [PATCH 2/4] FIXDOWN: copy graphics-vnc-tls args to versioned paths

2018-07-17 Thread Ján Tomko
For easier review of how these tests are different from the one with capabilities listed. This commit will be absorbed by the next one. --- .../graphics-vnc-tls.x86_64-2.4.0.args | 26 ++ .../graphics-vnc-tls.x86_64-latest.args| 26

[libvirt] [PATCH 3/4] tests: qemu: test more versions for graphics-vnc-tls

2018-07-17 Thread Ján Tomko
Add a test with QEMU 2.4.0 capabilites, as well as the latest caps. The code paths for formatting TLS options will be altered and 2.4.0 is the newest version where QEMU_CAPS_OBJECT_TLS_CREDS_X509 is not supported. Signed-off-by: Ján Tomko ---

[libvirt] [PATCH 0/4] qemu: vnc: switch to tls-creds-x509

2018-07-17 Thread Ján Tomko
Ján Tomko (4): tests: qemu: Remove disk from graphics-vnc-tls FIXDOWN: copy graphics-vnc-tls args to versioned paths tests: qemu: test more versions for graphics-vnc-tls qemu: vnc: switch to tls-creds-x509 src/qemu/qemu_command.c| 26 +

[libvirt] [PATCH 4/4] qemu: vnc: switch to tls-creds-x509

2018-07-17 Thread Ján Tomko
The tls, x509 and x509verify options were deprecated in QEMU v2.5.0: commit 3e305e4a4752f70c0b5c3cf5b43ec957881714f7 Author: Daniel P. Berrange ui: convert VNC server to use QCryptoTLSSession Use the tls-creds-x509 object when available.

[libvirt] [PATCH 1/4] tests: qemu: Remove disk from graphics-vnc-tls

2018-07-17 Thread Ján Tomko
The disk command line is tested elsewhere. Signed-off-by: Ján Tomko --- tests/qemuxml2argvdata/graphics-vnc-tls.args | 2 -- tests/qemuxml2argvdata/graphics-vnc-tls.xml | 6 -- tests/qemuxml2xmloutdata/graphics-vnc-tls.xml | 6 -- 3 files changed, 14 deletions(-) diff --git

Re: [libvirt] [PATCH v4 6/6] docs: Update news about Network stats support for VF Representor

2018-07-17 Thread John Ferlan
On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > Signed-off-by: Jai Singh Rana > --- > docs/news.xml | 9 + > 1 file changed, 9 insertions(+) > This will need to be adjusted for top of tree. > diff --git a/docs/news.xml b/docs/news.xml > index 468d34093a..c6394a8f0f 100644 > ---

Re: [libvirt] [PATCH v4 5/6] qemu: Network stats support for VF Representor

2018-07-17 Thread John Ferlan
On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > In case of pci SR-IOV device with interface_type as 'hostdev', return > network stats if it has a VF Representor interface enabled on host for > pci SR-IOV device according to switchdev model. > > Signed-off-by: Jai Singh Rana > --- >

Re: [libvirt] [PATCH v4 4/6] conf: util: Add API to find net def given its domain's hostdev

2018-07-17 Thread John Ferlan
$SUBJ: "conf: Introduce virDomainNetFindByHostdev" Is fine. then the commit message can be more descriptive. On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > Introduce API virDomainNetFindByHostdev which retrieves net def in > given domain for the given hostdev def. This API will now be used

Re: [libvirt] [PATCH v4 3/6] util: Add helper APIs to get/verify VF Representor name

2018-07-17 Thread John Ferlan
On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > Introduce new APIs virNetdevHostdevGetVFRIfName and > virNetdevHostdevCheckVFRIfName to fetch/verify VF Representor name > according to switch model for network devices in linux. > > Switchdev VF representor interface name on host is queried

Re: [libvirt] [PATCH v4 2/6] util: Add generic API to fetch network stats from procfs

2018-07-17 Thread John Ferlan
$subj: util: Introduce virNetDevGetProcNetdevStats On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > This patch introduces virNetDevGetProcNetdevStats API for linux > which returns stats for the given interface from /proc/net/dev by > properly mapping stats entries in probed column to column

Re: [libvirt] [PATCH v4 1/6] util: Add helper function to clean extra spaces

2018-07-17 Thread John Ferlan
On 06/28/2018 09:22 AM, Jai Singh Rana wrote: > This patch adds string manupulation helper function which takes manipulation > string as input and returns string with all but one space removed > between letters, numbers or words. > > Signed-off-by: Jai Singh Rana > --- >

Re: [libvirt] [jenkins-ci PATCH v2 07/12] lcitool: Implement the 'update' action

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 14:57 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:24PM +0200, Andrea Bolognani wrote: > > +cmd = [ "ansible-playbook" ] > > IMO this requirement should be as well in python requirements file. > In this way you can also specify which ansible version

Re: [libvirt] [jenkins-ci PATCH v2 10/12] lcitool: Add projects information handling

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 15:04 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:27PM +0200, Andrea Bolognani wrote: > > +class Projects: > > + > > +def __init__(self): > > +try: > > +with open("./vars/mappings.yml", "r") as f: > > There is clear information

Re: [libvirt] [jenkins-ci PATCH v2 06/12] lcitool: Implement the 'install' action

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 14:52 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:23PM +0200, Andrea Bolognani wrote: > > -def _action_list(self): > > +def _action_list(self, hosts): > > 'hosts' argument is not used here. Sure, but... > > +def _action_install(self, hosts):

[libvirt] [PATCH] utils: storage: Add copying of PR definition to virStorageSource

2018-07-17 Thread Peter Krempa
Despite the warning that virStorageSourceCopy needs to be populated on additions to the structure commit 687730540e4 neglected to implement the copy function. Signed-off-by: Peter Krempa --- src/util/virstoragefile.c | 27 +++ 1 file changed, 27 insertions(+) diff --git

Re: [libvirt] [PATCH 04/10] qemu: hotplug: Prepare for multiple backing chain member hotplug

2018-07-17 Thread Peter Krempa
On Tue, Jul 17, 2018 at 14:14:24 +0200, Peter Krempa wrote: > Similarly to how we've intergrated data belonging to a single > virStorageSource for purposes of attaching it to a qemu instance we will > need to agregate data relevant for the whole disk. With blockdev there > will be some disk-wide

Re: [libvirt] [jenkins-ci PATCH v2 12/12] lcitool: Implement the 'dockerfile' action

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:29PM +0200, Andrea Bolognani wrote: > This is basically the exact same algorithm used by the > Ansible playbooks to process package mappings, implemented > in pure Python. > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 86

Re: [libvirt] [jenkins-ci PATCH v2 10/12] lcitool: Add projects information handling

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:27PM +0200, Andrea Bolognani wrote: > The original tool's limited scope meant loadins this > information was not needed, but we're going to start > making use of it pretty soon. > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 47

Re: [libvirt] [jenkins-ci PATCH v2 07/12] lcitool: Implement the 'update' action

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:24PM +0200, Andrea Bolognani wrote: > The 'prepare' alias was kinda redundant and offered > dubious value, so it has been dropped. > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 30 ++ > 1 file changed, 30 insertions(+) >

Re: [libvirt] [jenkins-ci PATCH v2 04/12] lcitool: Add inventory handling

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 11:57 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:21PM +0200, Andrea Bolognani wrote: > > +import yaml > > Since you have to install yaml to actually use it, I suggest at this > point to create a requirements.txt file for this script, so that users > don't

Re: [libvirt] [jenkins-ci PATCH v2 06/12] lcitool: Implement the 'install' action

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:23PM +0200, Andrea Bolognani wrote: > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 74 -- > 1 file changed, 72 insertions(+), 2 deletions(-) > > diff --git a/guests/lcitool b/guests/lcitool > index

Re: [libvirt] [jenkins-ci PATCH v2 03/12] lcitool: Add tool configuration handling

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 11:40 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:20PM +0200, Andrea Bolognani wrote: > > +try: > > +with open(flavor_file, "r") as f: > > +flavor = f.readline().strip() > > +except: > > And it's generally

Re: [libvirt] [PATCH v2 RESEND 00/12] PCI passthrough support on s390

2018-07-17 Thread Cornelia Huck
On Tue, 10 Jul 2018 16:02:14 +0800 Yi Min Zhao wrote: > Abstract > > The PCI representation in QEMU has recently been extended for S390 > allowing configuration of zPCI attributes like uid (user-defined > identifier) and fid (PCI function identifier). > The details can be found here: >

Re: [libvirt] [PATCH 3/3] m4: Work around MinGW detection of strncpy() usage

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 12:23 +0100, Daniel P. Berrangé wrote: > On Tue, Jul 17, 2018 at 01:09:57PM +0200, Andrea Bolognani wrote: > > With the recent update in Fedora Rawhide, MinGW has > > started freaking out about our use of strncpy(): > > > > In function 'virStrncpy', > > inlined

[libvirt] [PATCH 10/10] qemu: hotplug: Make qemuHotplugWaitForTrayEject reusable

2018-07-17 Thread Peter Krempa
Remove the issue of the monitor command to the caller so that the function can be used with the modern approach. Additionally improve the error message. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-)

[libvirt] [PATCH 08/10] qemu: hotplug: Refactor/simplify PR managed addition to VM

2018-07-17 Thread Peter Krempa
Similarly to qemuDomainDiskRemoveManagedPR make it enter monitor on it's own so that it can be reused. Future users will be in the snapshot code and in removable media change code. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 55 ++--- 1

[libvirt] [PATCH 01/10] qemu: hotplug: Reuse qemuHotplugPrepareDiskAccess in qemuDomainRemoveDiskDevice

2018-07-17 Thread Peter Krempa
qemuHotplugPrepareDiskAccess can be used to tear down disk access so we can replace the open-coded version collecting the same function calls. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git

[libvirt] [PATCH 06/10] qemu: hotplug: Reuse qemuHotplugDiskSourceRemove for disk backend removal

2018-07-17 Thread Peter Krempa
Add code which will convert a disk definition into qemuHotplugDiskSourceData and then reuse qemuHotplugDiskSourceRemove to remove all the backend related objects. This unifies the detach code as much as possible with the already existing helpers and will allow reuse this infrastructure when

[libvirt] [PATCH 05/10] qemu: hotplug: Don't leak 'disk' if VM crashes during unplug finishing

2018-07-17 Thread Peter Krempa
qemuDomainRemoveDiskDevice would leak the disk to be removed if the VM crashed since it was removed from the definition but not freed. Broken in commit 105bcdde76b which moved the removal from the definition earlier. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 8 ++-- 1 file

[libvirt] [PATCH 02/10] qemu: hotplug: Remove pointless variable

2018-07-17 Thread Peter Krempa
Now that there's only one use of it, replace it directly by the code filling it. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index ee26fb4f52..20efb01dbf 100644

[libvirt] [PATCH 04/10] qemu: hotplug: Prepare for multiple backing chain member hotplug

2018-07-17 Thread Peter Krempa
Similarly to how we've intergrated data belonging to a single virStorageSource for purposes of attaching it to a qemu instance we will need to agregate data relevant for the whole disk. With blockdev there will be some disk-wide backing chain members such as the copy-on-read handler. Introduce

[libvirt] [PATCH 00/10] qemu: hotplug: Refactor for -blockdev support (blockdev-add saga)

2018-07-17 Thread Peter Krempa
A bunch of refactors which could be separated from my blockdev add branch. The patches modify the disk hotplug/unplug and media change code so that we can easily add support for -blockdev later on. Peter Krempa (10): qemu: hotplug: Reuse qemuHotplugPrepareDiskAccess in

[libvirt] [PATCH 09/10] qemu: hotplug: Extract legacy disk media changing bits

2018-07-17 Thread Peter Krempa
Prepare for the -blockdev implementation of ejectable media changing by splitting up the old bits. Additionally since both callers make sure that the device is a cdrom or floppy the check is no longer necessary. Signed-off-by: Peter Krempa --- src/qemu/qemu_hotplug.c | 99

[libvirt] [PATCH 07/10] qemu: hotplug: Simplify removal of managed PR infrastructure on unplug

2018-07-17 Thread Peter Krempa
Extract the (possible) removal of the PR backend and daemon into a separate helper which enters monitor on it's own. This simplifies the code and allows reuse of this function in the future e.g. for blockjobs where removing a image with PR may result into PR not being necessary. Since the PR is

[libvirt] [PATCH 03/10] qemu: hotplug: Don't format NULL in %s in qemuHotplugPrepareDiskAccess

2018-07-17 Thread Peter Krempa
The warning messages which include the disk source could potentially format NULL using %s as virDomainDiskGetSource may return NULL for e.g. NBD disks. As most of the APIs are NOOP for remote disks the usage of the source string only should be fine for now. Signed-off-by: Peter Krempa ---

[libvirt] [PATCH v2 0/2] Minor fixes for virTypedParams(De)Serialize

2018-07-17 Thread Marc Hartmayer
Changelog: + v1->v2: - Removed the the allocation change in virTypedParams(De)Serialize (John's comment) Marc Hartmayer (2): virTypedParamsSerialize: set remote_params_len at the end virTypedParamsDeserialize: set nparams to 0 in case of an error src/util/virtypedparam.c | 6 --

[libvirt] [PATCH v2 1/2] virTypedParamsSerialize: set remote_params_len at the end

2018-07-17 Thread Marc Hartmayer
From: Marc Hartmayer Update the length @remote_params_len only if the related @remote_params_val has also been set. Signed-off-by: Marc Hartmayer --- src/util/virtypedparam.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/virtypedparam.c

[libvirt] [PATCH v2 2/2] virTypedParamsDeserialize: set nparams to 0 in case of an error

2018-07-17 Thread Marc Hartmayer
From: Marc Hartmayer Signed-off-by: Marc Hartmayer --- src/util/virtypedparam.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virtypedparam.c b/src/util/virtypedparam.c index c5fc68418c35..ef84642ee989 100644 --- a/src/util/virtypedparam.c +++ b/src/util/virtypedparam.c @@

Re: [libvirt] opening tap devices that are created in a container

2018-07-17 Thread Roman Mohr
On Wed, Jul 11, 2018 at 12:10 PM wrote: > On Mon, Jul 09, 2018 at 05:00:49PM -0400, Jason Baron wrote: > > > > > >On 07/08/2018 02:01 AM, Martin Kletzander wrote: > >> On Thu, Jul 05, 2018 at 06:24:20PM +0200, Roman Mohr wrote: > >>> On Thu, Jul 5, 2018 at 4:20 PM Jason Baron wrote: > >>> >

Re: [libvirt] opening tap devices that are created in a container

2018-07-17 Thread Martin Kletzander
[Not sure who got this message, but it probably didn't get anywhere due to one mailserver, so resending to make sure] On Mon, Jul 09, 2018 at 05:00:49PM -0400, Jason Baron wrote: On 07/08/2018 02:01 AM, Martin Kletzander wrote: On Thu, Jul 05, 2018 at 06:24:20PM +0200, Roman Mohr wrote: On

Re: [libvirt] [PATCH] qemu: hotplug: don't overwrite error message in qemuDomainAttachNetDevice

2018-07-17 Thread Ján Tomko
On Fri, Jul 13, 2018 at 05:31:48PM +0200, Katerina Koukiou wrote: Since commit f14c37, virDomainConfVMNWFilterTeardown is reporting errors thus any previously reported error gets overwritten. We need to save the errors in qemuDomainAttachNetDevice before calling this function when we are in

Re: [libvirt] [PATCH 3/3] m4: Work around MinGW detection of strncpy() usage

2018-07-17 Thread Daniel P . Berrangé
On Tue, Jul 17, 2018 at 01:09:57PM +0200, Andrea Bolognani wrote: > With the recent update in Fedora Rawhide, MinGW has > started freaking out about our use of strncpy(): > > In function 'virStrncpy', > inlined from 'virStrcpy' at ../../src/util/virstring.c:811:12: >

[libvirt] [PATCH 1/3] src: Use virStrcpyStatic() to avoid truncation

2018-07-17 Thread Andrea Bolognani
The way virStrncpy() is called here will never result in buffer overflow, but it won't prevent or detect truncation either, despite what the error message might suggest. Use virStrcpyStatic(), which does all of the above, instead. Signed-off-by: Andrea Bolognani --- src/esx/esx_driver.c |

[libvirt] [PATCH 3/3] m4: Work around MinGW detection of strncpy() usage

2018-07-17 Thread Andrea Bolognani
With the recent update in Fedora Rawhide, MinGW has started freaking out about our use of strncpy(): In function 'virStrncpy', inlined from 'virStrcpy' at ../../src/util/virstring.c:811:12: ../../src/util/virstring.c:789:11: error: 'strncpy' output truncated before terminating nul

[libvirt] [PATCH 0/3] virStr*cpy*() related fixes and cleanups

2018-07-17 Thread Andrea Bolognani
1/3 contains bug fixes, 2/3 a bunch of cleanups and 3/3 makes libvirt build again on MinGW. Andrea Bolognani (3): src: Use virStrcpyStatic() to avoid truncation src: Use virStrcpyStatic() wherever possible m4: Work around MinGW detection of strncpy() usage cfg.mk | 2

[libvirt] [PATCH 2/3] src: Use virStrcpyStatic() wherever possible

2018-07-17 Thread Andrea Bolognani
This convenience macro was created for the simple cases where the length of the source string and the size of the destination buffer can be figued out with strlen() and sizeof() respectively, so we should use it wherever possible instead of open-coding parts of it. Signed-off-by: Andrea Bolognani

Re: [libvirt] [jenkins-ci PATCH v2 02/12] lcitool: Stub out Python implementation

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 11:16 +0200, Katerina Koukiou wrote: > On Thu, Jul 12, 2018 at 05:19:19PM +0200, Andrea Bolognani wrote: > > +# This is necessary to maintain Python 2.7 compatibility > > +try: > > +import configparser > > +except ImportError: > > +import ConfigParser as configparser

Re: [libvirt] [PATCH v3 7/8] qemu: command: Enable formatting vfio-pci.display option onto cmdline

2018-07-17 Thread Ján Tomko
On Mon, Jul 16, 2018 at 03:51:40PM +0200, Erik Skultety wrote: On Fri, Jul 13, 2018 at 03:06:05PM +0200, Ján Tomko wrote: On Wed, Jul 11, 2018 at 03:58:27PM +0200, Erik Skultety wrote: > Since QEMU 2.12, QEMU understands a new vfio-pci device option 'display' > which can be used to turn on

Re: [libvirt] [PATCH v3 1/1] qemu: Add entry for balloon stat stat-disk-caches

2018-07-17 Thread Tomáš Golembiovský
whops, I didn't notice the other email... please ignore :) Tomas On Tue, 17 Jul 2018 12:02:35 +0200 Tomáš Golembiovský wrote: > ping -- Tomáš Golembiovský -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH v3 1/1] qemu: Add entry for balloon stat stat-disk-caches

2018-07-17 Thread Tomáš Golembiovský
Thanks Tomas On Mon, 16 Jul 2018 17:45:35 -0400 John Ferlan wrote: > On 07/02/2018 07:19 AM, Tomáš Golembiovský wrote: > > QEMU commit bf1e7140e adds reporting of new balloon statistic to QEMU > > 2.12. Value represents the amount of memory that can be quickly > > reclaimed without

Re: [libvirt] [PATCH v3] qemu: fix broken autostart symlink after renaming domain.

2018-07-17 Thread Erik Skultety
On Tue, Jul 17, 2018 at 12:52:40AM -0300, Julio Faracco wrote: > If a domain is configured to start on boot, it has a symlink to the > domain definition inside the autostart directory. If you rename this > domain, the definition is renamed too. The symlink need to be pointed to > this renamed

Re: [libvirt] [PATCH v3 1/1] qemu: Add entry for balloon stat stat-disk-caches

2018-07-17 Thread Tomáš Golembiovský
ping -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [jenkins-ci PATCH v2 04/12] lcitool: Add inventory handling

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:21PM +0200, Andrea Bolognani wrote: > We use an actual YAML parser this time around, and bring > the behavior more in line with what Ansible is doing, so > interoperability should be more solid overall. > > New in this implementation is more flexibility in defining >

Re: [libvirt] [PATCH v2 2/2] tests: Update capabilities data for QEMU 2.12+ x86_64

2018-07-17 Thread Erik Skultety
On Tue, Jul 17, 2018 at 09:44:07AM +0200, Peter Krempa wrote: > On Mon, Jul 16, 2018 at 16:57:13 +0200, Erik Skultety wrote: > > The original capabilities didn't include a patched kernel for spectre > > and meltdown, SPICE gl support and had xen support enabled which we > > already have dropped. >

Re: [libvirt] [PATCH] maint: update to latest gnulib

2018-07-17 Thread Andrea Bolognani
On Tue, 2018-07-17 at 10:29 +0100, Daniel P. Berrangé wrote: > On Tue, Jul 17, 2018 at 10:14:18AM +0200, Andrea Bolognani wrote: > > It looks like gnulib commit 2afc250c6fae changed the ffs() > > detection code, and now when compiling with MinGW I get HAVE_FFS=1 > > instead of HAVE_FFS=0 and the

Re: [libvirt] [jenkins-ci PATCH v2 03/12] lcitool: Add tool configuration handling

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:20PM +0200, Andrea Bolognani wrote: > The on-disk configuration format and its behavior > are fully backwards compatible with the previous > implementation. > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 112

Re: [libvirt] [PATCH] maint: update to latest gnulib

2018-07-17 Thread Daniel P . Berrangé
On Tue, Jul 17, 2018 at 10:14:18AM +0200, Andrea Bolognani wrote: > On Sat, 2018-07-14 at 09:20 +0200, Michal Privoznik wrote: > > The changelog is quite long because we haven't updated gnulib in > > a while. Anyway, among the new changes you'll find GCC 8 support, > > faster build time, mingw

[libvirt] [PATCH] Update to latest gnulib to fix ffs() detection on mingw

2018-07-17 Thread Daniel P . Berrangé
ffs() was not correctly detected on mingw with previous gnulib rebase: https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html. Signed-off-by: Daniel P. Berrangé --- .gnulib | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Pushed as a mingw build fix diff --git a/.gnulib

Re: [libvirt] [jenkins-ci PATCH v2 02/12] lcitool: Stub out Python implementation

2018-07-17 Thread Katerina Koukiou
On Thu, Jul 12, 2018 at 05:19:19PM +0200, Andrea Bolognani wrote: > Doesn't do much right now, but it's a start :) > > Signed-off-by: Andrea Bolognani > --- > guests/lcitool | 69 ++ > 1 file changed, 69 insertions(+) > create mode 100755

Re: [libvirt] [RFC PATCHv2 00/10] x86 RDT Cache Monitoring Technology (CMT)

2018-07-17 Thread Martin Kletzander
On Tue, Jul 17, 2018 at 07:19:41AM +, Wang, Huaqiang wrote: Hi Martin, Thanks for your comments. Please see my reply inline. -Original Message- From: Martin Kletzander [mailto:mklet...@redhat.com] Sent: Tuesday, July 17, 2018 2:27 PM To: Wang, Huaqiang Cc: libvir-list@redhat.com;

  1   2   >