[libvirt] [PATCH] Clear bandwidth settings for a shutoff domain using domiftune

2014-08-11 Thread Jianwei Hu
qemu: To clear bandwidth settings for a shutoff domain by using domiftune. After applying this patch, we can use virsh domiftune command to clear inbound or/and outbound setting for a shutoff domain. for example: virsh domiftune $domain $interface 0 0 Please refer to below virsh help message:

Re: [libvirt] [PATCH RFC] LXC: add HOME environment variable

2014-08-11 Thread Daniel P. Berrange
On Tue, Aug 05, 2014 at 02:40:53AM +, chenhanx...@cn.fujitsu.com wrote: ping -Original Message- From: libvir-list-boun...@redhat.com [mailto:libvir-list-boun...@redhat.com] On Behalf Of Chen Hanxiao Sent: Friday, July 25, 2014 2:40 PM To: libvir-list@redhat.com Subject:

Re: [libvirt] [PATCH] Include param.h in case of HAVE_BSD_CPU_AFFINITY

2014-08-11 Thread Michal Privoznik
On 10.08.2014 11:44, Guido Günther wrote: This fixes compilation on kFreeBSD which otherwise fails like CC util/libvirt_util_la-virprocess.lo In file included from /usr/include/sys/cpuset.h:35:0, from util/virprocess.c:43: /usr/include/sys/_cpuset.h:49:43: error:

Re: [libvirt] qemu driver fails to load on Xen after be0782e1

2014-08-11 Thread Daniel P. Berrange
On Tue, Aug 05, 2014 at 11:16:53AM -0600, Jim Fehlig wrote: Jim Fehlig wrote: Until recently, the qemu driver has always succeeded in loading even on a system booted to Xen. Commit be0782e1 broke this, hence libvirtd no longer loads xendom0 # /usr/sbin/libvirtd -l 2014-08-04

Re: [libvirt] [PATCH] Don't fail qemu driver intialization if we can't determine hugepage size

2014-08-11 Thread Michal Privoznik
On 10.08.2014 13:51, Guido Günther wrote: Otherwise we fail like libvirt version: 1.2.7, package: 6 (root 2014-08-08-16:09:22 bogon) virAuditOpen:62 : Unable to initialize audit layer: Protocol not supported virFileGetDefaultHugepageSize:2958 : internal error: Unable to parse

Re: [libvirt] qemu driver fails to load on Xen after be0782e1

2014-08-11 Thread Michal Privoznik
On 11.08.2014 11:16, Daniel P. Berrange wrote: On Tue, Aug 05, 2014 at 11:16:53AM -0600, Jim Fehlig wrote: Jim Fehlig wrote: Until recently, the qemu driver has always succeeded in loading even on a system booted to Xen. Commit be0782e1 broke this, hence libvirtd no longer loads xendom0 #

Re: [libvirt] [RFC] powerpc : Add support for VM in compat mode

2014-08-11 Thread Prerna Saxena
On Thursday 26 June 2014 03:41 PM, Prerna Saxena wrote: PowerISA allows processors to run VMs in binary compatibility (compat) mode supporting an older version of ISA. Eg,in compatibility mode, a POWER8 host can run a Power7 VM,conforming to PowerISA v2.06, while a POWER7 host can run a

Re: [libvirt] Lifecycle events during reboot for KVM and Xen

2014-08-11 Thread Daniel P. Berrange
On Fri, Aug 08, 2014 at 10:54:53AM -0600, Jim Fehlig wrote: Thomas Bechtold wrote: Hi, during debugging a problem[1] of Openstack Nova I recognized the following: Doing a reboot (from inside of the VM with reboot command) on a kvm VM doesn't send any lifecycle events (events debugged

Re: [libvirt] Lifecycle events during reboot for KVM and Xen

2014-08-11 Thread Daniel P. Berrange
On Thu, Aug 07, 2014 at 08:18:54AM +0200, Thomas Bechtold wrote: Hi, during debugging a problem[1] of Openstack Nova I recognized the following: Doing a reboot (from inside of the VM with reboot command) on a kvm VM doesn't send any lifecycle events (events debugged with [2]). Doing the

Re: [libvirt] [PATCH libvirt 1/6] conf: add MTP filesystem support to the parser

2014-08-11 Thread Daniel P. Berrange
On Thu, Aug 07, 2014 at 04:10:31PM +0200, Giuseppe Scrivano wrote: Signed-off-by: Giuseppe Scrivano gscri...@redhat.com --- src/conf/domain_conf.c | 34 +- src/conf/domain_conf.h | 1 + 2 files changed, 26 insertions(+), 9 deletions(-) diff --git

Re: [libvirt] [PATCH] Don't fail qemu driver intialization if we can't determine hugepage size

2014-08-11 Thread Guido Günther
On Mon, Aug 11, 2014 at 11:17:10AM +0200, Michal Privoznik wrote: On 10.08.2014 13:51, Guido Günther wrote: Otherwise we fail like libvirt version: 1.2.7, package: 6 (root 2014-08-08-16:09:22 bogon) virAuditOpen:62 : Unable to initialize audit layer: Protocol not supported

[libvirt] [PATCH 1/1] numatune: Fix parsing of empty nodeset (0, ^0)

2014-08-11 Thread Erik Skultety
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1121837 --- src/conf/numatune_conf.c | 18 +++-- ...emuxml2argv-numatune-memory-invalid-nodeset.xml | 31 ++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 48

Re: [libvirt] [PATCH v1 3/3] qemu: Automatically create NVRAM store

2014-08-11 Thread Laszlo Ersek
On 08/08/14 14:05, Paolo Bonzini wrote: Il 08/08/2014 12:17, Michal Privoznik ha scritto: When using split UEFI image, it may come handy if libvirt manages per domain _VARS file automatically. While the _CODE file is RO and can be shared among multiple domains, you certainly don't want to do

Re: [libvirt] [PATCH] Clear bandwidth settings for a shutoff domain using domiftune

2014-08-11 Thread Michal Privoznik
On 11.08.2014 08:41, Jianwei Hu wrote: qemu: To clear bandwidth settings for a shutoff domain by using domiftune. After applying this patch, we can use virsh domiftune command to clear inbound or/and outbound setting for a shutoff domain. for example: virsh domiftune $domain $interface 0 0

[libvirt] [PATCH 1/1] qemu: min_guarantee: Parameter 'min_guarantee' not supported

2014-08-11 Thread Erik Skultety
The 'min_guarantee' is used by esx and vmx drivers, with qemu however, libvirt should report error when starting a domain, because this element is not used. Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1122455 --- src/qemu/qemu_process.c | 7 +++ 1 file changed, 7 insertions(+) diff

[libvirt] [PATCH 00/66] vbox: Rewrite vbox domain driver

2014-08-11 Thread Taowei
This series of patches rewrite the vbox's domain driver. The driver is separated into two parts: the version specified and the common part. The common driver use vboxUniformedAPI to build a general driver for all vbox versions. The vboxUniformedAPI take the responsiblity to communicate with

[libvirt] [PATCH 03/66] vbox: Rewrite vboxDomainSave

2014-08-11 Thread Taowei
All vbox objects are child objects from the nsISupports in vbox's C++ API version. Since the CAPI is generated from the C++ API, I kept their relationship here, by the definitations below: typedef struct nsISupports nsISupports; typedef nsISupports IVirtualBox; typedef nsISupports ISession; and

[libvirt] [PATCH 01/66] vbox: Begin to rewrite, vboxConnectOpen

2014-08-11 Thread Taowei
Introduce vbox_uniformed_api to deal with version conflicts. Use vbox_install_api to register the currect vboxUniformedAPI with vbox version. vboxConnectOpen has been rewritten. --- po/POTFILES.in|1 + src/Makefile.am |5 +- src/vbox/vbox_common.c|

[libvirt] [PATCH 02/66] vbox: Rewrite vboxConnectClose

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 11 +++ src/vbox/vbox_tmpl.c | 29 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 12 insertions(+), 29 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 65a249f..06f1524

[libvirt] [PATCH 05/66] vbox: Rewrite vboxConnectGetHostname

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index f4f0d6d..585e6b5 100644 ---

[libvirt] [PATCH 04/66] vbox: Rewrite vboxConnectGetVersion

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 22 ++ src/vbox/vbox_tmpl.c | 13 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 23 insertions(+), 13 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 28d8668..f4f0d6d

[libvirt] [PATCH 08/66] vbox: Rewrite vboxConnectIsAlive

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |5 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 2a3ab1e..4a75b88 100644 ---

[libvirt] [PATCH 06/66] vbox: Rewrite vboxConnectIsSecure

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|6 ++ src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 585e6b5..f40f14d 100644 ---

[libvirt] [PATCH 09/66] vbox: Rewrite vboxConnectGetMaxVcpus

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 24 +++ src/vbox/vbox_common.h|1 + src/vbox/vbox_tmpl.c | 42 ++--- src/vbox/vbox_uniformed_api.h |8 4 files changed, 51 insertions(+), 24 deletions(-) diff --git

[libvirt] [PATCH 07/66] vbox: Rewrite vboxConnectIsEncrypted

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|6 ++ src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index f40f14d..2a3ab1e 100644 ---

[libvirt] [PATCH 30/66] vbox: Rewrite vboxDomainDestroy

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index aaebc44..f889384 100644 ---

[libvirt] [PATCH 17/66] vbox: Rewrite vboxDomainCreateWithFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 219 src/vbox/vbox_tmpl.c | 274 +++-- src/vbox/vbox_uniformed_api.h |8 ++ 3 files changed, 269 insertions(+), 232 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 10/66] vbox: Rewrite vboxConnectGetCapabilities

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 11 +++ src/vbox/vbox_tmpl.c | 16 ++-- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index cb73f97..eaefe81 100644 ---

[libvirt] [PATCH 27/66] vbox: Rewrite vboxDomainShutdown

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 6371eb2..b15e8a3 100644 ---

[libvirt] [PATCH 18/66] vbox: Rewrite vboxDomainCreate

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |7 --- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 16c8f44..4957655 100644 ---

[libvirt] [PATCH 19/66] vbox: Rewrite vboxDomainCreateXML

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 28 src/vbox/vbox_tmpl.c | 28 src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 30 insertions(+), 28 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index

[libvirt] [PATCH 11/66] vbox: Rewrite vboxConnectListDomains

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 42 ++ src/vbox/vbox_tmpl.c | 80 + src/vbox/vbox_uniformed_api.h | 22 3 files changed, 105 insertions(+), 39 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 33/66] vbox: Rewrite vboxDomainGetInfo

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 79 ++ src/vbox/vbox_tmpl.c | 106 ++--- src/vbox/vbox_uniformed_api.h |5 ++ 3 files changed, 108 insertions(+), 82 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 31/66] vbox: Rewrite vboxDomainGetOSType

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 12 src/vbox/vbox_tmpl.c | 12 src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index f889384..102500a 100644 ---

[libvirt] [PATCH 20/66] vbox: Rewrite vboxDomainLookupByName

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 70 src/vbox/vbox_tmpl.c | 71 - src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 72 insertions(+), 71 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 12/66] vbox: Rewrite vboxConnectNumOfDomains

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 35 +++ src/vbox/vbox_tmpl.c | 36 src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 36 insertions(+), 36 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 38/66] vbox: Rewrite vboxDomainGetMaxVcpus

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|6 ++ src/vbox/vbox_tmpl.c |7 --- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 120ad6c..24d2ddb 100644 ---

[libvirt] [PATCH 34/66] vbox: Rewrite vboxDomainGetState

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 27 +++ src/vbox/vbox_tmpl.c | 36 src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 29 insertions(+), 36 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 13/66] vbox: Rewrite vboxDomainLookupById

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 73 src/vbox/vbox_tmpl.c | 82 +++-- src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 90 insertions(+), 68 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 23/66] vbox: Rewrite vboxDomainIsUpdated

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 19 +++ src/vbox/vbox_tmpl.c | 25 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index

[libvirt] [PATCH 14/66] vbox: Rewrite vboxDomainLookupByUUID

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 73 + src/vbox/vbox_tmpl.c | 73 - src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 75 insertions(+), 73 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 26/66] vbox: Rewrite vboxDomainShutdownFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 48 + src/vbox/vbox_tmpl.c | 67 - src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 64 insertions(+), 54 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 29/66] vbox: Rewrite vboxDomainDestroyFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 45 +++ src/vbox/vbox_tmpl.c | 80 ++--- src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 65 insertions(+), 62 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 15/66] vbox: Rewrite vboxDomainUndefineFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 70 src/vbox/vbox_tmpl.c | 356 + src/vbox/vbox_uniformed_api.h |8 + 3 files changed, 258 insertions(+), 176 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index

[libvirt] [PATCH 40/66] vbox: Rewrite vboxDomainGetXMLDesc

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 1076 ++- src/vbox/vbox_common.h|9 + src/vbox/vbox_tmpl.c | 1261 + src/vbox/vbox_uniformed_api.h |1 + 4 files changed, 1094 insertions(+), 1253 deletions(-)

[libvirt] [PATCH 43/66] vbox: Rewrite vboxDomainUndefine

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index cd9fede..5b0706f 100644 ---

[libvirt] [PATCH 21/66] vbox: Rewrite vboxDomainIsActive

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 66 src/vbox/vbox_tmpl.c | 67 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 67 insertions(+), 67 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 37/66] vbox: Rewrite vboxDomainGetVcpusFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 28 src/vbox/vbox_tmpl.c | 29 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 29 insertions(+), 29 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index

[libvirt] [PATCH 45/66] vbox: Rewrite vboxDomainAttachDeviceFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 14 ++ src/vbox/vbox_tmpl.c | 15 --- src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 84d82d7..f22cb5b 100644

[libvirt] [PATCH 36/66] vbox: Rewrite vboxDomainSetVcpus

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c|5 + src/vbox/vbox_tmpl.c |6 -- src/vbox/vbox_uniformed_api.h |2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index 4aadd01..1df946d 100644 ---

[libvirt] [PATCH 41/66] vbox: Rewrite vboxConnectListDefinedDomains

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 59 +++ src/vbox/vbox_tmpl.c | 61 + src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 69 insertions(+), 54 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 24/66] vbox: Rewrite vboxDomainSuspend

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 47 + src/vbox/vbox_tmpl.c | 65 + src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 63 insertions(+), 52 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 22/66] vbox: Rewrite vboxDomainIsPersistent

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 19 +++ src/vbox/vbox_tmpl.c | 26 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 20 insertions(+), 26 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index

[libvirt] [PATCH 52/66] vbox: Rewrite vboxDomainSnapshotNum

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 40 +++ src/vbox/vbox_tmpl.c | 47 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 41 insertions(+), 47 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 25/66] vbox: Rewrite vboxDomainResume

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 47 + src/vbox/vbox_tmpl.c | 66 - src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 63 insertions(+), 53 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 49/66] vbox: Add API for vboxDomainSnapshotCreateXML

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.h|1 + src/vbox/vbox_tmpl.c | 171 - src/vbox/vbox_uniformed_api.h | 17 3 files changed, 187 insertions(+), 2 deletions(-) diff --git a/src/vbox/vbox_common.h b/src/vbox/vbox_common.h index

[libvirt] [PATCH 32/66] vbox: Rewrite vboxDomainSetMemory

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 54 ++ src/vbox/vbox_tmpl.c | 57 - src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 55 insertions(+), 57 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 53/66] vbox: Rewrite vboxDomainSnapshotListNames

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 79 src/vbox/vbox_tmpl.c | 90 - src/vbox/vbox_uniformed_api.h |2 + 3 files changed, 81 insertions(+), 90 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 54/66] vbox: Rewrite vboxSnapshotLookupByName

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 26 ++ src/vbox/vbox_tmpl.c | 33 - src/vbox/vbox_uniformed_api.h |3 +++ 3 files changed, 29 insertions(+), 33 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c

[libvirt] [PATCH 39/66] vbox: Add API for vboxDomainGetXMLDesc

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.h|2 + src/vbox/vbox_tmpl.c | 718 + src/vbox/vbox_uniformed_api.h | 73 + 3 files changed, 793 insertions(+) diff --git a/src/vbox/vbox_common.h b/src/vbox/vbox_common.h index eedd755..c4e7ae5 100644

[libvirt] [PATCH 28/66] vbox: Rewrite vboxDomainReboot

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 44 src/vbox/vbox_tmpl.c | 56 ++--- src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 53 insertions(+), 49 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 58/66] vbox: Rewrite vboxDomainSnapshotIsCurrent

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 57 + src/vbox/vbox_tmpl.c | 63 - src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 59 insertions(+), 63 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 51/66] vbox: Rewrite vboxDomainSnapshotGetXMLDesc

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 712 ++ src/vbox/vbox_tmpl.c | 756 ++--- src/vbox/vbox_uniformed_api.h | 22 +- 3 files changed, 843 insertions(+), 647 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 56/66] vbox: Rewrite vboxDomainSnapshotGetParent

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 61 + src/vbox/vbox_tmpl.c | 66 - src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 64 insertions(+), 66 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 35/66] vbox: Rewrite vboxDomainSetVcpusFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 46 ++ src/vbox/vbox_tmpl.c | 55 - src/vbox/vbox_uniformed_api.h |3 +++ 3 files changed, 49 insertions(+), 55 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 59/66] vbox: Rewrite vboxDomainSnapshotHasMetadata

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 27 +++ src/vbox/vbox_tmpl.c | 34 -- src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 29 insertions(+), 34 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c

[libvirt] [PATCH 65/66] vbox: Add registerDomainEvent

2014-08-11 Thread Taowei
--- src/vbox/vbox_tmpl.c | 20 src/vbox/vbox_uniformed_api.h |1 + 2 files changed, 21 insertions(+) diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index 72d4c4d..fbd0d08 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -1492,6

[libvirt] [PATCH 42/66] vbox: Rewrite vboxConnectNumOfDefinedDomains

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 40 src/vbox/vbox_tmpl.c | 38 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 41 insertions(+), 38 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 61/66] vbox: Rewrite vboxDomainSnapshotDelete

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 609 src/vbox/vbox_common.h| 13 + src/vbox/vbox_tmpl.c | 778 + src/vbox/vbox_uniformed_api.h |4 + 4 files changed, 637 insertions(+), 767 deletions(-) diff

[libvirt] [PATCH 60/66] vbox: Rewrite vboxDomainRevertToSnapshot

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 68 +++ src/vbox/vbox_tmpl.c | 80 ++--- src/vbox/vbox_uniformed_api.h |3 ++ 3 files changed, 74 insertions(+), 77 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 44/66] vbox: Rewrite vboxDomainAttachDevice

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 117 ++ src/vbox/vbox_tmpl.c | 141 +++-- src/vbox/vbox_uniformed_api.h |3 + 3 files changed, 256 insertions(+), 5 deletions(-) diff --git a/src/vbox/vbox_common.c

Re: [libvirt] [PATCH libvirt 1/6] conf: add MTP filesystem support to the parser

2014-08-11 Thread Giuseppe Scrivano
Daniel P. Berrange berra...@redhat.com writes: On Thu, Aug 07, 2014 at 04:10:31PM +0200, Giuseppe Scrivano wrote: Signed-off-by: Giuseppe Scrivano gscri...@redhat.com --- src/conf/domain_conf.c | 34 +- src/conf/domain_conf.h | 1 + 2 files changed, 26

[libvirt] [PATCH 63/66] vbox: Rewrite vboxConnectListAllDomains

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 157 + src/vbox/vbox_tmpl.c | 156 src/vbox/vbox_uniformed_api.h |2 + 3 files changed, 159 insertions(+), 156 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 46/66] vbox: Rewrite vboxDomainUpdateDeviceFlags

2014-08-11 Thread Taowei
Since vboxDomainAttachDeviceImple not used in vbox_tmpl.c, it has been deleted. --- src/vbox/vbox_common.c| 16 +++ src/vbox/vbox_tmpl.c | 215 - src/vbox/vbox_uniformed_api.h |2 + 3 files changed, 18 insertions(+), 215 deletions(-)

[libvirt] [PATCH 55/66] vbox: Rewrite vboxDomainHasCurrentSnapshot

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 32 src/vbox/vbox_tmpl.c | 38 -- src/vbox/vbox_uniformed_api.h |1 + 3 files changed, 33 insertions(+), 38 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 50/66] vbox: Rewrite vboxDomainSnapshotCreateXML

2014-08-11 Thread Taowei
The vboxDomainSnapshotCreateXML integrated the snapshot redefine with this patch: http://www.redhat.com/archives/libvir-list/2014-May/msg00589.html This patch introduced vboxSnapshotRedefine in vboxUniformedAPI to enable the features. This patch replace all version specified APIs to the uniformed

[libvirt] [PATCH 57/66] vbox: Rewrite vboxDomainSnapshotCurrent

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 53 src/vbox/vbox_tmpl.c | 59 - src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 55 insertions(+), 59 deletions(-) diff --git a/src/vbox/vbox_common.c

[libvirt] [PATCH 62/66] vbox: Rewrite vboxDomainScreenshot

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 130 src/vbox/vbox_common.h|1 + src/vbox/vbox_tmpl.c | 190 - src/vbox/vbox_uniformed_api.h | 23 - 4 files changed, 208 insertions(+), 136 deletions(-) diff

[libvirt] [PATCH v2] Include param.h in case of HAVE_BSD_CPU_AFFINITY

2014-08-11 Thread Guido Günther
This fixes compilation on kFreeBSD which otherwise fails like CC util/libvirt_util_la-virprocess.lo In file included from /usr/include/sys/cpuset.h:35:0, from util/virprocess.c:43: /usr/include/sys/_cpuset.h:49:43: error: 'NBBY' undeclared here (not in a function) long

[libvirt] [PATCH 66/66] vbox: Introducing vboxCommonDriver

2014-08-11 Thread Taowei
After this patch, we will have only one common domain driver. So, the rewritten on domain driver is finished in this patch. --- src/vbox/README |7 +- src/vbox/vbox_common.c| 257 +++-- src/vbox/vbox_driver.c| 28 ++---

[libvirt] [PATCH 47/66] vbox: Rewrite vboxDomainDetachDevice

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 101 +++ src/vbox/vbox_tmpl.c | 221 - src/vbox/vbox_uniformed_api.h |4 + 3 files changed, 190 insertions(+), 136 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c

[libvirt] [PATCH 64/66] vbox: Rewrite vboxNode functions

2014-08-11 Thread Taowei
Four functions are rewrite in this patch, that is: vboxNodeGetInfo vboxNodeGetCellsFreeMemory vboxNodeGetFreeMemory vboxNodeGetFreePages Since these functions has nothing to do with vbox, it can be directly moved to vbox_common.c. So, I merged these things into one patch. ---

[libvirt] [PATCH 48/66] vbox: Rewrite vboxDomainDetachDeviceFlags

2014-08-11 Thread Taowei
--- src/vbox/vbox_common.c| 14 ++ src/vbox/vbox_tmpl.c | 15 --- src/vbox/vbox_uniformed_api.h |2 ++ 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/vbox/vbox_common.c b/src/vbox/vbox_common.c index f6ea357..4e0b990 100644

Re: [libvirt] [PATCH libvirt 1/6] conf: add MTP filesystem support to the parser

2014-08-11 Thread Daniel P. Berrange
On Mon, Aug 11, 2014 at 12:15:41PM +0200, Giuseppe Scrivano wrote: Daniel P. Berrange berra...@redhat.com writes: On Thu, Aug 07, 2014 at 04:10:31PM +0200, Giuseppe Scrivano wrote: Signed-off-by: Giuseppe Scrivano gscri...@redhat.com --- src/conf/domain_conf.c | 34

Re: [libvirt] [PATCH libvirt 1/6] conf: add MTP filesystem support to the parser

2014-08-11 Thread Giuseppe Scrivano
Daniel P. Berrange berra...@redhat.com writes: Would you agree with something like this? filesystem type='mount' device name=mtp sharemtp/device ... What is the name=mtp share bit trying to reflect ? It seems we're mostly biased towards model so I think we should aim for

Re: [libvirt] [PATCH libvirt 1/6] conf: add MTP filesystem support to the parser

2014-08-11 Thread Daniel P. Berrange
On Mon, Aug 11, 2014 at 12:32:17PM +0200, Giuseppe Scrivano wrote: Daniel P. Berrange berra...@redhat.com writes: Would you agree with something like this? filesystem type='mount' device name=mtp sharemtp/device ... What is the name=mtp share bit trying to reflect ?

Re: [libvirt] [PATCH 1/1] numatune: Fix parsing of empty nodeset (0, ^0)

2014-08-11 Thread Ján Tomko
On 08/11/2014 12:03 PM, Erik Skultety wrote: Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1121837 --- src/conf/numatune_conf.c | 18 +++-- ...emuxml2argv-numatune-memory-invalid-nodeset.xml | 31 ++ tests/qemuxml2argvtest.c

Re: [libvirt] [PATCH 3/4] vol-info: Check for NFS FS type

2014-08-11 Thread Ján Tomko
On 08/09/2014 12:28 AM, John Ferlan wrote: Testing seems to indicate that posix_fallocate() either doesn't work as expected on the target or using the target.path is incorrect... Before posix_fallocate stat st_blocks=0 st_blksize=1048576 st_size=10485760 lseek end=10485760 posix_fallocate

[libvirt] [PATCH] conf: Format interface's driver more frequently

2014-08-11 Thread Michal Privoznik
There's this driver/ element under interface/ which can have several attributes. However, the driver element is currently formated only if the driver's name or txmode has been specified. This makes only a little sense as we parse even partial driver/, for instance: interface type='user'

[libvirt] [python-PATCH] Fix libvirt_longlongWrap returning a very large value

2014-08-11 Thread Wang Rui
From: Zhou Yimin zhouyi...@huawei.com If hypervisor is not Xen, the errs in struct _virDomainBlockStats will be -1. But in KVM when we call domain.blockStats(), errs is 18446744073709551615. To fix that, this patch has two changes: 1. Replace use of the PyLong_FromUnsignedLongLong with

Re: [libvirt] [PATCH] conf: Format interface's driver more frequently

2014-08-11 Thread Ján Tomko
On 08/11/2014 03:02 PM, Michal Privoznik wrote: There's this driver/ element under interface/ which can have several attributes. However, the driver element is currently formated only if the driver's name or txmode has been specified. This makes only a little sense as we parse even partial

[libvirt] [PATCHv2] numatune: Fix parsing of empty nodeset (0,^0)

2014-08-11 Thread Erik Skultety
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1121837 --- Notes: Version 2: - reject empty bitmaps while parsing instead of just rejecting nodesets src/util/virbitmap.c | 3 +++ tests/qemuxml2argvtest.c | 1 + 2 files changed, 4 insertions(+) diff --git

Re: [libvirt] [PATCH] qemu: use guest-fsfreeze-freeze-list command if mountpoints to freeze specified

2014-08-11 Thread Michal Privoznik
On 08.08.2014 22:03, Tomoki Sekiyama wrote: A command to freeze a part of mounted file systems is implemented in upstream QEMU-guest-agent with a name of 'guest-fsfreeze-freeze-list'. This fixes the name of the command used to partial fsfreeze in qemu driver when 'mountpoints' option is

Re: [libvirt] [PATCH 3/4] vol-info: Check for NFS FS type

2014-08-11 Thread John Ferlan
...snip... Why all this happens I'm not sure. Bug in posix_fallocate()? Bug in configuration? I have to assume that when this code was first added NFS probably was still using smaller block sizes. The code was introduced in 2013. Maybe it wasn't tested on NFS at all? It looks like a

Re: [libvirt] [RFC PATCH 1/5] doc: schema: Add basic documentation for the ivshmem support

2014-08-11 Thread Levente Kurusa
(Imported thread from archives, hopefully I won't break threading. If I did, I apologize.) On Aug 08 2014, Martin Kletzander wrote: On Fri, Aug 08, 2014 at 02:07:56PM +0200, Maxime Leroy wrote: On Fri, Aug 8, 2014 at 11:21 AM, Martin Kletzander mklet...@redhat.com wrote: On Thu, Aug 07, 2014 at

[libvirt] [PATCHv3] numatune: Fix parsing of empty nodeset (0,^0)

2014-08-11 Thread Erik Skultety
Resolves https://bugzilla.redhat.com/show_bug.cgi?id=1121837 --- src/util/virbitmap.c | 3 +++ ...emuxml2argv-numatune-memory-invalid-nodeset.xml | 31 ++ tests/qemuxml2argvtest.c | 1 + 3 files changed, 35

Re: [libvirt] [RFC PATCH 0/5] ivshmem support

2014-08-11 Thread Levente Kurusa
On Aug 06 2014, Wang Rui wrote: On 2014/8/6 0:48, Maxime Leroy wrote: The following patches are an implementation proposal for the ivshmem device support in libvirt. Any feedback is welcome. Note: SELinux is not supported (need to be done for the next patchset version) Just some

Re: [libvirt] [python-PATCH] Fix libvirt_longlongWrap returning a very large value

2014-08-11 Thread Michal Privoznik
On 11.08.2014 14:59, Wang Rui wrote: From: Zhou Yimin zhouyi...@huawei.com If hypervisor is not Xen, the errs in struct _virDomainBlockStats will be -1. But in KVM when we call domain.blockStats(), errs is 18446744073709551615. To fix that, this patch has two changes: 1. Replace use of the

[libvirt] [PATCH v2 libvirt 0/8] Add support for qemu usb-mtp device

2014-08-11 Thread Giuseppe Scrivano
This series adds support for qemu usb-mtp devices. This new series addresses comments for v1: https://www.redhat.com/archives/libvir-list/2014-August/msg00381.html Now the XML looks like: filesystem type='mount' source dir='/tmp/mtp_root'/ model type='mtp'/ target

[libvirt] [PATCH v2 libvirt 1/8] conf: add model child element to filesystem

2014-08-11 Thread Giuseppe Scrivano
Signed-off-by: Giuseppe Scrivano gscri...@redhat.com --- src/conf/domain_conf.c | 25 + src/conf/domain_conf.h | 11 +++ 2 files changed, 36 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index c7016f3..9252ffa 100644 ---

  1   2   >