Re: [libvirt] [PATCH] qemu: Release correct websocket port

2013-07-08 Thread Peter Krempa
On 07/04/13 21:45, Jiri Denemark wrote: --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ACK. Peter -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH] Paused domain should remain paused after migration

2013-07-08 Thread Peter Krempa
On 07/04/13 20:13, Jiri Denemark wrote: https://bugzilla.redhat.com/show_bug.cgi?id=981139 If a domain is paused before migration starts, we need to tell that to the destination libvirtd to prevent it from resuming the domain at the end of migration. This regression was introduced by commit

Re: [libvirt] [PATCH v1 06/37] Adapt to VIR_ALLOC and virAsprintf in src/conf/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/conf/cpu_conf.c | 34 +--- src/conf/domain_conf.c | 328 +++ src/conf/domain_event.c | 30 +--- src/conf/interface_conf.c| 35 +---

Re: [libvirt] [PATCH v1 23/37] Adapt to VIR_ALLOC and virAsprintf in src/secret/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/secret/secret_driver.c | 49 -- 1 file changed, 12 insertions(+), 37 deletions(-) ACK Jan -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 33/37] Adapt to VIR_ALLOC and virAsprintf in src/xenapi/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/xenapi/xenapi_driver.c | 29 - src/xenapi/xenapi_utils.c | 11 --- 2 files changed, 12 insertions(+), 28 deletions(-) diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index

Re: [libvirt] [PATCH v1 23/37] Adapt to VIR_ALLOC and virAsprintf in src/secret/*

2013-07-08 Thread Ján Tomko
On 07/08/2013 09:34 AM, Ján Tomko wrote: On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/secret/secret_driver.c | 49 -- 1 file changed, 12 insertions(+), 37 deletions(-) ACK Jan You can also get rid of the out_of_memory label

Re: [libvirt] [PATCH v1 11/37] Adapt to VIR_ALLOC and virAsprintf in src/libxl/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/libxl/libxl_conf.c | 18 +- src/libxl/libxl_driver.c | 46 +++--- 2 files changed, 16 insertions(+), 48 deletions(-) @@ -1274,7 +1262,7 @@ libxlStateInitialize(bool privileged,

Re: [libvirt] RFC: Introduce API to query IP addresses for given domain

2013-07-08 Thread Nehal J. Wani
Eric, could you please share your opinion as to what should be more appropriate to use for this functionality: Structs/XML/VirTypedParams ? On Tue, Jul 2, 2013 at 7:25 PM, Osier Yang jy...@redhat.com wrote: On 02/07/13 18:33, Daniel P. Berrange wrote: On Fri, Jun 28, 2013 at 03:56:10PM

Re: [libvirt] [PATCH v1 29/37] Adapt to VIR_ALLOC and virAsprintf in src/vbox/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/vbox/vbox_MSCOMGlue.c | 8 +-- src/vbox/vbox_XPCOMCGlue.c | 4 +- src/vbox/vbox_tmpl.c | 126 +++-- 3 files changed, 32 insertions(+), 106 deletions(-) ACK Jan -- libvir-list

Re: [libvirt] [PATCH v1 28/37] Adapt to VIR_ALLOC and virAsprintf in src/util/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- in src/util/virbitmap.c: /** * virBitmapNew: * @size: number of bits * * Allocate a bitmap capable of containing @size bits. * * Returns a pointer to the allocated bitmap or NULL if * memory cannot be allocated. This function historically

Re: [libvirt] [PATCH v1 37/37] Adapt to VIR_ALLOC and virAsprintf in tools/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:07, Michal Privoznik wrote: --- tools/console.c | 6 +- tools/virsh-domain-monitor.c | 4 +--- tools/virsh-domain.c | 28 tools/virsh.c| 1 - 4 files changed, 10 insertions(+), 29 deletions(-) ...

Re: [libvirt] [PATCH v1 12/37] Adapt to VIR_ALLOC and virAsprintf in src/locking/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/locking/lock_daemon.c | 33 + src/locking/lock_daemon_config.c | 8 ++-- src/locking/lock_driver_lockd.c | 23 ++- src/locking/lock_driver_sanlock.c | 28

Re: [libvirt] [PATCH v1 16/37] Adapt to VIR_ALLOC and virAsprintf in src/nwfilter/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/nwfilter/nwfilter_dhcpsnoop.c | 29 +-- src/nwfilter/nwfilter_driver.c| 13 ++--- src/nwfilter/nwfilter_ebiptables_driver.c | 46 ++- src/nwfilter/nwfilter_gentech_driver.c

Re: [libvirt] [PATCH v1 10/37] Adapt to VIR_ALLOC and virAsprintf in src/interface/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/interface/interface_backend_netcf.c | 19 --- src/interface/interface_backend_udev.c | 33 + 2 files changed, 13 insertions(+), 39 deletions(-) You missed double OOM error reporting

Re: [libvirt] [PATCH v1 21/37] Adapt to VIR_ALLOC and virAsprintf in src/remote/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/remote/remote_driver.c | 107 - 1 file changed, 27 insertions(+), 80 deletions(-) ACK Jan -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 25/37] Adapt to VIR_ALLOC and virAsprintf in src/storage/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/storage/storage_backend.c | 35 ++--- src/storage/storage_backend_disk.c | 17 +++- src/storage/storage_backend_fs.c | 31 ++ src/storage/storage_backend_iscsi.c| 27

Re: [libvirt] [PATCH v1 28/37] Adapt to VIR_ALLOC and virAsprintf in src/util/*

2013-07-08 Thread Martin Kletzander
On 07/04/2013 02:06 PM, Michal Privoznik wrote: [...] diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index 13fd162..f7f05fd 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -1212,8 +1211,6 @@ static int virCgroupSetPartitionSuffix(const char *path, char **res)

Re: [libvirt] [PATCH v1 26/37] Adapt to VIR_ALLOC and virAsprintf in src/test/*

2013-07-08 Thread Martin Kletzander
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/test/test_driver.c | 91 -- 1 file changed, 28 insertions(+), 63 deletions(-) ACK, Martin -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 13/37] Adapt to VIR_ALLOC and virAsprintf in src/lxc/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/lxc/lxc_cgroup.c | 4 +-- src/lxc/lxc_conf.c | 5 +-- src/lxc/lxc_container.c | 77 ++-- src/lxc/lxc_controller.c | 50 +++--- src/lxc/lxc_driver.c | 92

Re: [libvirt] [PATCH v1 08/37] Adapt to VIR_ALLOC and virAsprintf in src/esx/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/esx/esx_driver.c| 62 - src/esx/esx_network_driver.c| 16 ++-- src/esx/esx_storage_backend_iscsi.c | 4 +- src/esx/esx_storage_backend_vmfs.c | 78

Re: [libvirt] [PATCH v1 32/37] Adapt to VIR_ALLOC and virAsprintf in src/xen/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/xen/block_stats.c| 8 ++-- src/xen/xen_driver.c | 42 +++--- src/xen/xen_hypervisor.c | 17 ++--- src/xen/xen_inotify.c| 4 +--- src/xen/xend_internal.c | 38

Re: [libvirt] [PATCH v1 14/37] Adapt to VIR_ALLOC and virAsprintf in src/node_device/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/node_device/node_device_driver.c | 4 +--- src/node_device/node_device_udev.c | 18 -- 2 files changed, 5 insertions(+), 17 deletions(-) ACK, Peter -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 09/37] Adapt to VIR_ALLOC and virAsprintf in src/hyperv/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/hyperv/hyperv_driver.c | 21 ++--- src/hyperv/hyperv_util.c | 4 +--- src/hyperv/hyperv_wmi.c| 8 ++-- 3 files changed, 9 insertions(+), 24 deletions(-) ACK, Peter -- libvir-list mailing list

Re: [libvirt] [PATCH v1 34/37] Adapt to VIR_ALLOC and virAsprintf in src/xenxs/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/xenxs/xen_sxpr.c | 112 src/xenxs/xen_xm.c | 204 ++- 2 files changed, 135 insertions(+), 181 deletions(-) ACK Jan -- libvir-list mailing list

Re: [libvirt] [PATCH v1 20/37] Adapt to VIR_ALLOC and virAsprintf in src/qemu/*

2013-07-08 Thread Martin Kletzander
On 07/04/2013 02:06 PM, Michal Privoznik wrote: [...] diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index ba93233..7288ce7 100644 --- a/src/qemu/qemu_command.c +++ b/src/qemu/qemu_command.c @@ -10289,7 +10186,7 @@ virDomainDefPtr qemuParseCommandLine(virCapsPtr qemuCaps,

Re: [libvirt] [PATCH v1 27/37] Adapt to VIR_ALLOC and virAsprintf in src/uml/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/uml/uml_conf.c | 28 +++- src/uml/uml_driver.c | 36 +--- 2 files changed, 16 insertions(+), 48 deletions(-) diff --git a/src/uml/uml_conf.c b/src/uml/uml_conf.c index

Re: [libvirt] [PATCH] Paused domain should remain paused after migration

2013-07-08 Thread Jiri Denemark
On Mon, Jul 08, 2013 at 08:58:02 +0200, Peter Krempa wrote: On 07/04/13 20:13, Jiri Denemark wrote: https://bugzilla.redhat.com/show_bug.cgi?id=981139 If a domain is paused before migration starts, we need to tell that to the destination libvirtd to prevent it from resuming the domain at

Re: [libvirt] [PATCH] qemu: Release correct websocket port

2013-07-08 Thread Jiri Denemark
On Mon, Jul 08, 2013 at 08:55:31 +0200, Peter Krempa wrote: On 07/04/13 21:45, Jiri Denemark wrote: --- src/qemu/qemu_process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ACK. Peter Pushed, thanks. Jirka -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH] Don't spam logs with port 0 must be in range errors

2013-07-08 Thread Jiri Denemark
On Fri, Jul 05, 2013 at 09:46:26 +0200, Michal Privoznik wrote: On 04.07.2013 21:46, Jiri Denemark wrote: Whenever virPortAllocatorRelease is called with port == 0, it complains that the port is not in an allowed range, which is expectable as the port was never allocated. Let's make

Re: [libvirt] [PATCH v1 18/37] Adapt to VIR_ALLOC and virAsprintf in src/parallels/*

2013-07-08 Thread Martin Kletzander
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/parallels/parallels_driver.c | 65 +++ src/parallels/parallels_network.c | 24 --- src/parallels/parallels_storage.c | 50 +- src/parallels/parallels_utils.c

Re: [libvirt] [PATCH v1 31/37] Adapt to VIR_ALLOC and virAsprintf in src/vmx/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/vmx/vmx.c | 92 +++ 1 file changed, 23 insertions(+), 69 deletions(-) diff --git a/src/vmx/vmx.c b/src/vmx/vmx.c index 5464d13..64bf4be 100644 --- a/src/vmx/vmx.c +++ b/src/vmx/vmx.c

Re: [libvirt] [PATCH v1 36/37] Adapt to VIR_ALLOC and virAsprintf in tests/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- tests/commandtest.c | 8 ++-- tests/libvirtdconftest.c | 4 +--- tests/qemumonitortestutils.c | 17 + tests/securityselinuxlabeltest.c | 21 + tests/securityselinuxtest.c

Re: [libvirt] [PATCH v1 17/37] Adapt to VIR_ALLOC and virAsprintf in src/openvz/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/openvz/openvz_conf.c | 42 -- src/openvz/openvz_driver.c | 10 +++--- 2 files changed, 19 insertions(+), 33 deletions(-) ACK Jan -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 35/37] Adapt to VIR_ALLOC and virAsprintf in src/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/fdstream.c | 4 +--- src/libvirt.c | 21 ++--- src/nodeinfo.c | 58 ++ 3 files changed, 21 insertions(+), 62 deletions(-) ACK Jan -- libvir-list mailing list

Re: [libvirt] [PATCH v1 24/37] Adapt to VIR_ALLOC and virAsprintf in src/security/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/security/security_apparmor.c | 25 ++-- src/security/security_dac.c | 12 +++- src/security/security_manager.c | 8 ++-- src/security/security_selinux.c | 41

Re: [libvirt] [PATCH 0/3] qemu: Make setting memory limits consistent

2013-07-08 Thread Jiri Denemark
On Fri, Jun 28, 2013 at 17:04:27 +0200, Jiri Denemark wrote: We need to set memory limits in several cases: - when setting hard_limit in memory cgroup - when starting a domain with a VFIO PCI device attached - when hotplugging a VFIO PCI device - when memoryBacking/locked is used This

Re: [libvirt] [PATCH] Resolve Coverity complaints in tests/securityselinuxlabeltest.c

2013-07-08 Thread John Ferlan
On 07/03/2013 11:17 AM, Daniel P. Berrange wrote: On Wed, Jul 03, 2013 at 10:05:58AM -0400, John Ferlan wrote: Two complaints of RESOURCE_FREE due to going to cleanup prior to a VIR_FREE(line). Two complaints of FORWARD_NULL due to 'tmp' being accessed after a strchr() without first checking

Re: [libvirt] [PATCH v1 15/37] Adapt to VIR_ALLOC and virAsprintf in src/network/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/network/bridge_driver.c | 138 +--- 1 file changed, 40 insertions(+), 98 deletions(-) ACK, Peter -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 22/37] Adapt to VIR_ALLOC and virAsprintf in src/rpc/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/rpc/gendispatch.pl| 8 ++-- src/rpc/virnetclient.c| 26 -- src/rpc/virnetclientprogram.c | 12 +++- src/rpc/virnetclientstream.c | 4 +--- src/rpc/virnetmessage.c | 24

Re: [libvirt] [PATCH v1 30/37] Adapt to VIR_ALLOC and virAsprintf in src/vmware/*

2013-07-08 Thread Peter Krempa
On 07/04/13 14:06, Michal Privoznik wrote: --- src/vmware/vmware_conf.c | 33 +++-- src/vmware/vmware_driver.c | 4 +--- 2 files changed, 8 insertions(+), 29 deletions(-) diff --git a/src/vmware/vmware_conf.c b/src/vmware/vmware_conf.c index 9d3d37e..b6d20ea

Re: [libvirt] [PATCH v1 19/37] Adapt to VIR_ALLOC and virAsprintf in src/phyp/*

2013-07-08 Thread Martin Kletzander
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/phyp/phyp_driver.c | 95 +- 1 file changed, 24 insertions(+), 71 deletions(-) ACK, Martin -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH v1 07/37] Adapt to VIR_ALLOC and virAsprintf in src/cpu/*

2013-07-08 Thread Ján Tomko
On 07/04/2013 02:06 PM, Michal Privoznik wrote: --- src/cpu/cpu.c | 4 +-- src/cpu/cpu_arm.c | 6 +--- src/cpu/cpu_generic.c | 12 +++ src/cpu/cpu_powerpc.c | 20 +++- src/cpu/cpu_s390.c| 4 +-- src/cpu/cpu_x86.c | 86

[libvirt] [PATCH] domain controller index check

2013-07-08 Thread jmiao
From: Jincheng Miao jm...@redhat.com The index of the controller should not be less than zero. So use virStrToLong_ui() to check the controller index in virDomainControllerDefParseXML(). --- src/conf/domain_conf.c |2 +- src/conf/domain_conf.h |2 +- src/qemu/qemu_command.c |2 +-

Re: [libvirt] [PATCHv2 1/2] selinux: Cleanup coding style

2013-07-08 Thread Martin Kletzander
On 07/03/2013 02:43 PM, Peter Krempa wrote: --- src/security/security_selinux.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) ACK, Martin -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCHv2 2/2] selinux: Always generate imagelabel

2013-07-08 Thread Martin Kletzander
On 07/03/2013 02:43 PM, Peter Krempa wrote: The imagelabel SELinux label was only generated when relabeling was enabled. This prohibited labeling of files created by libvirt that need to be labeled even if relabeling is turned off. The only codepath this change has direct impact on is

Re: [libvirt] attach-device error: XML error: unknown device type

2013-07-08 Thread Michal Privoznik
On 05.07.2013 17:39, Chris Evich wrote: On 07/04/2013 03:43 AM, Michal Privoznik wrote: On 03.07.2013 20:34, Chris Evich wrote: On 07/03/2013 09:46 AM, Daniel P. Berrange wrote: On Wed, Jul 03, 2013 at 09:44:46AM -0400, Chris Evich wrote: Hi, On Fedora 18 (libvirt 0.10.2.6-1) I'm trying to

[libvirt] [PATCH] qemu: Slightly increase memory limit

2013-07-08 Thread Jiri Denemark
For low-memory domains (roughly under 400MB) our automatic memory limit computation comes up with a limit that's too low. This is because the 0.5 multiplication does not add enough for such small values. Let's increase the constant part of the computation to fix this. --- src/qemu/qemu_domain.c |

Re: [libvirt] [PATCH] build: honor autogen.sh --no-git

2013-07-08 Thread Daniel P. Berrange
On Mon, Jul 08, 2013 at 07:44:18AM -0600, Eric Blake wrote: On 07/04/2013 03:32 AM, Daniel P. Berrange wrote: On Wed, Jul 03, 2013 at 03:07:51PM -0600, Eric Blake wrote: Based on a report by Chandrashekar Shastri, at https://bugzilla.redhat.com/show_bug.cgi?id=979360 On systems where

Re: [libvirt] [PATCH] util: use VIR_(APPEND|DELETE)_ELEMENT for pci/usb device lists

2013-07-08 Thread Michal Privoznik
On 05.07.2013 20:46, Laine Stump wrote: Eliminate memmove() by using VIR_*_ELEMENT API instead. In both pci and usb cases, the count that held the size of the list was unsigned int so it had to be changed to size_t. --- This is an alternate fix to the same problem fixed by

Re: [libvirt] [libvirt-1.0.5]deadlock in child process after call function backtrace, any suggestions is appreciate!

2013-07-08 Thread Eric Blake
On 07/05/2013 08:00 AM, Laine Stump wrote: On 07/04/2013 01:43 AM, Caizhifeng wrote: Hi ALL, In order to catch the calltrace of deadlock in libvirtd, I modified the function virMutexLock as follows: But, unfortunatly, sometimes, deadlock happened in child process after virFork, The

Re: [libvirt] RFC: Introduce API to query IP addresses for given domain

2013-07-08 Thread Eric Blake
On 07/08/2013 02:27 AM, Nehal J. Wani wrote: Eric, could you please share your opinion as to what should be more appropriate to use for this functionality: Structs/XML/VirTypedParams ? Looking at this possible approach of virTypedParameter, I'm think I am preferring either the XML or fixed

Re: [libvirt] RFC: Introduce API to query IP addresses for given domain

2013-07-08 Thread Eric Blake
[please don't top-post on technical lists] On 07/02/2013 05:04 AM, Nehal J. Wani wrote: Following will be the methods: (i) Querying qemu-guest-agent (ii) Getting info from dnsmasq.leases file (iii) Using the nwfilter to snoop the traffic Valid values: domifaddr domain-name qemu-ga

[libvirt] [PATCH RFC]:tolerate numa_node_size64 0 because nodeid might start from 1 instead of 0

2013-07-08 Thread hejia hejia
In nodeGetFreeMemory/nodeGetCellsFreeMemory, they will calculate the free memory of every nodes. They assumed that nodeid of NUMA machine must be continuous and start from 0. But here is a counter-example: # numactl -H available: 1 nodes (1) node 1 cpus: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Re: [libvirt] [PATCHv2 1/2] selinux: Cleanup coding style

2013-07-08 Thread Peter Krempa
On 07/08/13 14:35, Martin Kletzander wrote: On 07/03/2013 02:43 PM, Peter Krempa wrote: --- src/security/security_selinux.c | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) ACK, Pushed; Thanks. Peter -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCHv2 2/2] selinux: Always generate imagelabel

2013-07-08 Thread Peter Krempa
On 07/08/13 15:01, Martin Kletzander wrote: On 07/03/2013 02:43 PM, Peter Krempa wrote: The imagelabel SELinux label was only generated when relabeling was enabled. This prohibited labeling of files created by libvirt that need to be labeled even if relabeling is turned off. The only codepath

[libvirt] [PATCH 03/32] Convert 'int i' to 'size_t i' in src/util/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 07/32] Convert 'int i' to 'size_t i' in src/{esx, vmx, vmware} files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 21/32] Convert 'int i' to 'size_t i' in src/node_device/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 22/32] Convert 'int i' to 'size_t i' in src/lxc/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 08/32] Convert 'int i' to 'size_t i' in src/storage/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 10/32] Convert 'int i' to 'size_t i' in src/uml/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 17/32] Convert 'int i' to 'size_t i' in src/phyp/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 23/32] Convert 'int i' to 'size_t i' in src/locking/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 25/32] Convert 'int i' to 'size_t i' in src/network/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 32/32] Prevent use of 'int' data type 'ii', 'jj', 'kk' var names for loops

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Add two syntax-check rules - sc_prohibit_int_ijk - block use of 'int' as a data type for any variables named 'i', 'j', 'k' - sc_prohibit_int_iijjkk - block use of 'ii', 'jj', 'kk' for any variable names --- cfg.mk | 14 ++ 1 file

[libvirt] [PATCH 00/32] Santize iterator variable names data types

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The libvirt code has a mixture of data types used for the common 'i', 'j', 'k' variable names, int, unsigned int size_t. Change them all to use 'size_t'. In the few cases which actually required the use of a signed variable, either the use of the

[libvirt] [PATCH 24/32] Convert 'int i' to 'size_t i' in src/libxl/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 19/32] Convert 'int i' to 'size_t i' in src/openvz/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 14/32] Convert 'int i' to 'size_t i' in src/rpc/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 01/32] Convert 'int i' to 'size_t i' in daemon/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 26/32] Convert 'int i' to 'size_t i' in src/interface/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 30/32] Convert 'int i' to 'size_t i' in python/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 09/32] Convert 'int i' to 'size_t i' in src/vbox/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 13/32] Convert 'int i' to 'size_t i' in src/secret/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 12/32] Convert 'int i' to 'size_t i' in src/security files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 11/32] Convert 'int i' to 'size_t i' in src/test/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 04/32] Convert 'int i' to 'size_t i' in tests/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 29/32] Convert 'int i' to 'size_t i' in src/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 28/32] Convert 'int i' to 'size_t i' in src/cpu/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 20/32] Convert 'int i' to 'size_t i' in src/nwfilter/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 06/32] Convert 'int i' to 'size_t i' in src/{xen, xenapi, xenxs} files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 27/32] Convert 'int i' to 'size_t i' in src/hyperv/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 15/32] Convert 'int i' to 'size_t i' in src/remote/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 31/32] Convert 'int i' to 'size_t i' in examples/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 18/32] Convert 'int i' to 'size_t i' in src/parallels/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

[libvirt] [PATCH 05/32] Convert 'int i' to 'size_t i' in tools/ files

2013-07-08 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Convert the type of loop iterators named 'i', 'j', k', 'ii', 'jj', 'kk', to be 'size_t' instead of 'int' or 'unsigned int', also santizing 'ii', 'jj', 'kk' to use the normal 'i', 'j', 'k' naming Signed-off-by: Daniel P. Berrange berra...@redhat.com

Re: [libvirt] [PATCH] domain controller index check

2013-07-08 Thread Ján Tomko
On 07/08/2013 02:08 PM, jm...@redhat.com wrote: From: Jincheng Miao jm...@redhat.com The index of the controller should not be less than zero. So use virStrToLong_ui() to check the controller index in virDomainControllerDefParseXML(). --- src/conf/domain_conf.c |2 +-

[libvirt] [PATCH] scsi: Fix construction of sysfs device path

2013-07-08 Thread Viktor Mihajlovski
The device bus value was used instead of the device target when building the sysfs device path. Trivial. Signed-off-by: Viktor Mihajlovski mihaj...@linux.vnet.ibm.com --- Should probably go into the 1.0.6 maintenance branch as well. src/util/virscsi.c |2 +- 1 file changed, 1 insertion(+),

Re: [libvirt] [PATCH 2/8] Add qemuMonitorGetObjectProperty() method for QMP qom-get command

2013-07-08 Thread John Ferlan
On 07/03/2013 08:20 AM, Michal Privoznik wrote: On 03.07.2013 14:12, Ján Tomko wrote: On 07/03/2013 02:03 PM, Michal Privoznik wrote: On 02.07.2013 15:39, John Ferlan wrote: +case QEMU_MONITOR_OBJECT_PROPERTY_STRING: +tmp = virJSONValueGetString(data); +if (tmp

Re: [libvirt] [PATCH 8/8] Allow balloon driver collection to be adjusted dynamically

2013-07-08 Thread John Ferlan
On 07/03/2013 08:03 AM, Michal Privoznik wrote: On 02.07.2013 15:39, John Ferlan wrote: Extend the virDomainSetMemeoryFlags() to accept a 'VIR_DOMAIN_MEM_PERIOD' which will be used to dynamically set the collection period for the balloon driver via a 'virsh dommemstat domain --period value'

[libvirt] [PATCH v2 01/10] Add qemuMonitorJSONGetObjectListPaths() method for QMP qom-list command

2013-07-08 Thread John Ferlan
Add a new qemuMonitorJSONGetObjectListPaths() method to support invocation of the 'qom-list' JSON monitor command with a provided path. The returned list of paired data fields of name and type that can be used to peruse QOM configuration data and eventually utilize for the balloon statistics.

[libvirt] [PATCH v2 00/10] Re-enable memballoon driver statistics reporting

2013-07-08 Thread John Ferlan
This patchset replaces: https://www.redhat.com/archives/libvir-list/2013-July/msg00108.html Changes since V1: * Remove the external (eg, qemu_monitor.{c,h}) API's to the qom-list, qom-get, qom-set interfaces * Handle errors in virXPathInt() return checking domain_conf.c * Move the 'period'

[libvirt] [PATCH v2 05/10] Determine whether to start balloon memory stats gathering.

2013-07-08 Thread John Ferlan
At vm startup, reconnect, and attach - check for the presence of the balloon driver and save the path in the private area of the driver. This path will remain constant throughout the life of the domain and can then be used rather than attempting to find the path each time balloon driver

[libvirt] [PATCH v2 04/10] Add 'period' for Memballoon statistics gathering capability

2013-07-08 Thread John Ferlan
Add a period in seconds to allow/enable statistics gathering from the Balloon driver for 'virsh dommemstat domain'. --- docs/formatdomain.html.in | 10 ++ docs/schemas/domaincommon.rng | 7 +++ src/conf/domain_conf.c| 44 +--

[libvirt] [PATCH v2 10/10] Allow balloon driver collection to be adjusted dynamically

2013-07-08 Thread John Ferlan
Use the virDomainSetMemoryStatsPeriodFlags() to pass a period defined by usage of a new --period option in order to set the collection period for the balloon driver. This may enable or disable the collection based on the value. Add the --current, --live, --config options to dommemstat. ---

[libvirt] [PATCH v2 03/10] Add qemuMonitorJSONSetObjectProperty() method for QMP qom-set command

2013-07-08 Thread John Ferlan
Add a new qemuMonitorJSONSetObjectProperty() method to support invocation of the 'qom-set' JSON monitor command with a provided path, property, and expected data type to set. The test code uses the same /machine/i440fx property as the get test and attempts to set the realized property to true

[libvirt] [PATCH v2 06/10] Add capability to fetch balloon stats

2013-07-08 Thread John Ferlan
This patch will add the QEMU_MONITOR_OBJECT_PROPERTY_BALLOON_STATS type and a mechanism in the qemuMonitorObjectProperty to fetch and store an opaque data array assuming that we are provided a count of current elements, a count of maximum elements, and the address of the array store the data. Use

[libvirt] [PATCH v2 09/10] Implement the virDomainSetMemoryStatsPeriodFlags for QEMU driver

2013-07-08 Thread John Ferlan
Implement the new API that will handle setting the balloon driver statistics collection period in order to enable or disable the collection dynamically. --- src/qemu/qemu_driver.c | 66 ++ 1 file changed, 66 insertions(+) diff --git

[libvirt] [PATCH v2 07/10] Add new public API virDomainSetMemoryStatsPeriodFlags

2013-07-08 Thread John Ferlan
Add new API in order to set the balloon memory driver statistics collection period in order to allow dynamic period adjustment for the virsh dommemstats to display balloon stats data --- include/libvirt/libvirt.h.in | 3 ++ src/driver.h | 6 src/libvirt.c|

[libvirt] [PATCH v2 02/10] Add qemuMonitorJSONGetObjectProperty() method for QMP qom-get command

2013-07-08 Thread John Ferlan
Add a new qemuMonitorJSONGetObjectProperty() method to support invocation of the 'qom-get' JSON monitor command with a provided path, property, and expected data type return. The qemuMonitorJSONObjectProperty is similar to virTypedParameter; however, a future patch will extend it a bit to include

  1   2   >