[libvirt] [PATCH 2/2] Add ccw test cases to qemu hotplug

2016-07-08 Thread Tomasz Flendrich
These tests verify that qemu hotplug is working properly with ccw devices. There are both simple tests and more complex ones, like adding a second ccw device or removing the first out of two ccw devices. --- tests/qemuhotplugtest.c | 37 + 1 file changed, 37 ins

[libvirt] [PATCH 1/2] Add qemu hotplug test files

2016-07-08 Thread Tomasz Flendrich
--- .../qemuhotplug-ccw-virtio-1-explicit-reverse.xml | 8 +++ .../qemuhotplug-ccw-virtio-1-explicit.xml | 8 +++ .../qemuhotplug-ccw-virtio-2-explicit.xml | 8 +++ .../qemuhotplug-ccw-virtio-2.xml | 8 +++ .../qemuhotplug-ccw-virtio.xml

[libvirt] [PATCH 0/2] Add qemu hotplug tests with ccw devices

2016-07-08 Thread Tomasz Flendrich
These changes require another patch, or else there would be conflicts: [libvirt] [PATCH 0/3] Clean up qemuhotplugtest xml files https://www.redhat.com/archives/libvir-list/2016-July/msg00202.html Hotplugging ccw devices was previously not tested, so I decided to add some testcases because I plan

[libvirt] [PATCH] bhyve: implement virConnectGetDomainCapabilities

2016-07-08 Thread Fabian Freyer
This patch adds virConnectGetDomainCapabilities support for bhyve. --- src/bhyve/bhyve_capabilities.c | 26 src/bhyve/bhyve_capabilities.h | 5 src/bhyve/bhyve_driver.c | 56 ++ 3 files changed, 87 insertions(+) diff --git

[libvirt] [PATCH v5 3/6] bhyve: implement virConnectDomainXMLFromNative

2016-07-08 Thread Fabian Freyer
First, remove escaped newlines and split up the string into an argv-list for the bhyve and loader commands, respectively. This is done by iterating over the string splitting it by newlines, and then re-iterating over each line, splitting it by spaces. Since this code reuses part of the code of qem

[libvirt] [PATCH v5 6/6] Add some tests for bhyveParseCommandLineString

2016-07-08 Thread Fabian Freyer
--- tests/Makefile.am | 23 ++- .../bhyveargv2xmldata/bhyveargv2xml-acpiapic.args | 9 + tests/bhyveargv2xmldata/bhyveargv2xml-acpiapic.xml | 20 ++ tests/bhyveargv2xmldata/bhyveargv2xml-ahci-hd.args | 8 + tests/bhyveargv2xmldata/bhyveargv2xml-ahci-hd.xml

[libvirt] [PATCH v5 4/6] bhyve: implement bhyve argument parser

2016-07-08 Thread Fabian Freyer
A simpe getopt-based argument parser is added for the /usr/sbin/bhyve command, loosely based on its argument parser, which reads the following from the bhyve command line string: * vm name * number of vcpus * memory size * the time offset (UTC or localtime) * features: * acpi * ioapic: While t

[libvirt] [PATCH v5 1/6] config-post.h: define __GNUC_PREREQ if not defined

2016-07-08 Thread Fabian Freyer
Several gnulib headers rely on features.h being included by ctype.h to provide __GNUC_PREREQ, but on systems without glibc, this is not provided. In these cases __GNUC_PREREQ gets redefined to 0, which causes build errors from checks in src/internal.h. Therefore, define __GNUC_PREREQ as early as po

[libvirt] [PATCH v5 0/6] bhyve: virConnectDomainXMLFromNative

2016-07-08 Thread Fabian Freyer
Differences to v4: - fixed various memory leaks - various style improvements by Roman Bogorodskiy and fixes for his comments on v4 Link to v4: https://www.redhat.com/archives/libvir-list/2016-June/msg02138.html Link to v3: https://www.redhat.com/archives/libvir-list/2016-June/msg

[libvirt] [PATCH v5 2/6] gnulib: add getopt module

2016-07-08 Thread Fabian Freyer
Unconditionally use gnulib's getopt module. This is needed by the bhyve driver to provide a reentrant interface for getopt. --- bootstrap.conf | 1 + m4/virt-driver-bhyve.m4 | 3 +++ po/POTFILES.in | 1 + 3 files changed, 5 insertions(+) diff --git a/bootstrap.conf b/bootstrap.c

[libvirt] [PATCH v5 5/6] bhyve: implement argument parser for loader

2016-07-08 Thread Fabian Freyer
A simple getopt-based argument parser is added for the /usr/sbin/bhyveload command, loosely based on its argument parser. The boot disk is guessed by iterating over all disks and matching their sources. If any non-default arguments are found, def->os.bootloaderArgs is set accordingly, and the boot

[libvirt] [PATCH] tests: env perl shebang for test-wrap-argv.pl

2016-07-08 Thread Fabian Freyer
On some systems perl is not necessarily in /usr/bin/perl. Use the perl version in the PATH instead. --- tests/test-wrap-argv.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-wrap-argv.pl b/tests/test-wrap-argv.pl index d66f5b4..b053f28 100755 --- a/tests/test-wrap-

Re: [libvirt] [PATCH] libvirt.spec.in: soft-static allocation of qemu and kvm groups

2016-07-08 Thread Andrea Bolognani
On Thu, 2016-07-07 at 17:41 +0200, Jaroslav Suchanek wrote: > Follow the same logic for adding qemu user also for kvm and qemu groups. As > is described in https://fedoraproject.org/wiki/Packaging:UsersAndGroups > document there should be preallocated UIDs and GIDs for libvirt. A check for > requir

Re: [libvirt] [PATCH 05/11] tests: qemuxml2xml: Format status XML header dynamically

2016-07-08 Thread Michal Privoznik
On 07.07.2016 15:41, Peter Krempa wrote: > Status XML tests were done by prepending a constant string to an > existing XML. With the planned changes the header will depend on data > present in the definition rather than just on the data that was parsed. > > The first dynamic element in the header

Re: [libvirt] [PATCH 07/11] conf: Add private data for virDomainVcpuDef

2016-07-08 Thread Michal Privoznik
On 07.07.2016 15:41, Peter Krempa wrote: > Allow to store driver specific data on a per-vcpu basis. > > Move of the virDomainDef*Vcpus* functions was necessary as > virDomainXMLOptionPtr was declared below this block and I didn't want to > split the function headers. > --- > src/conf/domain_conf.

Re: [libvirt] [PATCH 00/11] vCPU information storage improvements

2016-07-08 Thread Michal Privoznik
On 07.07.2016 15:40, Peter Krempa wrote: > Cleanups and improvements that will make adding the new vCPU hotplug that was > recently added to qemu easier. > > Peter Krempa (11): > conf: Annotate that private data for objects are not copied > conf: Extract code formatting vCPU info > conf: Ren

[libvirt] [PATCH RFC 3/5] libxl: implement virConnectCompareCPU

2016-07-08 Thread Joao Martins
Implement support for "virsh cpu-compare" so that we can calculate common cpu element between a pool of hosts, which had a requirement of providing host cpu description. Signed-off-by: Joao Martins --- src/libxl/libxl_driver.c | 38 ++ 1 file changed, 38 inser

[libvirt] [PATCH RFC 2/5] libxl: describe host cpu features based on hwcaps

2016-07-08 Thread Joao Martins
Parse libxl_hwcaps accounting for versions for Xen 4.4. libxl_hwcaps is a set of cpuid leaves output that is described in [0] or [1] in Xen 4.7. This is a collection of CPUID leaves that are we version in libvirt whenever leaves are reordered or added. Thus we keep the common ones in one struct and

[libvirt] [PATCH RFC 0/5] libxl: host cpu element in capabilities

2016-07-08 Thread Joao Martins
Hey! This series is the RFC I mentioned in cpu map discussion for libxl[0]. That is to implement host.cpu element in caps,by getting topology and xen hwcaps parsing done, followed by having cpu-{compare,baseline} and get cpu models APIs implemented. Last thing missing I think it would be to libxl_

[libvirt] [PATCH RFC 5/5] libxl: implement virConnectGetCPUModelNames

2016-07-08 Thread Joao Martins
Useful for libvirt users (e.g. virt-manager) to extract CPU map described model names. However setting of cpuid is not yet implemented. Signed-off-by: Joao Martins --- src/libxl/libxl_driver.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/libxl/libxl_driver.c b/src/lib

[libvirt] [PATCH RFC 1/5] libxl: describe host topology in capabilities

2016-07-08 Thread Joao Martins
Refactor code from hwcaps to its own helper namely libxlCapsInitCPU to handle all host cpu related operations. Signed-off-by: Joao Martins --- src/libxl/libxl_capabilities.c | 46 +- 1 file changed, 37 insertions(+), 9 deletions(-) diff --git a/src/libxl/

[libvirt] [PATCH RFC 4/5] libxl: implement virConnectBaselineCPU

2016-07-08 Thread Joao Martins
Akin to previous commit but for "virsh cpu-baseline" which computes a baseline CPU for a set of host cpu elements. Signed-off-by: Joao Martins --- src/libxl/libxl_driver.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_drive

[libvirt] [PATCH REPOST 3/3] qemu: capabilities: Make virHostCPUGetKVMMaxVCPUs() errors fatal

2016-07-08 Thread Andrea Bolognani
An error in virHostCPUGetKVMMaxVCPUs() means we've been unable to access /dev/kvm, or we're running on a platform that doesn't support KVM in the first place. If that's the case, we shouldn't ignore the error and report domcapabilities even though we know the user won't be able to start any KVM gu

[libvirt] [PATCH REPOST 2/3] util: hostcpu: Drop obsolete compatibility code

2016-07-08 Thread Andrea Bolognani
All Linux releases we support (RHEL6 era) include these definitions. --- src/util/virhostcpu.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/src/util/virhostcpu.c b/src/util/virhostcpu.c index a33932f..8a8bda8 100644 --- a/src/util/virhostcpu.c +++ b/src/util/virhostcpu.c @@ -65,

[libvirt] [PATCH REPOST 0/3] Small cleanups and improvements

2016-07-08 Thread Andrea Bolognani
Rebased on top of current master. Previous attempt: https://www.redhat.com/archives/libvir-list/2016-June/msg02037.html Andrea Bolognani (3): util: hostcpu: Add virHostCPUGetKVMMaxVCPUs() stub util: hostcpu: Drop obsolete compatibility code qemu: capabilities: Make virHostCPUGetKVMMaxVC

[libvirt] [PATCH REPOST 1/3] util: hostcpu: Add virHostCPUGetKVMMaxVCPUs() stub

2016-07-08 Thread Andrea Bolognani
If we don't HAVE_LINUX_KVM_H, we can't query /dev/kvm to discover the limits on the number of vCPUs, so we report an error and return a negative value instead. --- src/util/virhostcpu.c | 14 -- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/util/virhostcpu.c b/src/

[libvirt] [PATCH 1/2] qemu: Copy complete domain def in qemuDomainDefFormatBuf

2016-07-08 Thread Jiri Denemark
Playing directly with our live definition, updating it, and reverting it back once we are done is very nice and it's quite dangerous too. Let's just make a copy of the domain definition if needed and do all tricks on the copy. https://bugzilla.redhat.com/show_bug.cgi?id=1320470 Signed-off-by: Jir

[libvirt] [PATCH 0/2] Fix migration with an auto generated channel path

2016-07-08 Thread Jiri Denemark
https://bugzilla.redhat.com/show_bug.cgi?id=1320470 Jiri Denemark (2): qemu: Copy complete domain def in qemuDomainDefFormatBuf qemu: Drop default channel path during migration src/conf/domain_conf.c | 10 +++--- src/qemu/qemu_domain.c | 87 +-

[libvirt] [PATCH 2/2] qemu: Drop default channel path during migration

2016-07-08 Thread Jiri Denemark
Migration to an older libvirt (pre v1.3.0-175-g7140807) is broken because older versions of libvirt generated different channel paths and they didn't drop the default paths when parsing domain XMLs. We'd get such a nice error message: internal error: process exited while connecting to monitor:

Re: [libvirt] cpu_map data access for libxl driver

2016-07-08 Thread Joao Martins
On 07/08/2016 09:08 AM, Cedric Bosdonnat wrote: > Hello Joao! > > On Thu, 2016-07-07 at 16:20 +0100, Joao Martins wrote: >> FYI I too am working on guest config work and have an RFC wrt to >> libvirt host >> cpu detection. Perhaps we could joint work on this? > > I started looking at the host c

Re: [libvirt] [PATCH] qemu: report vcpu state in virDomainGetVcpus

2016-07-08 Thread Viktor Mihajlovski
On 08.07.2016 16:38, Peter Krempa wrote: [snip] >>> >> Right, I can add another API to retrieve only the states, still using >> the same monitor interface. I didn't want to break policy (in fact I >> wasn't aware of that particular one), apologies. > > Well, there isn't much of a policy at this po

Re: [libvirt] [PATCH] qemu: report vcpu state in virDomainGetVcpus

2016-07-08 Thread Peter Krempa
On Fri, Jul 08, 2016 at 16:33:59 +0200, Viktor Mihajlovski wrote: > On 08.07.2016 15:54, Peter Krempa wrote: > > On Fri, Jul 08, 2016 at 15:39:00 +0200, Boris Fiuczynski wrote: > >> From: Viktor Mihajlovski > >> > >> Currently, the virVcpuInfo returned by virDomainGetVcpus() will always > >> repor

Re: [libvirt] [PATCH] qemu: report vcpu state in virDomainGetVcpus

2016-07-08 Thread Viktor Mihajlovski
On 08.07.2016 15:54, Peter Krempa wrote: > On Fri, Jul 08, 2016 at 15:39:00 +0200, Boris Fiuczynski wrote: >> From: Viktor Mihajlovski >> >> Currently, the virVcpuInfo returned by virDomainGetVcpus() will always >> report a state of VIR_VCPU_RUNNING for each defined domain vcpu even if >> the vcpu

Re: [libvirt] [PATCH 0/3] Clean up some duplicated code in qemuProcessSetup* functions

2016-07-08 Thread Michal Privoznik
On 07.07.2016 15:27, Martin Kletzander wrote: > Initially posted in order to achieve something else, but that got > rejected, so at least the cleanup part of it could make it in. > > The previous versions (whose goal was something completely idfferent) are > here: > > - https://www.redhat.com/a

Re: [libvirt] [PATCH 0/2] qemu: use -display none instead of -nographic

2016-07-08 Thread Paolo Bonzini
On 07/07/2016 11:59, Michal Privoznik wrote: > BTW: there are lots of '-nographic' in our > tests/qemuxml2argvdata/qemuxml2argv-*.args files, do we want to update > those to have '-display none' instead? Possibly, but to do that you'd have to add the capability to all the tests. It would be irr

Re: [libvirt] [PATCH] qemu: report vcpu state in virDomainGetVcpus

2016-07-08 Thread Peter Krempa
On Fri, Jul 08, 2016 at 15:39:00 +0200, Boris Fiuczynski wrote: > From: Viktor Mihajlovski > > Currently, the virVcpuInfo returned by virDomainGetVcpus() will always > report a state of VIR_VCPU_RUNNING for each defined domain vcpu even if > the vcpu is currently in the halted state. > > As the

[libvirt] [PATCH] qemu: report vcpu state in virDomainGetVcpus

2016-07-08 Thread Boris Fiuczynski
From: Viktor Mihajlovski Currently, the virVcpuInfo returned by virDomainGetVcpus() will always report a state of VIR_VCPU_RUNNING for each defined domain vcpu even if the vcpu is currently in the halted state. As the monitor interface is in fact reporting the accurate state, it is rather easy t

[libvirt] [libvirt-php][PATCH 05/14] examples: Fix 'if-else' formatting in libvirt.php

2016-07-08 Thread Michal Privoznik
In the file, there are couple of 'if-else' occurrences that just hurt my eyes. For instance, multiline expression should be wrapped in curly braces, if one side of 'else' has curly braces the other one should have them too, and so on. Signed-off-by: Michal Privoznik --- examples/libvirt.php | 10

[libvirt] [libvirt-php][PATCH 11/14] examples: Show screenshot only for active domains

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- examples/index.php | 12 +++- examples/libvirt.php | 5 + 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/examples/index.php b/examples/index.php index dbaa1bf..bdeb506 100644 --- a/examples/index.php +++ b/examples/index.php @@ -

[libvirt] [libvirt-php][PATCH 09/14] examples: Properly detect if we're connected

2016-07-08 Thread Michal Privoznik
So we have this special class Libvirt implemented in examples/libvirt.php. It's aim is to wrap some low-level libvirt APIs into slightly more advanced methods. Now, when instantiating the class, connection URI can be passed in which case the class will connect to it right in the constructor. Howeve

[libvirt] [libvirt-php][PATCH 12/14] examples: Better translate volume perms

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- examples/libvirt.php | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/libvirt.php b/examples/libvirt.php index c30f06a..96aac6e 100644 --- a/examples/libvirt.php +++ b/examples/libvirt.php @@ -502,12 +502,13 @@ class Libvirt {

[libvirt] [libvirt-php][PATCH 04/14] examples: Reformat libvirt.php

2016-07-08 Thread Michal Privoznik
This file is just one class wrapping some libvirt APIs. However, its formatting is just messy. Resolve this. Best viewed with: git show --ignore-space-change Signed-off-by: Michal Privoznik --- examples/libvirt.php | 2308 +- 1 file changed, 115

[libvirt] [libvirt-php][PATCH 01/14] gitignore: Ignore tags file

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 927a4db..8c52e3f 100644 --- a/.gitignore +++ b/.gitignore @@ -33,6 +33,7 @@ autom4te.cache/ m4/* src/*.so stamp-h1 +tags tools/generate-api-docs libvirt-php-*.tar.

[libvirt] [libvirt-php][PATCH 06/14] examples: Fix curly braces indent in libvirt.php

2016-07-08 Thread Michal Privoznik
The majority of the code has opening curly brace at the very same line as the function declaration. Except for the two: _set_last_error() and set_logfile(). Fix them. Signed-off-by: Michal Privoznik --- examples/libvirt.php | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

[libvirt] [libvirt-php][PATCH 08/14] examples: Reformat index.php

2016-07-08 Thread Michal Privoznik
Le sigh. There's too much in this patch, I know. But hey, have you seen the code? It was terrible. Now it's at least slightly better readable. Signed-off-by: Michal Privoznik --- examples/index.php | 1333 ++-- 1 file changed, 657 insertions(+), 67

[libvirt] [libvirt-php][PATCH 10/14] examples: Don't report errors when looking up a domain

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- examples/libvirt.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/libvirt.php b/examples/libvirt.php index 14436d8..2cab7a8 100644 --- a/examples/libvirt.php +++ b/examples/libvirt.php @@ -210,9 +210,9 @@ class Libvirt {

[libvirt] [libvirt-php][PATCH 13/14] examples: Don't fetch volume count for inactive pools

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- examples/libvirt.php | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/libvirt.php b/examples/libvirt.php index 96aac6e..32d8314 100644 --- a/examples/libvirt.php +++ b/examples/libvirt.php @@ -456,12 +456,16 @@ class Libvirt {

[libvirt] [libvirt-php][PATCH 07/14] examples: Reformat header.php

2016-07-08 Thread Michal Privoznik
It's not . Hawk. Signed-off-by: Michal Privoznik --- examples/header.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/header.php b/examples/header.php index c944da0..14d45d9 100644 --- a/examples/header.php +++ b/examples/header.php @@ -4,4 +4,4 @@ | Virtual net

[libvirt] [libvirt-php][PATCH 00/14] Couple of fixes

2016-07-08 Thread Michal Privoznik
This is for examples/ reformat mostly. But there are some other fixes too. BTW: This is pushed, so if you have any objections - patches are welcome :) Michal Privoznik (14): gitignore: Ignore tags file configure: Provide default for php-confdir libvirt-php.spec.in: Honour php-{extensiondir,

[libvirt] [libvirt-php][PATCH 02/14] configure: Provide default for php-confdir

2016-07-08 Thread Michal Privoznik
We use some really weird logic to get the directory where libvirt-php.ini should go. We try to parse 'php-config --configure' output. However, it may happen, that we learn nothing from that. If that's the case, we should provide some sensible default, /etc/php.d/ for instance. Signed-off-by: Micha

[libvirt] [libvirt-php][PATCH 14/14] examples: Switch to ImageMagick for scaling pictures

2016-07-08 Thread Michal Privoznik
Signed-off-by: Michal Privoznik --- configure.ac | 2 ++ examples/index.php | 6 ++--- examples/libvirt.php | 68 libvirt-php.spec.in | 1 + m4/virt-php-extension.m4 | 35 + 5 files changed, 75

[libvirt] [libvirt-php][PATCH 03/14] libvirt-php.spec.in: Honour php-{extensiondir, confdir}

2016-07-08 Thread Michal Privoznik
So while we have the ability to specify where the module should be installed, we are not doing so in the spec file. It's not very wise. Signed-off-by: Michal Privoznik --- libvirt-php.spec.in | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libvirt-php.spec.in b/libvirt-

[libvirt] [PATCH 3/4] virsh: Add option to suppress error in various functions

2016-07-08 Thread Nishith Shah
A bool 'report' has been introduced in various functions, which when set to true will produce the error it is suppposed to produce, and when false, will suppress the error. These functions are used in the next patch for auto-completion. Signed-off-by: Nishith Shah --- tools/vsh.c | 33 ++

[libvirt] [PATCH 1/4] virsh: Break vshCmddefOptParse into helper functions

2016-07-08 Thread Nishith Shah
Decompose vshCmddefOptParse into two helper functions, vshCmddefOptFill and vshCmddefCheckInternals. vshCmddefCheckInternals checks if the internal command definitions are correct or not. vshCmddefOptFill keeps track of the required options and mandatory arguments through opts_required and opts_n

[libvirt] [PATCH 0/4] virsh: Provide better auto-completion

2016-07-08 Thread Nishith Shah
This series of patches are meant to improve existing auto-complete functionality in virsh. The first patch breaks vshCmddefOptParse into two smaller functions, for use later in the third patch. The second patch simply changes the types of variables used in existing readline generators. The third

[libvirt] [PATCH 4/4] virsh: Introduce vshReadlineParse for improved auto-completion

2016-07-08 Thread Nishith Shah
The new function works as expected, and matches the current level of autocomplete offered, along with several other improvements like quotes handling, multiple command completion and space handling. Now, it is easy to introduce options completer here. Signed-off-by: Nishith Shah --- tools/vsh.c

[libvirt] [PATCH 2/4] virsh: Fix variable types in readline generators

2016-07-08 Thread Nishith Shah
Use unsigned int for array indexes and size_t for length variables. Signed-off-by: Nishith Shah --- tools/vsh.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/vsh.c b/tools/vsh.c index dcf99f2..c5d7578 100644 --- a/tools/vsh.c +++ b/tools/vsh.c @@ -2537,7 +2537,8

Re: [libvirt] [PATCH 0/2] qemu: Fix SPICE migration with incorrect URI

2016-07-08 Thread Jiri Denemark
On Wed, Jul 06, 2016 at 12:11:35 +0200, Pavel Hrdina wrote: > On Tue, Jul 05, 2016 at 10:17:38AM +0200, Jiri Denemark wrote: > > https://bugzilla.redhat.com/show_bug.cgi?id=1151723 > > > > ACK series Pushed, thanks. Jirka -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.co

[libvirt] [PATCH] qemu: hotplug: fix changeable media ejection

2016-07-08 Thread Bjoern Walk
Since return code is checked globally at the end of the function, let's make sure that we set it correctly at any point. This fixes a regression introduced in commit 0aa19f35 where the first command to eject changeable media would fail unconditionally. Signed-off-by: Bjoern Walk Reviewed-by: Bor

Re: [libvirt] [PATCH v4 4/6] Add GVirConfigDomainHostdevPci

2016-07-08 Thread Christophe Fergeau
On Wed, Jul 06, 2016 at 10:11:18PM +0100, Zeeshan Ali (Khattak) wrote: > On Thu, May 12, 2016 at 1:28 PM, Christophe Fergeau > wrote: > > Looks I never answered this one. > > > > On Tue, Apr 26, 2016 at 05:04:30PM +0100, Zeeshan Ali (Khattak) wrote: > >> >> +const gchar > >> >> *gvir_config_doma

Re: [libvirt] cpu_map data access for libxl driver

2016-07-08 Thread Cedric Bosdonnat
Hello Joao! On Thu, 2016-07-07 at 16:20 +0100, Joao Martins wrote: > FYI I too am working on guest config work and have an RFC wrt to > libvirt host > cpu detection. Perhaps we could joint work on this? I started looking at the host cpu detection yesterday, but it seems the libxl hw_map bits ar