Re: [libvirt] [PATCH 0/6] security: Add check for invalid security models and duplicates

2015-02-09 Thread Erik Skultety
On 02/06/2015 08:04 PM, Eric Blake wrote: On 02/06/2015 11:13 AM, Erik Skultety wrote: Add a check for invalid security models in per-device configuration as well as a check for seclabel duplicates in per-device configuration Erik Skultety (6): security: Add check for valid security

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Michal Privoznik
On 09.02.2015 14:19, Ján Tomko wrote: On Mon, Feb 09, 2015 at 10:58:29AM +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_* macros. Signed-off-by: Michal Privoznik mpriv...@redhat.com ---

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Ján Tomko
On Mon, Feb 09, 2015 at 09:47:47AM -0500, Laine Stump wrote: On 02/09/2015 08:19 AM, Ján Tomko wrote: On Mon, Feb 09, 2015 at 10:58:29AM +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_*

Re: [libvirt] [PATCHv2] libxl: set IP address when creating NIC

2015-02-09 Thread Jim Fehlig
Jihoon Kim wrote: From: Ji-hoon Kim re...@me.com Currently libxlMakeNic() does not set ip address when creating NIC, this patch makes it to set ip address. FYI, Marek recently sent a patch to do the same https://www.redhat.com/archives/libvir-list/2015-February/msg00139.html I like

Re: [libvirt] [PATCH 07/12] qemu: command: Refactor creation of RNG device commandline

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 04:32:21PM +0100, Peter Krempa wrote: As the RNG device is using an -object as backend refactor the code to use the JSON to commandline generator so that we can reuse the code later in hotplug. --- src/qemu/qemu_command.c | 108

Re: [libvirt] virsh vcpuinfo with tcg

2015-02-09 Thread Daniel P. Berrange
On Mon, Feb 09, 2015 at 03:20:28PM +, Serge Hallyn wrote: Hi, 'virsh vcpuinfo' in 1.2.12 returns an empty line for VMs using tcg. I assume this is due to commit b07f3d821dfb11 which explicitly sets nvcpupids to 0 now. Is 'virsh vcpuinfo' returning nothing just an unfortunate but

Re: [libvirt] [PATCH 01/12] conf: Introduce helper to find duplicate device address

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 16:51:24 +0100, Ján Tomko wrote: On Fri, Feb 06, 2015 at 04:32:15PM +0100, Peter Krempa wrote: When adding devices to the definition it's useful to check whether the devices don't reside on a conflicting address. This patch adds a helper that iterates all device info

[libvirt] virsh vcpuinfo with tcg

2015-02-09 Thread Serge Hallyn
Hi, 'virsh vcpuinfo' in 1.2.12 returns an empty line for VMs using tcg. I assume this is due to commit b07f3d821dfb11 which explicitly sets nvcpupids to 0 now. Is 'virsh vcpuinfo' returning nothing just an unfortunate but expected side-effect, or is it a bug and it should return info anyway?

[libvirt] [PATCH v2 1/4] libvirt_private.syms: Expose virDomainNetTypeFromString

2015-02-09 Thread Michal Privoznik
The enum converters are defined in the domain_conf.h (so accessible widely across the code), but on the symbol layer, only virDomainNetTypeToString was exposed. However, FromString variant is going to be needed shortly. Signed-off-by: Michal Privoznik mpriv...@redhat.com ---

[libvirt] [PATCH v2 2/4] virsh attach-interface: Use enum instead of arbitrary integers

2015-02-09 Thread Michal Privoznik
The type of interface to attach is held in the variable 'typ'. Depending on interface type selected by user, the variable is set either to 1 (network), or 2 (bridge). Lets use already existing enum from domain_conf.h instead: virDomainNetType. Signed-off-by: Michal Privoznik mpriv...@redhat.com

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Daniel P. Berrange
On Mon, Feb 09, 2015 at 04:02:04PM +0100, Ján Tomko wrote: On Mon, Feb 09, 2015 at 09:47:47AM -0500, Laine Stump wrote: On 02/09/2015 08:19 AM, Ján Tomko wrote: On Mon, Feb 09, 2015 at 10:58:29AM +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else

[libvirt] [PATCH v2 4/4] virsh attach-interface: Allow macvtap hotplug

2015-02-09 Thread Michal Privoznik
Our hotplug code supports macvtap insertion to guests. However, we somehow forgot about 'attach-interface' (which tries to build XML from passed arguments and use virDomainAttachDeviceFlags()). New type is accessible under 'direct' type, to keep the same type as used in domain XML. Signed-off-by:

Re: [libvirt] [PATCHv2 05/10] libxl: pass ipaddr to libxl toolstack

2015-02-09 Thread Marek Marczykowski-Górecki
On Thu, Feb 05, 2015 at 03:36:17PM -0700, Jim Fehlig wrote: Marek Marczykowski-Górecki wrote: Do not silently ignore its value. LibXL support only one address, so refuse multiple IPs. Signed-off-by: Marek Marczykowski-Górecki marma...@invisiblethingslab.com --- src/libxl/libxl_conf.c

Re: [libvirt] [PATCHv2 04/10] libxl: fill HVM SDL and VNC settings based on graphics/ entries

2015-02-09 Thread Marek Marczykowski-Górecki
On Sat, Feb 07, 2015 at 12:22:51PM +0100, Marek Marczykowski-Górecki wrote: On Thu, Feb 05, 2015 at 02:53:44PM -0700, Jim Fehlig wrote: Marek Marczykowski-Górecki wrote: Vfb entries in domain config are used only by PV drivers. Qemu parameters are build based on b_info struct. So fill it

Re: [libvirt] [PATCH 11/12] qemu: Implement random number generator hotplug

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 04:32:25PM +0100, Peter Krempa wrote: From: Luyao Huang lhu...@redhat.com Export the required helpers and add backend code to hotplug RNG devices. Signed-off-by: Luyao Huang lhu...@redhat.com Signed-off-by: Peter Krempa pkre...@redhat.com ---

Re: [libvirt] [PATCH 01/12] conf: Introduce helper to find duplicate device address

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 04:32:15PM +0100, Peter Krempa wrote: When adding devices to the definition it's useful to check whether the devices don't reside on a conflicting address. This patch adds a helper that iterates all device info and comapres the addresses with the given

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Laine Stump
On 02/09/2015 08:19 AM, Ján Tomko wrote: On Mon, Feb 09, 2015 at 10:58:29AM +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_* macros. Signed-off-by: Michal Privoznik mpriv...@redhat.com ---

Re: [libvirt] [PATCH 3/4] parallels: better bridge network interface support

2015-02-09 Thread Maxim Nestratov
09.02.2015 16:02, Michal Privoznik пишет: On 30.01.2015 20:58, Maxim Nestratov wrote: In order to support 'bridge' network adapters in parallels driver we need to plug our veth devices into corresponding linux bridges. We are going to do this by reusing our abstraction of Virtual Networks in

[libvirt] [PATCH v2 0/4] attach-interface: Learn net type='direct'

2015-02-09 Thread Michal Privoznik
v2 Michal Privoznik (4): libvirt_private.syms: Expose virDomainNetTypeFromString virsh attach-interface: Use enum instead of arbitrary integers virsh attach-interface: Use virDomainNetType{From,To}String() virsh attach-interface: Allow macvtap hotplug src/libvirt_private.syms | 1 +

[libvirt] [PATCH v2 3/4] virsh attach-interface: Use virDomainNetType{From, To}String()

2015-02-09 Thread Michal Privoznik
Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use virDomainNetType{From,To}String. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 32 +++- 1 file changed, 23 insertions(+), 9

Re: [libvirt] [PATCH 00/12] Implement random number generator hot/cold (un)plug

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 04:32:14PM +0100, Peter Krempa wrote: Extension of Luyao's series with changes that were possible due to the prepare series for memory hotplug. Luyao Huang (7): qemu: Add helper to assign RNG device aliases qemu: refactor qemuBuildRNGDeviceArgs to allow reuse in

Re: [libvirt] [PATCHv2] libxl: set IP address when creating NIC

2015-02-09 Thread Ján Tomko
On Sat, Feb 07, 2015 at 04:53:46PM +0900, Jihoon Kim wrote: From: Ji-hoon Kim re...@me.com Currently libxlMakeNic() does not set ip address when creating NIC, this patch makes it to set ip address. Signed-off-by: Ji-hoon Kim re...@me.com --- src/libxl/libxl_conf.c | 14 ++

Re: [libvirt] [Xen-devel] [PATCH 0/2] libxl: fix handling of fd and timer registrations

2015-02-09 Thread Jim Fehlig
Anthony PERARD wrote: On Mon, Feb 02, 2015 at 05:00:34PM -0700, Jim Fehlig wrote: This small series fixes some assertions we occasionally see in the libxl driver when running libvirt-TCK. The assertions were due to races between destroying per-domain libxl_ctx and receiving fd and timer

Re: [libvirt] [PATCH] Follow up fix of commit a58e1cb4

2015-02-09 Thread Cedric Bosdonnat
Hi Jan, On Mon, 2015-02-09 at 10:04 +0100, Ján Tomko wrote: On Fri, Feb 06, 2015 at 02:28:15PM +0100, Cédric Bosdonnat wrote: commit a58e1cb4 didn't fix the bug if the security_default_confined is not set to 1. We now clean up even if there is no seclabel defined or the default one. ---

Re: [libvirt] [PATCH 2/6] conf: fix a minor typo

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 07:13:24PM +0100, Erik Skultety wrote: --- src/conf/domain_conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ACK and pushed. Jan diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4251b13..a36dace 100644 --- a/src/conf/domain_conf.c

Re: [libvirt] [RFC PATCH 05/12] conf: Add interface to parse and format memory device information

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:28:49 +, Daniel Berrange wrote: On Fri, Jan 30, 2015 at 02:21:02PM +0100, Peter Krempa wrote: WIP: TODO: docs Also forbid the new device in post parse callback in all driver that implement the callback to warn users right away that the device is not

Re: [libvirt] [RFC PATCH 07/12] qemu: migration: Forbid migration with memory modules lacking info

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:21:04PM +0100, Peter Krempa wrote: Make sure that libvirt has all vital information needed to reliably represent configuration of guest's memory devices in case of a migration. This patch forbids migration in case the required slot number and module base address

Re: [libvirt] [RFC PATCH 04/12] conf: Add device address type for dimm devices

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:21:01PM +0100, Peter Krempa wrote: ACPI Dimm devices are described by the slot and base address. Add a new address type to be able to describe such address. } virDomainDeviceAddressType; @@ -309,6 +310,13 @@ struct _virDomainDeviceISAAddress { unsigned int

Re: [libvirt] [PATCH 1/6] security: Add check for valid security model

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 07:13:23PM +0100, Erik Skultety wrote: We do have a check for valid per-domain security model, however we still do permit an invalid security model for a disk type device. This patch introduces a new function virSecurityStackCheckDiskLabels which compares user specified

Re: [libvirt] [PATCH] Follow up fix of commit a58e1cb4

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 02:28:15PM +0100, Cédric Bosdonnat wrote: commit a58e1cb4 didn't fix the bug if the security_default_confined is not set to 1. We now clean up even if there is no seclabel defined or the default one. --- src/lxc/lxc_process.c | 8 +++- 1 file changed, 7

Re: [libvirt] [PATCH 5/6] test: add test to check for device seclabel duplicates

2015-02-09 Thread Ján Tomko
This is only tested by domainschematest. It should be added to either qemuxml2xmltest or qemuxml2argvtest and squashed in together with the commit adding this check. Jan On Fri, Feb 06, 2015 at 07:13:27PM +0100, Erik Skultety wrote: --- .../qemuxml2argv-seclabel-device-multiple.xml | 35

[libvirt] [PATCH 0/3] attach-interface: Learn net type='direct'

2015-02-09 Thread Michal Privoznik
I've just wanted to hotplug a macvtap device into a running guest. I was too lazy to write an XML, and I've found out that virsh attach-interface doesn't know how to plug macvtaps. Michal Privoznik (3): virsh attach-interface: Use enum instead of arbitrary integers virsh: Use VIR_ENUM* macros

Re: [libvirt] [RFC PATCH 00/12] Add support for memory hotplug

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:20:57PM +0100, Peter Krempa wrote: !! this series applies on top of the cleanup series posted earlier !! Hi, this is my try to implement memory hotplug in libvirt (for the qemu) driver. This series is almost code-complete but is lacking tests and docs as I wanted

Re: [libvirt] [RFC PATCH 02/12] conf: Add support for parsing and formatting max memory and slot count

2015-02-09 Thread Daniel P. Berrange
On Fri, Feb 06, 2015 at 06:07:35PM +0100, Peter Krempa wrote: On Thu, Feb 05, 2015 at 20:54:11 -0700, Eric Blake wrote: On 01/30/2015 06:20 AM, Peter Krempa wrote: Add a XML element that will allow to specify maximum supportable memory s/a XML/an XML/ and the count of memory slots

[libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Michal Privoznik
Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_* macros. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-)

[libvirt] [PATCH 3/3] virsh attach-interface: Allow macvtap hotplug

2015-02-09 Thread Michal Privoznik
Our hotplug code supports macvtap insertion to guests. However, we somehow forgot about 'attach-interface' (which tries to build XML from passed arguments and use virDomainAttachDeviceFlags()). New type is accessible under 'direct' type, to keep the same type as used in domain XML. Signed-off-by:

[libvirt] [PATCH 1/3] virsh attach-interface: Use enum instead of arbitrary integers

2015-02-09 Thread Michal Privoznik
The type of interface to attach is held in the variable 'typ'. Depending on interface type selected by user, the variable is set either to 1 (network), or 2 (bridge). Lets use an enum instead. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 15 ++- 1

Re: [libvirt] [RFC PATCH 09/12] conf: Introduce helper to find duplicate device address

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:21:06PM +0100, Peter Krempa wrote: When adding devices to the definition it's useful to check whether the devices don't reside on a conflicting address. This patch adds a helper that iterates all device info and comapres the addresses with the given info. ---

Re: [libvirt] [RFC PATCH 07/12] qemu: migration: Forbid migration with memory modules lacking info

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:24:04 +, Daniel Berrange wrote: On Fri, Jan 30, 2015 at 02:21:04PM +0100, Peter Krempa wrote: Make sure that libvirt has all vital information needed to reliably represent configuration of guest's memory devices in case of a migration. This patch forbids

Re: [libvirt] [PATCH 02/10] conf: support backend domain name in disk and network devices

2015-02-09 Thread Daniel P. Berrange
On Fri, Feb 06, 2015 at 09:09:56PM +0100, Marek Marczykowski-Górecki wrote: On Fri, Feb 06, 2015 at 08:03:43PM +, Daniel P. Berrange wrote: On Fri, Feb 06, 2015 at 07:11:40PM +0100, Marek Marczykowski-Górecki wrote: On Fri, Feb 06, 2015 at 05:36:40PM +, Daniel P. Berrange wrote:

Re: [libvirt] [PATCH 1/4] parallels: Fix connecting to parallels driver

2015-02-09 Thread Maxim Nestratov
09.02.2015 16:02, Michal Privoznik пишет: On 30.01.2015 20:58, Maxim Nestratov wrote: After 55ea7be7, failures of parallelsLoadNetworks and parallelsStorageOpen started to fail establishing a new connection to parallels driver. Before this patch we simply ignored such errors. This patch

Re: [libvirt] [RFC PATCH 03/12] qemu: Implement setup of memory hotplug parameters

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:21:00PM +0100, Peter Krempa wrote: To enable memory hotplug the maximum memory size and slot count need to be specified. As qemu supports now other units than mebibytes when specifying memory, use the new interface in this case. --- docs/formatdomain.html.in

Re: [libvirt] 答复: Re: [PATCH 1/3] bridge_driver: Return the live state info of a given virtual network

2015-02-09 Thread Daniel P. Berrange
On Mon, Feb 09, 2015 at 10:39:35AM +0100, Michal Privoznik wrote: On 05.02.2015 16:36, Lin Ma wrote: Daniel P. Berrange berra...@redhat.com 2015-2-4 下午 17:17 On Mon, Feb 02, 2015 at 10:08:21PM +0800, Lin Ma wrote: It constructs a temporary static config of the network, Obtains all of

Re: [libvirt] 答复: Re: [PATCH 1/3] bridge_driver: Return the live state info of a given virtual network

2015-02-09 Thread Michal Privoznik
On 05.02.2015 16:36, Lin Ma wrote: Daniel P. Berrange berra...@redhat.com 2015-2-4 下午 17:17 On Mon, Feb 02, 2015 at 10:08:21PM +0800, Lin Ma wrote: It constructs a temporary static config of the network, Obtains all of attached interfaces information through netcf, Then removes the config.

Re: [libvirt] [RFC PATCH 05/12] conf: Add interface to parse and format memory device information

2015-02-09 Thread Daniel P. Berrange
On Fri, Jan 30, 2015 at 02:21:02PM +0100, Peter Krempa wrote: WIP: TODO: docs Also forbid the new device in post parse callback in all driver that implement the callback to warn users right away that the device is not supported with their hypervisor. --- docs/schemas/domaincommon.rng

Re: [libvirt] [PATCH 4/6] schema: allow multiple seclabel for devices in domaincommon.rng

2015-02-09 Thread Ján Tomko
On Fri, Feb 06, 2015 at 07:13:26PM +0100, Erik Skultety wrote: In our RNG schema we do allow multiple seclabels per-domain, bu don't allow this for devices, yet we neither have a check in our XML parser, nor in a post-parse callback. As one of my previous patches in this series added that

Re: [libvirt] [PATCH 3/3] virsh attach-interface: Allow macvtap hotplug

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:58:30 +0100, Michal Privoznik wrote: Our hotplug code supports macvtap insertion to guests. However, we somehow forgot about 'attach-interface' (which tries to build XML from passed arguments and use virDomainAttachDeviceFlags()). New type is accessible under

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Ján Tomko
On Mon, Feb 09, 2015 at 10:58:29AM +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_* macros. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 28

Re: [libvirt] [PATCH 1/2] S390: ccw support for virsh attach-disk address parameter

2015-02-09 Thread Ján Tomko
On Wed, Feb 04, 2015 at 03:00:08PM +0100, Stefan Zimmermann wrote: Adding ccw bus address support to the optional address parameter of virsh attach-disk. The format used is ccw:cssid. ssid.devno, e.g. ccw:0xfe.0x0.0x0201 Virtio-ccw devices must have their cssid set to 0xfe. Signed-off-by:

Re: [libvirt] [PATCH 2/2] S390: Documentation for ccw address type

2015-02-09 Thread Ján Tomko
On Wed, Feb 04, 2015 at 03:00:09PM +0100, Stefan Zimmermann wrote: Change the wording in the device-address-part of the docmunentation since the ccw bus address support added to the optional address parameter of virsh attach-disk for S390. Signed-off-by: Stefan Zimmermann

Re: [libvirt] [RFC PATCH 00/12] Add support for memory hotplug

2015-02-09 Thread John Ferlan
On 01/30/2015 08:20 AM, Peter Krempa wrote: !! this series applies on top of the cleanup series posted earlier !! Hi, this is my try to implement memory hotplug in libvirt (for the qemu) driver. This series is almost code-complete but is lacking tests and docs as I wanted to agree on

Re: [libvirt] [PATCH 2/4] parallels: set cpu mode when applying xml configuration

2015-02-09 Thread Michal Privoznik
On 30.01.2015 20:58, Maxim Nestratov wrote: From: Mikhail Feoktistov mfeoktis...@parallels.com Otherwise exporting existing domain config and defining a new one like this: virsh -c parallels:///system dumpxml instance01 my.xml virsh -c parallels:///system define my.xml leads to an error

Re: [libvirt] [PATCH 1/4] parallels: Fix connecting to parallels driver

2015-02-09 Thread Michal Privoznik
On 30.01.2015 20:58, Maxim Nestratov wrote: After 55ea7be7, failures of parallelsLoadNetworks and parallelsStorageOpen started to fail establishing a new connection to parallels driver. Before this patch we simply ignored such errors. This patch restores the ability to connect to parallels

Re: [libvirt] [PATCH 3/4] parallels: better bridge network interface support

2015-02-09 Thread Michal Privoznik
On 30.01.2015 20:58, Maxim Nestratov wrote: In order to support 'bridge' network adapters in parallels driver we need to plug our veth devices into corresponding linux bridges. We are going to do this by reusing our abstraction of Virtual Networks in terms of PCS. On a domain creation, we

Re: [libvirt] [PATCH 2/3] virsh: Use VIR_ENUM* macros for vshCmdAttachInterface

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:58:29 +0100, Michal Privoznik wrote: Instead of verbose string to enum conversion (if STREQ() else if STREQ() else if STREQ() ...) lets use awesome VIR_ENUM_* macros. Signed-off-by: Michal Privoznik mpriv...@redhat.com --- tools/virsh-domain.c | 28

Re: [libvirt] [PATCH 1/3] virsh attach-interface: Use enum instead of arbitrary integers

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 10:58:28 +0100, Michal Privoznik wrote: The type of interface to attach is held in the variable 'typ'. Depending on interface type selected by user, the variable is set either to 1 (network), or 2 (bridge). Lets use an enum instead. Signed-off-by: Michal Privoznik

Re: [libvirt] [PATCH v2 2/2] qemu: qemuOpenFileAs - set flag VIR_FILE_OPEN_FORCE_MODE

2015-02-09 Thread Michal Privoznik
On 30.01.2015 18:52, John Ferlan wrote: In the event we're falling into the code that tries to create the file in a forked environment (VIR_FILE_OPEN_FORK) we pass different mode bits, but those are never set because the virFileOpenForceOwnerMode has a check if the OPEN_FORCE_MODE bit is set

Re: [libvirt] [RFC PATCH 00/12] Add support for memory hotplug

2015-02-09 Thread Peter Krempa
On Mon, Feb 09, 2015 at 08:38:52 -0500, John Ferlan wrote: On 01/30/2015 08:20 AM, Peter Krempa wrote: !! this series applies on top of the cleanup series posted earlier !! Hi, this is my try to implement memory hotplug in libvirt (for the qemu) driver. This series is almost

Re: [libvirt] [PATCH v2 1/2] virfile: Adjust error path for virFileOpenForked

2015-02-09 Thread Michal Privoznik
On 30.01.2015 18:52, John Ferlan wrote: Rather than have a dummy waitpid loop and return of the failure status from recvfd, adjust the logic to save the recvfd error fd and then in priority order: - if waitpid failed, use that errno value - waitpid succeeded, but if the child exited

Re: [libvirt] [PATCH v8 0/4] Introduce API to query IP addresses for given domain

2015-02-09 Thread Nehal J Wani
On Mon, Jan 26, 2015 at 12:08 AM, Nehal J Wani nehaljw.k...@gmail.com wrote: This feature has been requested for a very long time. Since qemu guest agent and leaseshelper give us reliable results, now the wait is over. The RFC was first proposed by Michal Privoznik: