Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread Wang Rui
On 2014/8/28 5:20, Maxime Leroy wrote: On Tue, Aug 26, 2014 at 11:58 AM, Wang Rui moon.wang...@huawei.com wrote: On 2014/8/22 18:47, Maxime Leroy wrote: +# util/virivshmemserver.h +virStartIvshmemServer; +virStopIvshmemServer; I think function name virIvshmemStartServer is better. So is

Re: [libvirt] [PATCHv2] virsh: fix keepalive error msg, man page update

2014-08-28 Thread Erik Skultety
Thank you for review. Sure, you're right, I'll definitely follow your advice next time. Erik On 08/27/2014 05:03 PM, Eric Blake wrote: On 08/27/2014 08:20 AM, Erik Skultety wrote: resolves https://bugzilla.redhat.com/show_bug.cgi?id=1132305 Please include a short summary of the BZ in the

Re: [libvirt] Entering freeze for libvirt-1.2.8

2014-08-28 Thread Daniel Veillard
On Wed, Aug 27, 2014 at 08:45:29PM +0200, Richard Weinberger wrote: On Wed, Aug 27, 2014 at 9:18 AM, Daniel Veillard veill...@redhat.com wrote: So I tagged 1.2.8-rc1 in git and made tarball and signed rpms Can you please sign the tarball too? Well, the source rpm is signed, you can

Re: [libvirt] Entering freeze for libvirt-1.2.8

2014-08-28 Thread Richard Weinberger
Am 28.08.2014 09:14, schrieb Daniel Veillard: On Wed, Aug 27, 2014 at 08:45:29PM +0200, Richard Weinberger wrote: On Wed, Aug 27, 2014 at 9:18 AM, Daniel Veillard veill...@redhat.com wrote: So I tagged 1.2.8-rc1 in git and made tarball and signed rpms Can you please sign the tarball too?

Re: [libvirt] [PATCH V3 0/3] Some improvements for video model

2014-08-28 Thread Gerd Hoffmann
On Do, 2014-08-14 at 20:43 +0800, Wang Rui wrote: From: Zeng Junliang zengjunli...@huawei.com http://www.redhat.com/archives/libvir-list/2014-July/msg00644.html diff to v2: - hide vram attribute silently instead of reporting an error. - introduce three new capabilities for vga.vgamem_mb,

Re: [libvirt] Entering freeze for libvirt-1.2.8

2014-08-28 Thread Daniel Veillard
On Thu, Aug 28, 2014 at 09:25:22AM +0200, Richard Weinberger wrote: Am 28.08.2014 09:14, schrieb Daniel Veillard: On Wed, Aug 27, 2014 at 08:45:29PM +0200, Richard Weinberger wrote: On Wed, Aug 27, 2014 at 9:18 AM, Daniel Veillard veill...@redhat.com wrote: So I tagged 1.2.8-rc1 in git

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread David Marchand
Hello Martin, On 08/26/2014 11:33 AM, Martin Kletzander wrote: [Cc'ing David due to some questions/ideas about the ivshmem server] @@ -5120,6 +5121,12 @@ qemuBuildIvshmemCommandLine(virCommandPtr cmd, return -1; virCommandAddArg(cmd, devstr);

Re: [libvirt] [PATCH V3 0/3] Some improvements for video model

2014-08-28 Thread Wang Rui
On 2014/8/28 16:05, Gerd Hoffmann wrote: On Do, 2014-08-14 at 20:43 +0800, Wang Rui wrote: From: Zeng Junliang zengjunli...@huawei.com http://www.redhat.com/archives/libvir-list/2014-July/msg00644.html diff to v2: - hide vram attribute silently instead of reporting an error. - introduce

Re: [libvirt] [PATCH 03/19] domain_conf: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Ján Tomko
On 08/27/2014 10:54 PM, John Ferlan wrote: Resolve a few RESOURCE_LEAK's identified by Coverity Signed-off-by: John Ferlan jfer...@redhat.com --- src/conf/domain_conf.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/conf/domain_conf.c

Re: [libvirt] [PATCH 06/19] qemu_agent: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Ján Tomko
On 08/28/2014 04:40 AM, Wang Rui wrote: On 2014/8/28 4:54, John Ferlan wrote: Coverity found that on error paths, the 'arg' value wasn't be cleaned up. Followed the example in qemuAgentSetVCPUs() where upon successful call to qemuAgentCommand() the 'cpus' is set to NULL; otherwise, when

Re: [libvirt] [PATCH 3/4] domain_conf: Add support for iothreads in disk definition

2014-08-28 Thread Martin Kletzander
On Wed, Aug 27, 2014 at 05:21:39PM +0100, Stefan Hajnoczi wrote: On Tue, Aug 26, 2014 at 1:38 AM, John Ferlan jfer...@redhat.com wrote: +value. Each device must use a unique IOThread and threads will +be numbered from 1 to the domain iothreads value. It is reasonable

Re: [libvirt] [PATCH 00/19] More Coverity patches

2014-08-28 Thread Ján Tomko
On 08/27/2014 10:54 PM, John Ferlan wrote: I almost didn't want to do this due to the sheer volume, but figured at the very least the bulk of these are resource leaks found by the much pickier new coverity scanner. After this there are only 70 issues found... John Ferlan (19):

Re: [libvirt] [PATCH v1 5/6] tests: Add tests for ivshmem device handling

2014-08-28 Thread Martin Kletzander
On Wed, Aug 27, 2014 at 11:02:36PM +0200, Maxime Leroy wrote: On Tue, Aug 26, 2014 at 11:02 AM, Martin Kletzander mklet...@redhat.com wrote: On Fri, Aug 22, 2014 at 12:47:04PM +0200, Maxime Leroy wrote: [...] +shmem name='shmem0' model='ivshmem' + server path='/tmp/socket-shmem0'/

Re: [libvirt] [PATCHv3 2/5] lib: Add few flags for the bulk stats APIs

2014-08-28 Thread Peter Krempa
On 08/27/14 22:50, Eric Blake wrote: On 08/27/2014 12:25 PM, Peter Krempa wrote: Add domain list filtering functions and a flag to enforce checking whether the remote daemon supports the requested stats groups. --- include/libvirt/libvirt.h.in | 15 +++ src/libvirt.c

Re: [libvirt] [PATCHv3 3/5] remote: Implement bulk domain stats APIs in the remote driver

2014-08-28 Thread Peter Krempa
On 08/27/14 23:02, Eric Blake wrote: On 08/27/2014 12:25 PM, Peter Krempa wrote: Implement the remote driver support for shuffling the domain stats around. --- +static int +remoteDispatchConnectGetAllDomainStats(virNetServerPtr server ATTRIBUTE_UNUSED, +

Re: [libvirt] [PATCH v1 2/6] conf: Parse and format shmem device XML

2014-08-28 Thread Martin Kletzander
On Wed, Aug 27, 2014 at 10:52:02PM +0200, Maxime Leroy wrote: On Tue, Aug 26, 2014 at 10:42 AM, Martin Kletzander mklet...@redhat.com wrote: On Fri, Aug 22, 2014 at 12:47:01PM +0200, Maxime Leroy wrote: This patch adds configuration support for the shmem device as described in the schema in

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread Martin Kletzander
On Thu, Aug 28, 2014 at 02:35:10PM +0800, Wang Rui wrote: On 2014/8/28 5:20, Maxime Leroy wrote: On Tue, Aug 26, 2014 at 11:58 AM, Wang Rui moon.wang...@huawei.com wrote: On 2014/8/22 18:47, Maxime Leroy wrote: +# util/virivshmemserver.h +virStartIvshmemServer; +virStopIvshmemServer; I

[libvirt] [PATCH 3/3] qemu_capabilities: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Wang Rui
In function virQEMUCapsParseMachineTypesStr, VIR_STRNDUP allocates memory for 'name' in {do,while} loop. If 'name' isn't freed before 'continue', its memory will be allocated again in the next loop. In this case the memory allocated for 'name' in privious loop is useless and not freed. Free it

[libvirt] [PATCH 2/3] tests: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Wang Rui
The 'lib' handle will be leaked if 'dlsym' condition fails. So close the handle before return. Signed-off-by: Wang Rui moon.wang...@huawei.com --- tests/shunloadtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c index 499b1be..80f5351 100644

[libvirt] [PATCH 0/3] Coverity patches to resolve RESOURCE_LEAK

2014-08-28 Thread Wang Rui
I did coverity scan for libvirt-1.2.8 as John Ferlan did. He has sent many patches about RESOURCE_LEAK. I picked the other errors left to fix. There are also many errors to analyze and fix in the future. Wang Rui (3): util: Resolve Coverity RESOURCE_LEAK tests: Resolve Coverity RESOURCE_LEAK

[libvirt] [PATCH 1/3] util: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Wang Rui
Coverity determined that 'conflict' would be leaked. Signed-off-by: Wang Rui moon.wang...@huawei.com --- src/util/virpci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/virpci.c b/src/util/virpci.c index 0098d6c..f1d4499 100644 --- a/src/util/virpci.c +++ b/src/util/virpci.c @@

Re: [libvirt] [PATCH 06/19] qemu_agent: Resolve Coverity RESOURCE_LEAK

2014-08-28 Thread Wang Rui
On 2014/8/28 17:03, Ján Tomko wrote: On 08/28/2014 04:40 AM, Wang Rui wrote: On 2014/8/28 4:54, John Ferlan wrote: Coverity found that on error paths, the 'arg' value wasn't be cleaned up. Followed the example in qemuAgentSetVCPUs() where upon successful call to qemuAgentCommand() the 'cpus'

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread Martin Kletzander
On Thu, Aug 28, 2014 at 10:34:11AM +0200, David Marchand wrote: Hello Martin, On 08/26/2014 11:33 AM, Martin Kletzander wrote: [Cc'ing David due to some questions/ideas about the ivshmem server] @@ -5120,6 +5121,12 @@ qemuBuildIvshmemCommandLine(virCommandPtr cmd, return -1;

Re: [libvirt] [PATCH 0/3] Coverity patches to resolve RESOURCE_LEAK

2014-08-28 Thread Ján Tomko
On 08/28/2014 12:20 PM, Wang Rui wrote: I did coverity scan for libvirt-1.2.8 as John Ferlan did. Technically, libvirt-1.2.8 is not yet released, just -rc1 :) He has sent many patches about RESOURCE_LEAK. I picked the other errors left to fix. There are also many errors to analyze and fix

[libvirt] [PATCH RFC] qemu: add some synchronizations for snapshot

2014-08-28 Thread Jincheng Miao
Currently it lacks synchronization to modify domain's snapshot object list, that race condition causes unsafe access to some freed snapshot objects. Therefore, this patch wraps all access of snapshot object list in vm job lock. Only the qemuDomainSnapshotCreateXML is not synchronized, it is

Re: [libvirt] [PATCHv3 5/5] virsh: Implement command to excercise the bulk stats APIs

2014-08-28 Thread Peter Krempa
On 08/28/14 00:15, Eric Blake wrote: On 08/27/2014 12:25 PM, Peter Krempa wrote: Add domstats command that excercises both of the new APIs depending if s/excercises/exercises/ Hmmm, now that I've pushed this patch I noticed this typo :/ ... Oh well. Everybody knows that my English spelling

Re: [libvirt] [PATCH 01/19] libxl_migration: Resolve Coverity NULL_RETURNS

2014-08-28 Thread John Ferlan
On 08/27/2014 05:29 PM, Jim Fehlig wrote: John Ferlan wrote: Coverity noted that all callers to libxlDomainEventQueue() could ensure the second parameter (event) was true before calling except this case. As I look at the code and how events are used - it seems that prior to generating an

[libvirt] [PATCHv4] qemu: Implement bulk stats API and one of the stats groups to return

2014-08-28 Thread Peter Krempa
Implement the API function for virDomainListGetStats and virConnectGetAllDomainStats in a modular way and implement the VIR_DOMAIN_STATS_STATE group of statistics. Although it may look like the function looks universal I'd rather not expose it to other drivers as the coming stats groups are

[libvirt] Cosmetic bug on libvirt.org

2014-08-28 Thread Christophe Fergeau
Hey, I just noticed that clicking on FAQ in the left sidebar on libvirt.org main page highlights the Wiki cell instead of highlighting FAQ. I have no idea how the website works, so I'm just reporting it here. Cheers, Christophe pgpLbXH1JyIl6.pgp Description: PGP signature -- libvir-list

Re: [libvirt] [PATCH 00/19] More Coverity patches

2014-08-28 Thread John Ferlan
On 08/27/2014 09:38 PM, Wang Rui wrote: On 2014/8/28 4:54, John Ferlan wrote: I almost didn't want to do this due to the sheer volume, but figured at the very least the bulk of these are resource leaks found by the much pickier new coverity scanner. After this there are only 70 issues

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread David Marchand
On 08/28/2014 12:34 PM, Martin Kletzander wrote: Great! Really, and it's even easier than what I thought of. We just need to kill the server if we fail to start QEMU after starting the server. There is one caveat, though. There is a race between libvirt checking whether the socket exists

Re: [libvirt] [PATCH 00/19] More Coverity patches

2014-08-28 Thread John Ferlan
On 08/27/2014 04:54 PM, John Ferlan wrote: I almost didn't want to do this due to the sheer volume, but figured at the very least the bulk of these are resource leaks found by the much pickier new coverity scanner. After this there are only 70 issues found... John Ferlan (19):

Re: [libvirt] [PATCH v2 1/2] util: Introduce flags field for macvtap creation

2014-08-28 Thread Martin Kletzander
On Wed, Aug 27, 2014 at 10:34:13AM -0400, Matthew Rosato wrote: Currently, there is one flag passed in during macvtap creation (withTap) -- Let's convert this field to an unsigned int flag field for future expansion. Signed-off-by: Matthew Rosato mjros...@linux.vnet.ibm.com ---

Re: [libvirt] [PATCHv4] qemu: Implement bulk stats API and one of the stats groups to return

2014-08-28 Thread Eric Blake
On 08/28/2014 06:18 AM, Peter Krempa wrote: Implement the API function for virDomainListGetStats and virConnectGetAllDomainStats in a modular way and implement the VIR_DOMAIN_STATS_STATE group of statistics. Although it may look like the function looks universal I'd rather not expose it to

[libvirt] run qemu-agent-command via binding (ruby/python/php)

2014-08-28 Thread Vasiliy Tolstov
Hi! Does it possible(featured, planned) to run some qemu-agent-command via libvirt binding (i'm interesting on ruby and php).? I'm understand that i can connect via socket and run it, but it very usable to get this ability inside binding. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber:

Re: [libvirt] run qemu-agent-command via binding (ruby/python/php)

2014-08-28 Thread Eric Blake
On 08/28/2014 07:12 AM, Vasiliy Tolstov wrote: Hi! Does it possible(featured, planned) to run some qemu-agent-command via libvirt binding (i'm interesting on ruby and php).? I'm not sure the time-schedule of the ruby and php bindings maintainers, but ideally, ALL libvirt API should eventually

Re: [libvirt] [PATCHv4] qemu: Implement bulk stats API and one of the stats groups to return

2014-08-28 Thread Peter Krempa
On 08/28/14 14:48, Eric Blake wrote: On 08/28/2014 06:18 AM, Peter Krempa wrote: Implement the API function for virDomainListGetStats and virConnectGetAllDomainStats in a modular way and implement the VIR_DOMAIN_STATS_STATE group of statistics. Although it may look like the function looks

Re: [libvirt] run qemu-agent-command via binding (ruby/python/php)

2014-08-28 Thread Vasiliy Tolstov
2014-08-28 17:34 GMT+04:00 Eric Blake ebl...@redhat.com: On 08/28/2014 07:12 AM, Vasiliy Tolstov wrote: Hi! Does it possible(featured, planned) to run some qemu-agent-command via libvirt binding (i'm interesting on ruby and php).? I'm not sure the time-schedule of the ruby and php bindings

Re: [libvirt] [PATCH v2 1/2] util: Introduce flags field for macvtap creation

2014-08-28 Thread Matthew Rosato
On 08/28/2014 08:45 AM, Martin Kletzander wrote: On Wed, Aug 27, 2014 at 10:34:13AM -0400, Matthew Rosato wrote: Currently, there is one flag passed in during macvtap creation (withTap) -- Let's convert this field to an unsigned int flag field for future expansion. Signed-off-by: Matthew

Re: [libvirt] run qemu-agent-command via binding (ruby/python/php)

2014-08-28 Thread Chris Lalancette
On Thu, Aug 28, 2014 at 9:34 AM, Eric Blake ebl...@redhat.com wrote: On 08/28/2014 07:12 AM, Vasiliy Tolstov wrote: Hi! Does it possible(featured, planned) to run some qemu-agent-command via libvirt binding (i'm interesting on ruby and php).? I'm not sure the time-schedule of the ruby and php

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread David Marchand
On 08/28/2014 02:26 PM, David Marchand wrote: I'm not sure, though, what to do with the first point (race between libvirt creating the socket to see that it exists and ivshmem disconnecting). Maybe libvirt could do this (if QEMU would support it): 1: try to create the socket (if it exists,

Re: [libvirt] [PATCH v2 2/2] network: Bring netdevs online later

2014-08-28 Thread Martin Kletzander
On Wed, Aug 27, 2014 at 10:34:14AM -0400, Matthew Rosato wrote: Currently, MAC registration occurs during device creation, which is early enough that, during live migration, you end up with duplicate MAC addresses on still-running source and target devices, even though the target device isn't

Re: [libvirt] run qemu-agent-command via binding (ruby/python/php)

2014-08-28 Thread Vasiliy Tolstov
2014-08-28 17:50 GMT+04:00 Chris Lalancette clalance...@gmail.com: The ruby bindings support virDomainQemuAgentCommand() since 0.5.2. I haven't really tested it, though, so your mileage may vary. I definitely accept bug reports and patches. Thanks! Very nice. Does it possible to request

Re: [libvirt] [PATCH v1 6/6] ivshmem: add start param to server attribute

2014-08-28 Thread Martin Kletzander
On Thu, Aug 28, 2014 at 03:46:47PM +0200, David Marchand wrote: On 08/28/2014 02:26 PM, David Marchand wrote: I'm not sure, though, what to do with the first point (race between libvirt creating the socket to see that it exists and ivshmem disconnecting). Maybe libvirt could do this (if

Re: [libvirt] Proposition for the implementation of new features for Hyper-V driver

2014-08-28 Thread Daniel P. Berrange
On Thu, Aug 28, 2014 at 12:38:17PM +, Adrien Kantcheff wrote: Dear libvirt developers, During my final student training in the French company Bull, with a previous student (Simon RASTELLO), we developed new features for Hyper-V driver. For a project called OpenCloudware, our work was

Re: [libvirt] [PATCH 01/19] libxl_migration: Resolve Coverity NULL_RETURNS

2014-08-28 Thread Jim Fehlig
John Ferlan wrote: On 08/27/2014 05:29 PM, Jim Fehlig wrote: John Ferlan wrote: Coverity noted that all callers to libxlDomainEventQueue() could ensure the second parameter (event) was true before calling except this case. As I look at the code and how events are used - it seems

[libvirt] [python PATCH 4/5] API: Implement bindings for virDomainListGetStats

2014-08-28 Thread Peter Krempa
Implement the function by returning a list of tuples instead the array of virDomainStatsRecords and store the typed parameters as dict. --- generator.py | 1 + libvirt-override-virConnect.py | 47 +++ libvirt-override.c | 50

[libvirt] [python PATCH 1/5] generator: enum: Don't sort enums by names

2014-08-28 Thread Peter Krempa
Setting OCDs aside, sorting enums breaks if the definition contains links to other enums defined in the libvirt header before. Let the generator generate it in the natural order. --- generator.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/generator.py b/generator.py index

[libvirt] [python PATCH 2/5] API: Skip 'virDomainStatsRecordListFree'

2014-08-28 Thread Peter Krempa
The new API function doesn't make sense to be exported in python. The bindings will return native types instead of the struct array. --- generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generator.py b/generator.py index 9c497be..cfc016e 100755 --- a/generator.py +++ b/generator.py

[libvirt] [python PATCH 3/5] API: Implement bindings for virConnectGetAllDomainStats

2014-08-28 Thread Peter Krempa
Implement the function by returning a list of tuples instead the array of virDomainStatsRecords and store the typed parameters as dict. --- generator.py | 1 + libvirt-override-virConnect.py | 53 libvirt-override.c | 94

[libvirt] [python PATCH 0/5] Implement bindings for bulk stats API

2014-08-28 Thread Peter Krempa
The last patch is to ease review to be able to build the series. Peter Krempa (5): generator: enum: Don't sort enums by names API: Skip 'virDomainStatsRecordListFree' API: Implement bindings for virConnectGetAllDomainStats API: Implement bindings for virDomainListGetStats DO NOT APPLY:

[libvirt] [python PATCH 5/5] DO NOT APPLY: Fix build with missing virDomainBlockCopy API

2014-08-28 Thread Peter Krempa
--- generator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/generator.py b/generator.py index 3642838..a88c146 100755 --- a/generator.py +++ b/generator.py @@ -551,6 +551,7 @@ skip_function = ( virStorageVolGetConnect, virDomainSnapshotGetConnect,

Re: [libvirt] [python PATCH 1/5] generator: enum: Don't sort enums by names

2014-08-28 Thread Eric Blake
On 08/28/2014 10:32 AM, Peter Krempa wrote: Setting OCDs aside, sorting enums breaks if the definition contains links to other enums defined in the libvirt header before. Let the generator generate it in the natural order. --- generator.py | 2 -- 1 file changed, 2 deletions(-) ACK. But I

Re: [libvirt] [python PATCH 2/5] API: Skip 'virDomainStatsRecordListFree'

2014-08-28 Thread Eric Blake
On 08/28/2014 10:32 AM, Peter Krempa wrote: The new API function doesn't make sense to be exported in python. The bindings will return native types instead of the struct array. --- generator.py | 1 + 1 file changed, 1 insertion(+) ACK. diff --git a/generator.py b/generator.py index

Re: [libvirt] Automatically affinitize hostdev interrupts to vm vCpus (qemu/kvm)

2014-08-28 Thread Mooney, Sean K
Hi sorry for the delay in responding. Regarding the intel email footer, I understand that It might deter people from responding. it is automatically added if I email an external address by our exchange server. I have asked for my account to be added to the exception whitelist so this should be

[libvirt] [PATCH 0/4] Introduce new cputune event

2014-08-28 Thread Pavel Hrdina
This patch series introduces new cputune event to inform management applications about every change of cputune values for running domains. Pavel Hrdina (4): domain_conf: separate cputune struct from virDomainDef event: introduce new event for cputune add an example how to use cputune event

[libvirt] [PATCH 1/4] domain_conf: separate cputune struct from virDomainDef

2014-08-28 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/conf/domain_conf.h | 27 --- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/conf/domain_conf.h b/src/conf/domain_conf.h index a05254a..d9b0cfa 100644 --- a/src/conf/domain_conf.h +++

[libvirt] [PATCH 4/4] cputune_event: queue the event for cputune updates

2014-08-28 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- src/qemu/qemu_cgroup.c | 6 ++ src/qemu/qemu_driver.c | 27 +++ 2 files changed, 33 insertions(+) diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index 43d14d4..95cc4d4 100644 ---

[libvirt] [PATCH 2/4] event: introduce new event for cputune

2014-08-28 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- daemon/remote.c | 87 +++ include/libvirt/libvirt.h.in | 62 ++ src/conf/domain_event.c | 120 +++ src/conf/domain_event.h | 7 +++

[libvirt] [PATCH 3/4] add an example how to use cputune event

2014-08-28 Thread Pavel Hrdina
Signed-off-by: Pavel Hrdina phrd...@redhat.com --- examples/object-events/event-test.c | 39 - 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/examples/object-events/event-test.c b/examples/object-events/event-test.c index d6cfe46..afdc7f1 100644

Re: [libvirt] [PATCH 1.2.8] storage: zfs: fix double listing of new volumes

2014-08-28 Thread John Ferlan
On 08/27/2014 05:02 AM, Roman Bogorodskiy wrote: Currently, after calling commands to create a new volumes, virStorageBackendZFSCreateVol calls virStorageBackendZFSFindVols that calls virStorageBackendZFSParseVol. virStorageBackendZFSParseVol checks if a volume already exists by trying to

Re: [libvirt] [PATCH 01/19] libxl_migration: Resolve Coverity NULL_RETURNS

2014-08-28 Thread John Ferlan
On 08/28/2014 11:20 AM, Jim Fehlig wrote: John Ferlan wrote: I am going to remove this one from my series and let you handle it. After looking at the code again, I think it is safest to go with your patch. I would seem perhaps that the code was there to ensure that if either

[libvirt] [PATCH 1/2] virnetserverservice: Resolve Coverity ARRAY_VS_SINGLETON

2014-08-28 Thread John Ferlan
Coverity complained about the following: (3) Event ptr_arith: Performing pointer arithmetic on cur_fd in expression cur_fd++. 130 return virNetServerServiceNewFD(*cur_fd++, It seems the belief is their is pointer arithmetic taking place. By using (*cur_fd)++ we avoid this

[libvirt] [PATCH 0/2] Couple more Coverity issues

2014-08-28 Thread John Ferlan
After perusing the pile of 70 or so warnings - these two stuck out as ones that were low hanging fruit and not false positives. Many of the remaining issues are false positives or perhaps even bugs in Coverity, but I understand why they're being flagged. Freeing memory from counted lists where

[libvirt] [PATCH 2/2] qemu_driver: Resolve Coverity FORWARD_NULL

2014-08-28 Thread John Ferlan
In qemuDomainSnapshotCreateDiskActive() if we jumped to cleanup from a failed actions = virJSONValueNewArray(), then 'cfg' would be NULL. So just return -1, which in turn removes the need for cleanup: Signed-off-by: John Ferlan jfer...@redhat.com --- src/qemu/qemu_driver.c | 3 +-- 1 file

Re: [libvirt] [PATCH v2 2/2] network: Bring netdevs online later

2014-08-28 Thread Matthew Rosato
On 08/28/2014 09:56 AM, Martin Kletzander wrote: On Wed, Aug 27, 2014 at 10:34:14AM -0400, Matthew Rosato wrote: Currently, MAC registration occurs during device creation, which is early enough that, during live migration, you end up with duplicate MAC addresses on still-running source and

Re: [libvirt] [PATCH 1/2] virnetserverservice: Resolve Coverity ARRAY_VS_SINGLETON

2014-08-28 Thread Eric Blake
On 08/28/2014 01:28 PM, John Ferlan wrote: Coverity complained about the following: (3) Event ptr_arith: Performing pointer arithmetic on cur_fd in expression cur_fd++. 130 return virNetServerServiceNewFD(*cur_fd++, It seems the belief is their is pointer arithmetic taking

Re: [libvirt] [PATCH 2/2] qemu_driver: Resolve Coverity FORWARD_NULL

2014-08-28 Thread Eric Blake
On 08/28/2014 01:28 PM, John Ferlan wrote: In qemuDomainSnapshotCreateDiskActive() if we jumped to cleanup from a failed actions = virJSONValueNewArray(), then 'cfg' would be NULL. So just return -1, which in turn removes the need for cleanup: Signed-off-by: John Ferlan jfer...@redhat.com

Re: [libvirt] [PATCH v2 0/4] Introduce support for virtio-blk-pci iothreads

2014-08-28 Thread John Ferlan
On 08/27/2014 05:35 PM, John Ferlan wrote: On 08/26/2014 06:15 PM, John Ferlan wrote: v1: http://www.redhat.com/archives/libvir-list/2014-August/msg01155.html Changes since v1 Patches 1-3 - purely from code review Patch 4 - rework the checking of the to be added disk that has the

Re: [libvirt] [PATCH 1/2] virnetserverservice: Resolve Coverity ARRAY_VS_SINGLETON

2014-08-28 Thread John Ferlan
On 08/28/2014 04:57 PM, Eric Blake wrote: On 08/28/2014 01:28 PM, John Ferlan wrote: Coverity complained about the following: (3) Event ptr_arith: Performing pointer arithmetic on cur_fd in expression cur_fd++. 130 return virNetServerServiceNewFD(*cur_fd++, It seems the

Re: [libvirt] [PATCH 1/2] virnetserverservice: Resolve Coverity ARRAY_VS_SINGLETON

2014-08-28 Thread Eric Blake
On 08/28/2014 04:04 PM, John Ferlan wrote: ACK. For the benefit of others ;-) as Eric and I have been IRC'g over this... This was introduced in this release cycle (commit id '9805256d')... So not in the wild yet (fairly recent commit of 8/22) Although I know you ACK'd what I have...

Re: [libvirt] [PATCH 0/2] Couple more Coverity issues

2014-08-28 Thread John Ferlan
On 08/28/2014 03:28 PM, John Ferlan wrote: After perusing the pile of 70 or so warnings - these two stuck out as ones that were low hanging fruit and not false positives. Many of the remaining issues are false positives or perhaps even bugs in Coverity, but I understand why they're being