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

2018-08-20 Thread Michal Prívozník
On 08/20/2018 05:07 PM, Daniel P. Berrangé wrote: > On Tue, Aug 14, 2018 at 01:19:42PM +0200, Michal Privoznik wrote: >> 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.

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

2018-08-20 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 01:19:42PM +0200, Michal Privoznik wrote: > 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

Re: [libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 17:00 +0200, Erik Skultety wrote: > On Fri, Aug 10, 2018 at 03:37:45PM +0200, Andrea Bolognani wrote: > > None of our jobs create the archives as a side-effect, so > > trying to remove them before generating them is pointless. > > Who cleans them after the jobs below? Is

[libvirt] [PATCH] conf: Parse guestfwd channel device info again

2018-08-20 Thread Michal Privoznik
https://bugzilla.redhat.com/show_bug.cgi?id=1610072 Due to historical reasons we were not parsing device info on guestfwd channel. Sure, it doesn't make much sense to parse but it surely makes sense to parse its alias (which might be an user alias). This reverts commit

Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Erik Skultety
On Mon, Aug 20, 2018 at 04:37:13PM +0200, Andrea Bolognani wrote: > On Mon, 2018-08-20 at 16:01 +0200, Erik Skultety wrote: > > On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > > > - $PYTHON ./setup.py rpm > > > + rm -f dist/*.tar.{{ archive_format }} > > > +

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

2018-08-20 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 01:19:43PM +0200, Michal Privoznik wrote: > 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

Re: [libvirt] [jenkins-ci PATCH 4/5] jobs: Minimize strip_buildrequires

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:11 +0200, Erik Skultety wrote: > On Fri, Aug 10, 2018 at 03:37:44PM +0200, Andrea Bolognani wrote: > >sed -i -e 's/BuildRequires: *perl(Sys::Virt).*//' *.spec* > > - sed -i -e 's/BuildRequires: *perl-Sys-Virt.*//' *.spec* > > I assume because ^these 2 are

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

2018-08-20 Thread Michal Prívozník
On 08/20/2018 05:04 PM, Daniel P. Berrangé wrote: > On Mon, Aug 20, 2018 at 03:59:23PM +0100, Daniel P. Berrangé wrote: >> On Fri, Aug 17, 2018 at 10:49:12AM -0400, John Ferlan wrote: >>> >>> >>> On 08/14/2018 07:19 AM, Michal Privoznik wrote: No real support implemented here. But hey, at

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

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 04:07:28PM +0100, Daniel P. Berrangé wrote: > On Tue, Aug 14, 2018 at 01:19:42PM +0200, Michal Privoznik wrote: > > 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

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

2018-08-20 Thread Michal Prívozník
On 08/20/2018 05:16 PM, Daniel P. Berrangé wrote: > On Tue, Aug 14, 2018 at 01:19:43PM +0200, Michal Privoznik wrote: >> 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 >>

Re: [libvirt] Matching the type of mediated devices in the migration

2018-08-20 Thread Alex Williamson
On Sun, 19 Aug 2018 22:25:19 +0800 Zhi Wang wrote: > Share some updates of my work on this topic recently: > > Thanks for Erik's guide and advices. Now my PoC patches almost works. > Will send the RFC soon. > > Mostly the ideas are based on Alex's idea: a match between a device > state

[libvirt] [RFC v3] x86 RDT Cache Monitoring Technology (CMT)

2018-08-20 Thread Huaqiang,Wang
For the supporting of Intel x86 Cache Monitoring Technology (CMT) in libvirt, we have already discussed a couple of times, and I have raised two RFCs, you can find the discussion from the following links, and thanks to the people who participated in the discussion online and offline. RFCv2 links

Re: [libvirt] [PATCH v3 06/12] conf: Introduce address caching for PCI extensions

2018-08-20 Thread Yi Min Zhao
在 2018/8/20 下午6:48, Andrea Bolognani 写道: On Mon, 2018-08-20 at 16:32 +0800, Yi Min Zhao wrote: 在 2018/8/16 下午11:03, Andrea Bolognani 写道: I haven't looked into the hash table handling in detail but I wonder if it's really necessary? IIUC you're using it just to mark which uids and fids have

Re: [libvirt] [PATCH v3 12/12] news: Update news for PCI address extension attributes

2018-08-20 Thread Yi Min Zhao
在 2018/8/20 下午6:17, Andrea Bolognani 写道: On Mon, 2018-08-20 at 11:39 +0800, Yi Min Zhao wrote: 在 2018/8/18 上午12:21, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: [...] + + + qemu: Added support for PCI device passthrough on S390 +

Re: [libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.

2018-08-20 Thread Han Han
On Tue, Aug 21, 2018 at 10:34 AM, Julio Faracco wrote: > This serie adds a new function into QEMU Guest Agent handlers to use > the QEMU command 'guest-get-host-name' to retrieve the domain hostname. > This approach requires QEMU-GA running inside the guest, but it is the > fastest and easiest

Re: [libvirt] [PATCH v3 01/12] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-08-20 Thread Yi Min Zhao
在 2018/8/20 下午6:35, Andrea Bolognani 写道: On Mon, 2018-08-20 at 16:19 +0800, Yi Min Zhao wrote: 在 2018/8/16 下午10:38, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: +struct _virZPCIDeviceAddress { +unsigned int zpci_fid; +unsigned int zpci_uid; +bool

Re: [libvirt] [PATCH v3 10/12] qemu: Add hotpluging support for PCI devices on S390 guests

2018-08-20 Thread Yi Min Zhao
在 2018/8/20 下午7:34, Andrea Bolognani 写道: So, I'm very much not familiar with the hotplug code and seeing changes to stuff like qemuDomainAttachDiskGeneric() makes me a bit uncomfortable:) I can't spot anything obviously wrong in your changes, but I think perhaps you might want to enter and

[libvirt] [PATCH v2 1/2] qemu: implementing qemuAgentGetHostname() function.

2018-08-20 Thread Julio Faracco
This commit implements the function qemuAgentGetHostname() that uses the QEMU command 'guest-get-host-name' to retrieve the guest hostname of Virtual Machine. It is a possibility where QEMU-GA is running. Signed-off-by: Julio Faracco --- src/qemu/qemu_agent.c | 42

[libvirt] [PATCH 1/2] virsh: Implement virNodeGetSEVInfo in virsh

2018-08-20 Thread Han Han
Add sub-command nodesevinfo to get node infomation of AMD SEV feature. Signed-off-by: Han Han --- tools/virsh-host.c | 66 ++ tools/virsh.pod| 5 2 files changed, 71 insertions(+) diff --git a/tools/virsh-host.c b/tools/virsh-host.c index

[libvirt] [PATCH 0/2] Add nodesevinfo in virsh

2018-08-20 Thread Han Han
Add virsh nodesevinfo to get AMD SEV features via virNodeGetSEVInfo. Han Han (2): virsh: Implement virNodeGetSEVInfo in virsh news: Add nodesevinfo command in virsh docs/news.xml | 9 +++ tools/virsh-host.c | 66 ++ tools/virsh.pod|

[libvirt] [PATCH 2/2] news: Add nodesevinfo command in virsh

2018-08-20 Thread Han Han
Signed-off-by: Han Han --- docs/news.xml | 9 + 1 file changed, 9 insertions(+) diff --git a/docs/news.xml b/docs/news.xml index c6d03f5556..fc9db92d05 100644 --- a/docs/news.xml +++ b/docs/news.xml @@ -63,6 +63,15 @@ Support the vhost-vsock-ccw device on S390.

[libvirt] [PATCH v2 2/2] qemu: adding domainGetHostname support for QEMU.

2018-08-20 Thread Julio Faracco
This commit add the support to use the function qemuAgentGetHostname() for obtain the domain hostname using QEMU-GA command. Signed-off-by: Julio Faracco --- src/qemu/qemu_driver.c | 40 1 file changed, 40 insertions(+) diff --git

[libvirt] [PATCH v2 0/2] Add .domainGetHostname() support for QEMU driver.

2018-08-20 Thread Julio Faracco
This serie adds a new function into QEMU Guest Agent handlers to use the QEMU command 'guest-get-host-name' to retrieve the domain hostname. This approach requires QEMU-GA running inside the guest, but it is the fastest and easiest way to get this info. Julio Faracco (2): qemu: implementing

Re: [libvirt] [PATCH 0/2] vnc: remove deprecated TLS related features

2018-08-20 Thread Gerd Hoffmann
Hi, > doc: switch to modern syntax for VNC TLS setup > vnc: remove support for deprecated tls, x509, x509verify options Added to ui queue. thanks, Gerd -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:01 +0200, Erik Skultety wrote: > On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > > - $PYTHON ./setup.py rpm > > + rm -f dist/*.tar.{{ archive_format }} > > + $PYTHON ./setup.py sdist > > + rpmbuild --clean --define

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

2018-08-20 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 01:19:37PM +0200, Michal Privoznik wrote: > 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 +++ >

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

2018-08-20 Thread Daniel P . Berrangé
On Tue, Aug 14, 2018 at 01:19:38PM +0200, Michal Privoznik wrote: > 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

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

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 09:25:18AM +0200, Michal Prívozník wrote: > On 08/17/2018 12:24 AM, John Ferlan wrote: > > > > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: > >> Signed-off-by: Michal Privoznik > >> --- > >> src/locking/lock_driver.h | 2 ++ > >> 1 file changed, 2 insertions(+) >

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

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 09:25:13AM +0200, Michal Prívozník wrote: > On 08/17/2018 01:53 AM, John Ferlan wrote: > > > > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: > >> Signed-off-by: Michal Privoznik > >> --- > >> src/locking/lock_daemon_dispatch.c | 12 ++-- > >>

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

2018-08-20 Thread Daniel P . Berrangé
On Fri, Aug 17, 2018 at 10:49:12AM -0400, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: > > 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

Re: [libvirt] [jenkins-ci PATCH 5/5] jobs: Don't remove non-existing archives

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:45PM +0200, Andrea Bolognani wrote: > None of our jobs create the archives as a side-effect, so > trying to remove them before generating them is pointless. Who cleans them after the jobs below? Is there a chance that you could trigger these jobs in a sequence that

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

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 03:59:23PM +0100, Daniel P. Berrangé wrote: > On Fri, Aug 17, 2018 at 10:49:12AM -0400, John Ferlan wrote: > > > > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: > > > No real support implemented here. But hey, at least we will not > > > fail. > > > > > >

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

2018-08-20 Thread Michal Prívozník
On 08/17/2018 04:49 PM, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: >> 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

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

2018-08-20 Thread Michal Prívozník
On 08/17/2018 12:24 AM, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: >> 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

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

2018-08-20 Thread Michal Prívozník
On 08/17/2018 07:58 PM, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: >> 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

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

2018-08-20 Thread Michal Prívozník
On 08/17/2018 01:53 AM, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: >> Signed-off-by: Michal Privoznik >> --- >> src/locking/lock_daemon_dispatch.c | 12 ++-- >> src/locking/lock_driver_lockd.c| 31 +-- >>

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

2018-08-20 Thread Michal Prívozník
On 08/17/2018 08:38 PM, John Ferlan wrote: > > > On 08/14/2018 07:19 AM, Michal Privoznik wrote: >> Fortunately, we have qemu wrappers so it's sufficient to put >> lock/unlock call only there. >> > > Kind of sparse... Maybe a few words related to what benefit locking the > metadata provides.

[libvirt] [PATCH] storage: fix the error message when encrypted raw volume resize

2018-08-20 Thread Shivaprasad G Bhat
The vol-dumpxml shows the volume target format type as raw for encrypted volumes. The error message when attempting to resize with prealloc is confusing here. Signed-off-by: Shivaprasad G Bhat --- src/storage/storage_util.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

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

2018-08-20 Thread Christian Ehrhardt
Ping - as there was no other review yet for the series except a copy-paste bug spotted (thanks Bjoern) On Tue, Aug 14, 2018 at 11:27 AM Christian Ehrhardt < christian.ehrha...@canonical.com> wrote: > Hi, > after a good discussion a few days ago in >

Re: [libvirt] [PATCH v3 12/12] news: Update news for PCI address extension attributes

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 11:39 +0800, Yi Min Zhao wrote: > 在 2018/8/18 上午12:21, Andrea Bolognani 写道: > > On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: > > [...] > > > + > > > + > > > + qemu: Added support for PCI device passthrough on S390 > > > + > > > +

Re: [libvirt] [PATCH v3 01/12] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:19 +0800, Yi Min Zhao wrote: > 在 2018/8/16 下午10:38, Andrea Bolognani 写道: > > On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: > > > +struct _virZPCIDeviceAddress { > > > +unsigned int zpci_fid; > > > +unsigned int zpci_uid; > > > +bool fid_assigned; > > >

Re: [libvirt] [PATCH v3 06/12] conf: Introduce address caching for PCI extensions

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:32 +0800, Yi Min Zhao wrote: > 在 2018/8/16 下午11:03, Andrea Bolognani 写道: > > I haven't looked into the hash table handling in detail but I > > wonder if it's really necessary? IIUC you're using it just to > > mark which uids and fids have been already used by a device, > >

Re: [libvirt] [PATCH v3 09/12] qemu: Generate and use zPCI device in QEMU command line

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:45 +0800, Yi Min Zhao wrote: > 在 2018/8/17 上午12:31, Andrea Bolognani 写道: > > On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: > > > +virBufferAddLit(, "zpci"); > > > +virBufferAsprintf(, ",uid=%u", dev->addr.pci.zpci->zpci_uid); > > > +virBufferAsprintf(,

Re: [libvirt] [PATCH v3 10/12] qemu: Add hotpluging support for PCI devices on S390 guests

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:04 +0800, Yi Min Zhao wrote: > 在 2018/8/18 上午12:10, Andrea Bolognani 写道: > > On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: > > > This commit adds hotplug support for PCI devices on S390 guests. > > > There's no need to implement hot unplug for zPCI as QEMU

[libvirt] [sandbox PATCH 1/2] configure: Use a single required version for GLib

2018-08-20 Thread Andrea Bolognani
Both GObject and GIO are part of GLib, so there's no point in requiring different versions of the two. Signed-off-by: Andrea Bolognani --- configure.ac | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index f32c735..d2e2636 100644 ---

[libvirt] [sandbox PATCH 2/2] Remove all uses of g_type_class_add_private()

2018-08-20 Thread Andrea Bolognani
The API has been deprecated, which causes build failures on Fedora Rawhide; use the G_DEFINE_TYPE_WITH_PRIVATE() macro instead. This requires bumping the minimum GLib version to 2.38. Signed-off-by: Andrea Bolognani --- configure.ac | 2 +-

Re: [libvirt] [PATCH v3 01/12] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:38, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: +typedef struct _virZPCIDeviceAddress virZPCIDeviceAddress; +typedef virZPCIDeviceAddress *virZPCIDeviceAddressPtr; +struct _virZPCIDeviceAddress { +unsigned int zpci_fid; +unsigned int

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

2018-08-20 Thread Michal Prívozník
On 08/20/2018 09:25 AM, Michal Prívozník wrote: > On 08/17/2018 04:49 PM, John Ferlan wrote: >> >> >> On 08/14/2018 07:19 AM, Michal Privoznik wrote: >>> No real support implemented here. But hey, at least we will not >>> fail. >>> >>> Signed-off-by: Michal Privoznik >>> --- >>>

Re: [libvirt] [PATCH 2/2] qemu: adding domainGetHostname support for QEMU.

2018-08-20 Thread Daniel P . Berrangé
On Sat, Aug 18, 2018 at 02:18:17PM +0200, Peter Krempa wrote: > On Fri, Aug 17, 2018 at 23:25:19 -0300, Julio Faracco wrote: > > This commit add the support to use the function qemuAgentGetHostname() for > > obtain the domain hostname using QEMU-GA command. > > > > Signed-off-by: Julio Faracco >

[libvirt] [PATCH] spec: Add support for RISC-V (riscv64)

2018-08-20 Thread Richard W.M. Jones
From: David Abdurachmanov --- libvirt.spec.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index e7196b7d3b..5cb995a6a4 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -101,7 +101,7 @@ %endif # Numactl is not available on

Re: [libvirt] [sandbox PATCH 1/2] configure: Use a single required version for GLib

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 10:15:05AM +0200, Andrea Bolognani wrote: > Both GObject and GIO are part of GLib, so there's no > point in requiring different versions of the two. > > Signed-off-by: Andrea Bolognani > --- > configure.ac | 7 +++ > 1 file changed, 3 insertions(+), 4 deletions(-)

[libvirt] [sandbox PATCH 0/2] Remove all uses of g_type_class_add_private()

2018-08-20 Thread Andrea Bolognani
This fixes build on Fedora Rawhide. Andrea Bolognani (2): configure: Use a single required version for GLib Remove all uses of g_type_class_add_private() configure.ac | 7 +++ libvirt-sandbox/libvirt-sandbox-builder-container.c| 4

Re: [libvirt] [PATCH v3 02/12] qemu: Introduce zPCI capability

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:39, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: Let's introduce zPCI capability. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by: Bjoern Walk Reviewed-by: Ján Tomko ---

Re: [libvirt] [PATCH v3 04/12] qemu: Enable PCI multi bus for S390 guests

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:45, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: QEMU on s390 supports PCI multibus since forever. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by: Bjoern Walk Reviewed-by: Ján Tomko ---

Re: [libvirt] [PATCH v3 03/12] conf: Introduce a new PCI address extension flag

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:44, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: [...] +qemuDomainDeviceSupportZPCI(virDomainDeviceDefPtr device) +{ +switch ((virDomainDeviceType) device->type) { +case VIR_DOMAIN_DEVICE_CHR: +return false; + +case

Re: [libvirt] [PATCH v3 05/12] qemu: Auto add pci-root for s390/s390x guests

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:52, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: The pci-root depends on zpci capability. So autogenerate pci-root if zpci exists. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by: Bjoern

Re: [libvirt] FYI: libvirt package on Fedora RISC-V

2018-08-20 Thread Andrea Bolognani
On Sun, 2018-08-19 at 19:46 +0100, Richard W.M. Jones wrote: > On Sun, Aug 19, 2018 at 07:44:06PM +0100, Richard W.M. Jones wrote: > > > > http://fedora-riscv.tranquillity.se/koji/taskinfo?taskID=95457 Neat! > > There were some minor changes to the spec file: > > > >

Re: [libvirt] [PATCH v3 09/12] qemu: Generate and use zPCI device in QEMU command line

2018-08-20 Thread Yi Min Zhao
在 2018/8/17 上午12:31, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: [...] +char * +qemuBuildZPCIDevStr(virDomainDeviceInfoPtr dev) +{ +virBuffer buf = VIR_BUFFER_INITIALIZER; + +virBufferAddLit(, "zpci"); +virBufferAsprintf(, ",uid=%u",

Re: [libvirt] [PATCH v3 11/12] docs: Add 'uid' and 'fid' information

2018-08-20 Thread Yi Min Zhao
在 2018/8/18 上午12:19, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: [...] +have multiple functions used. (Since 4.7.0 +), PCI address extensions depending on the architecture +are supported. E.g. for S390 guests, PCI addresses have +

Re: [libvirt] [sandbox PATCH 2/2] Remove all uses of g_type_class_add_private()

2018-08-20 Thread Daniel P . Berrangé
On Mon, Aug 20, 2018 at 10:15:06AM +0200, Andrea Bolognani wrote: > The API has been deprecated, which causes build failures > on Fedora Rawhide; use the G_DEFINE_TYPE_WITH_PRIVATE() > macro instead. > > This requires bumping the minimum GLib version to 2.38. > > Signed-off-by: Andrea Bolognani

Re: [libvirt] [PATCH v3 07/12] conf: Introduce parser, formatter for uid and fid

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午11:14, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: [...] +static int +virZPCIDeviceAddressIsValid(virZPCIDeviceAddressPtr zpci) +{ +if (zpci->uid_assigned && +(zpci->zpci_uid > VIR_DOMAIN_DEVICE_ZPCI_MAX_UID || + zpci->zpci_uid

[libvirt] [PATCH] qemu: domain: validate memory access during validate domain config

2018-08-20 Thread Luyao Huang
commit 6534b3c4 try to raise an error when there is no numa nodes but set access='shared' in domain config. In that commit, we add a memory access validate function for memory device, but this check is not related to memory device and won't work if there is no memory device in guest xml. Move the

Re: [libvirt] [PATCH v3 10/12] qemu: Add hotpluging support for PCI devices on S390 guests

2018-08-20 Thread Yi Min Zhao
在 2018/8/18 上午12:10, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: This commit adds hotplug support for PCI devices on S390 guests. There's no need to implement hot unplug for zPCI as QEMU implements an unplug callback which will unplug both PCI and zPCI device in

Re: [libvirt] [PATCH v3 01/12] conf: Add definitions for 'uid' and 'fid' PCI address attributes

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午10:38, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: +typedef struct _virZPCIDeviceAddress virZPCIDeviceAddress; +typedef virZPCIDeviceAddress *virZPCIDeviceAddressPtr; +struct _virZPCIDeviceAddress { +unsigned int zpci_fid; +unsigned int

Re: [libvirt] [PATCH v3 06/12] conf: Introduce address caching for PCI extensions

2018-08-20 Thread Yi Min Zhao
在 2018/8/16 下午11:03, Andrea Bolognani 写道: On Tue, 2018-08-07 at 17:10 +0800, Yi Min Zhao wrote: This patch provides a caching mechanism for the device address extensions uid and fid on S390. For efficient sparse address allocation, we introduce two hash tables for uid/fid which hold the

Re: [libvirt] FYI: libvirt package on Fedora RISC-V

2018-08-20 Thread Richard W.M. Jones
On Mon, Aug 20, 2018 at 10:40:42AM +0200, Andrea Bolognani wrote: > On Sun, 2018-08-19 at 19:46 +0100, Richard W.M. Jones wrote: > > On Sun, Aug 19, 2018 at 07:44:06PM +0100, Richard W.M. Jones wrote: > > > > > > http://fedora-riscv.tranquillity.se/koji/taskinfo?taskID=95457 > > Neat! > > > >

Re: [libvirt] [PATCH] spec: Add support for RISC-V (riscv64)

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 09:59 +0100, Richard W.M. Jones wrote: > From: David Abdurachmanov We require a Signed-off-by for libvirt contributions these days, so we can't merge this patch unless it's provided. [...] > # Numactl is not available on s390[x] and ARM Comment should be updated to

[libvirt] [PATCH v2 0/8] storage: Resolve some locking issues

2018-08-20 Thread Michal Privoznik
Technically, this is a v2 of: https://www.redhat.com/archives/libvir-list/2018-August/msg00624.html but majority of the patches are new. The review of the patch from above made me look into storage pool locking more and I have found some issues. For best view of the patches (esp. 4/8 use

[libvirt] [PATCH v2 3/8] virstorageobj: Check for duplicates from virStoragePoolObjAssignDef

2018-08-20 Thread Michal Privoznik
Even though we do some checking is not as thorough as it should be. We already have virStoragePoolObjIsDuplicate but the way we use it is a typical TOCTOU. Imagine two threads trying to define two pools with the same name but different UUIDs. With the current code neither of them finds a duplicate

[libvirt] [PATCH v2 6/8] virstorageobj: Check for source duplicates from virStoragePoolObjAssignDef

2018-08-20 Thread Michal Privoznik
Just like a few commits earlier, checking for pool source duplicates and unlocking pools list afterwards is a buggy pattern. The check must go into virStoragePoolObjAssignDef. Signed-off-by: Michal Privoznik --- src/conf/virstorageobj.c | 7 --- src/conf/virstorageobj.h | 4

[libvirt] [PATCH v2 4/8] virstorageobj: Move virStoragePoolObjSourceFindDuplicate and friends up

2018-08-20 Thread Michal Privoznik
This function is going to be made static in used in virStoragePoolObjAssignDef(). Therefore move it and all the static functions it calls a few lines up. Signed-off-by: Michal Privoznik --- src/conf/virstorageobj.c | 788 +++ 1 file changed, 394

[libvirt] [PATCH v2 7/8] storage_driver: Mark volume as 'in use' for some operations

2018-08-20 Thread Michal Privoznik
There are few operations in the storage driver that read/write data onto volumes. Such operations can take very long time to finish. During that time the storage pool object is locked which has bad performance impacts (other threads can't fetch its XML for instance). This commit prepares the

[libvirt] [PATCH v2 5/8] virStoragePoolObjSourceFindDuplicate: Drop @conn argument

2018-08-20 Thread Michal Privoznik
The @conn argument is needed only to do some source matching in case of iSCSI source. Anyway, it's used just for node device driver and as such can be replaced with virGetConnectNodeDev(). At the same time, the @conn struct member is dropped from _virStoragePoolObjFindDuplicateData.

[libvirt] [PATCH v2 8/8] storage_driver: Release pool object lock for some long running jobs

2018-08-20 Thread Michal Privoznik
As advertised in previous commit, there are three APIs that might run for quite some time (because they read/write data from/to a volume) and these three are: downloadVol, uploadVol, wipeVol. Release pool object lock and reacquire it later to allow more concurrency. Signed-off-by: Michal

[libvirt] [PATCH v2 2/8] virstorageobj: Move virStoragePoolObjIsDuplicate up

2018-08-20 Thread Michal Privoznik
This function is going to be made static in used in virStoragePoolObjAssignDef(). Therefore move it a few lines up. Signed-off-by: Michal Privoznik --- src/conf/virstorageobj.c | 124 +++ 1 file changed, 62 insertions(+), 62 deletions(-) diff --git

[libvirt] [PATCH v2 1/8] storage_backend_rbd: Drop ATTRIBUTE_UNUSED for arguments that are used

2018-08-20 Thread Michal Privoznik
In two places the passed pool object argument is marked as ATTRIBUTE_UNUSED even though it's used right away. Signed-off-by: Michal Privoznik --- src/storage/storage_backend_rbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/storage/storage_backend_rbd.c

Re: [libvirt] [jenkins-ci PATCH 4/5] jobs: Minimize strip_buildrequires

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:44PM +0200, Andrea Bolognani wrote: > We can drop some entries and tweak some others to be > less verbose without losing in functionality. > > Signed-off-by: Andrea Bolognani > --- > jobs/defaults.yaml | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >

Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > Instead of using the custom 'rpm' target of setup.py, > generate a dist archive using the 'sdist' target and then > call rpmbuild ourselves: this way we can define _topdir > and stop artifacts from ending up in ~/rpmbuild. > >

Re: [libvirt] [jenkins-ci PATCH 2/5] jobs: Call rpmbuild and sed consistently

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:42PM +0200, Andrea Bolognani wrote: > Doing so will allow us to refactor away the common parts. > > Signed-off-by: Andrea Bolognani > --- Reviewed-by: Erik Skultety -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [jenkins-ci PATCH 3/5] jobs: Introduce strip_buildrequires

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:43PM +0200, Andrea Bolognani wrote: > There's no harm in attempting to strip more BuildRequires > than are present in a spec file, so define a shell snippet > we can reuse for the the purpose without duplicating the > same lines all over the place. > > Signed-off-by: