[libvirt] (no subject)

2011-03-09 Thread Guido Günther
From 4a3765d97c3f5049aa294a4b7b629eabfd9cf04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Mon, 7 Mar 2011 22:22:36 +0100 Subject: [PATCH 1/2] Move rundir creation into separate function --- daemon/libvirtd.c | 31 --- 1

Re: [libvirt] [PATCH] virsh: fix memtune's help message for swap_hard_limit

2011-03-09 Thread KAMEZAWA Hiroyuki
On Mon, 07 Mar 2011 15:11:12 +0530 Nikunj A. Dadhania nik...@linux.vnet.ibm.com wrote: Argh, thats me... :( Thanks for the patch Kame. Reviewed-by: Nikunj A. Dadhania nik...@linux.vnet.ibm.com Thanks, rebased onto the latest git tree. == From 421a27337458648b808f0e45cdfd83192313d7cc Mon

[libvirt] [PATCH 2/2] Make sure the rundir is accessible by the user

2011-03-09 Thread Guido Günther
otherwise the user might not have enough permissions to access the socket if roots umask is 077. http://bugs.debian.org/614210 --- daemon/libvirtd.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/daemon/libvirtd.c b/daemon/libvirtd.c index 610e7fd..a968e05 100644 ---

[libvirt] [PATCH] qemu: Check the unsigned integer overflow

2011-03-09 Thread Osier Yang
As perhaps other hypervisor drivers use different capacity units, do the checking in qemu driver instead of in conf/domain_conf.c. --- src/qemu/qemu_command.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index

[libvirt] [PATCH v2] qemu: Check the unsigned integer overflow

2011-03-09 Thread Osier Yang
As perhaps other hypervisor drivers use different capacity units, do the checking in qemu driver instead of in conf/domain_conf.c. --- src/qemu/qemu_command.c | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c

[libvirt] [PATCH] security: ignore disk opening failure of DAC driver.

2011-03-09 Thread Osier Yang
Which blocks the domain booting up if one of the disks can't be opened (e.g. doesn't exist). --- src/security/security_dac.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/security/security_dac.c b/src/security/security_dac.c index fba2d1d..8bb5bc9 100644 ---

Re: [libvirt] [PATCH V4] Add libxenlight driver

2011-03-09 Thread Markus Gross
Am Dienstag 08 März 2011 03:48:55 schrieb Jim Fehlig: Add a new xen driver based on libxenlight [1], which is the primary toolstack starting with Xen 4.1.0. The driver is stateful, runs privileged only, and is accessed with libxl:/// URI. V4: - Handle restart of libvirtd, reconnecting to

[libvirt] [PATCH v2] Allow to dynamically set the size of the debug buffer

2011-03-09 Thread Daniel Veillard
[ sending this by hand as git-send-email seems to have failed to send the patch ... weird Result: 250 2.0.0 p2979dJi005806 Message accepted for delivery (mbox) Adding cc: Daniel Veillard veill...@redhat.com from line 'From: Daniel Veillard veill...@redhat.com' (mbox) Adding to:

Re: [libvirt] [PATCH] docs: silence warnings about generated API docs

2011-03-09 Thread Matthias Bolte
2011/3/9 Eric Blake ebl...@redhat.com: I noticed these while testing 'make dist'. Parsing ./../src/util/event.c Function comment for virEventRegisterDefaultImpl lacks description of return value Function comment for virEventRunDefaultImpl lacks description of return value Parsing

Re: [libvirt] how to install 'devel' module from source files...

2011-03-09 Thread Matthias Bolte
2011/3/8 john alexander sanabria ordonez john.sanab...@correounivalle.edu.co: Hi, I'm wondering how, when libvirt is installed from sources, to also install the 'development' files? I installed libvirt-0.8.8 with no problems and 'virsh' works OK. However, when I try to install, for instance

[libvirt] [PATCH] Include stdint.h in libvirt.h for INT64_MAX

2011-03-09 Thread Matthias Bolte
I found this one while trying to compile ruby-libvirt. Matthias From 6858713a7ea7fad961acbc4d4f3c0c53ede2302d Mon Sep 17 00:00:00 2001 From: Matthias Bolte matthias.bo...@googlemail.com Date: Wed, 9 Mar 2011 10:42:49 +0100 Subject: [PATCH] Include stdint.h in libvirt.h for INT64_MAX

[libvirt] [ruby-libvirt PATCH] Fix compile error due to missing semicolon

2011-03-09 Thread Matthias Bolte
I pushed this under the trivial build breaker rule. Matthias From fd48bb491477843d520a14f226e79fde3e053da7 Mon Sep 17 00:00:00 2001 From: Matthias Bolte matthias.bo...@googlemail.com Date: Wed, 9 Mar 2011 11:17:34 +0100 Subject: [ruby-libvirt PATCH] Fix compile error due to missing semicolon ---

Re: [libvirt] [PATCH] dynamic_ownership documentation

2011-03-09 Thread Stephan Mueller
Am Freitag, 4. März 2011, um 17:35:03 schrieb Daniel P. Berrange: Hi Daniel, On Fri, Mar 04, 2011 at 04:53:20PM +0100, Stephan Mueller wrote: Hi, I would like to propose the following patch for the libvirtd.conf file to document sVirt and its usage. If you have suggestions to add

Re: [libvirt] [PATCH] dynamic_ownership documentation

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 11:38:23AM +0100, Stephan Mueller wrote: Am Freitag, 4. März 2011, um 17:35:03 schrieb Daniel P. Berrange: +# A static assignment of SELinux labels imply that the administrator +# manually configures the SELinux label of the virtual machine in +#

Re: [libvirt] [PATCH 2/2] libvirtd: Remove indirect linking

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:19:16PM +0100, Guido Günther wrote: On Tue, Mar 08, 2011 at 06:57:02PM +, Daniel P. Berrange wrote: [..snip..] -libvirtd_LDADD += ../src/libvirt.la +if WITH_SECDRIVER_SELINUX +libvirtd_LDADD += $(SELINUX_LIBS) +endif +if WITH_SECDRIVER_APPARMOR

Re: [libvirt] (no subject)

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 09:17:56AM +0100, Guido Günther wrote: From 4a3765d97c3f5049aa294a4b7b629eabfd9cf04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Mon, 7 Mar 2011 22:22:36 +0100 Subject: [PATCH 1/2] Move rundir creation into separate function

Re: [libvirt] [PATCH] security: ignore disk opening failure of DAC driver.

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 04:39:01PM +0800, Osier Yang wrote: Which blocks the domain booting up if one of the disks can't be opened (e.g. doesn't exist). --- src/security/security_dac.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/security/security_dac.c

Re: [libvirt] [PATCH] Fix a wrong error message threw to user.

2011-03-09 Thread Daniel Veillard
On Wed, Mar 09, 2011 at 03:43:44PM +0800, Hu Tao wrote: --- src/qemu/qemu_driver.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 0f7cbad..f26b1ef 100644 --- a/src/qemu/qemu_driver.c +++

Re: [libvirt] (no subject)

2011-03-09 Thread Guido Günther
On Wed, Mar 09, 2011 at 12:12:22PM +, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 09:17:56AM +0100, Guido Günther wrote: From 4a3765d97c3f5049aa294a4b7b629eabfd9cf04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Mon, 7 Mar 2011 22:22:36

[libvirt] [PATCH] storage: replace the deprecated option of qemu-img.

2011-03-09 Thread Osier Yang
qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on. I'm afraid of it will inroduce compatibility problem for older qemu without -o option, but -o option is already used in the codes, seems it's fine. * src/storage/storage_backend.c ---

Re: [libvirt] [PATCH] storage: replace the deprecated option of qemu-img.

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 08:27:41PM +0800, Osier Yang wrote: qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on. I'm afraid of it will inroduce compatibility problem for older qemu without -o option, but -o option is already used in

Re: [libvirt] [PATCH] Include stdint.h in libvirt.h for INT64_MAX

2011-03-09 Thread Daniel Veillard
On Wed, Mar 09, 2011 at 12:18:44PM +, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 10:49:34AM +0100, Matthias Bolte wrote: I found this one while trying to compile ruby-libvirt. Matthias From 6858713a7ea7fad961acbc4d4f3c0c53ede2302d Mon Sep 17 00:00:00 2001 From: Matthias

Re: [libvirt] [PATCH] storage: replace the deprecated option of qemu-img.

2011-03-09 Thread Osier Yang
于 2011年03月09日 20:31, Daniel P. Berrange 写道: On Wed, Mar 09, 2011 at 08:27:41PM +0800, Osier Yang wrote: qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on. I'm afraid of it will inroduce compatibility problem for older qemu without

Re: [libvirt] [libvirt-snmp][PATCH] configure.ac: lower required minimal version of autoconf

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 06:11:53PM +0100, Michal Privoznik wrote: so we can build even on rhel 5.6 where the original version is not yet. --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/configure.ac b/configure.ac index 468fb07..dcab0ae 100644

Re: [libvirt] [libvirt-snmp][PATCH] configure.ac: lower required minimal version of autoconf

2011-03-09 Thread Eric Blake
On 03/09/2011 05:41 AM, Daniel P. Berrange wrote: On Tue, Mar 08, 2011 at 06:11:53PM +0100, Michal Privoznik wrote: so we can build even on rhel 5.6 where the original version is not yet. --- configure.ac |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

Re: [libvirt] [PATCH] storage: replace the deprecated option of qemu-img.

2011-03-09 Thread Jiri Denemark
On Wed, Mar 09, 2011 at 20:27:41 +0800, Osier Yang wrote: qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on. I'm afraid of it will inroduce compatibility problem for older qemu without -o option, but -o option is already used in

Re: [libvirt] [PATCH] Include stdint.h in libvirt.h for INT64_MAX

2011-03-09 Thread Matthias Bolte
2011/3/9 Daniel Veillard veill...@redhat.com: On Wed, Mar 09, 2011 at 12:18:44PM +, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 10:49:34AM +0100, Matthias Bolte wrote: I found this one while trying to compile ruby-libvirt. Matthias From 6858713a7ea7fad961acbc4d4f3c0c53ede2302d

Re: [libvirt] [PATCH 2/2] libvirtd: Remove indirect linking

2011-03-09 Thread Guido Günther
On Wed, Mar 09, 2011 at 12:03:37PM +, Daniel P. Berrange wrote: [..snip..] libvirt_driver_lxc_la_SOURCES = $(LXC_DRIVER_SOURCES) @@ -870,6 +878,12 @@ libvirt_driver_storage_la_CFLAGS = \ -I@top_srcdir@/src/conf $(AM_CFLAGS) libvirt_driver_storage_la_LDFLAGS =

[libvirt] [PATCH] Raise default limit on number of processes for qemu user

2011-03-09 Thread Jiri Denemark
The daemon/libvirtd.limits file (which is supposed to be copied to /etc/security/limits.d/libvirtd.conf) is generated based on --qemu-user option passed at configure time. The file is intentionally not installed by make install since installing it on distributions with higher or no limit on

Re: [libvirt] [PATCH 2/2] Make sure the rundir is accessible by the user

2011-03-09 Thread Guido Günther
On Wed, Mar 09, 2011 at 09:20:50AM +0100, Guido Günther wrote: otherwise the user might not have enough permissions to access the socket if roots umask is 077. This version of the patch fixes the dependency on a sane umask without introducing a new function. O.k. to apply? Cheers, -- Guido From

[libvirt] Fix umask on error path in qemudListenUnix

2011-03-09 Thread Guido Günther
Hi, Attached patch makes sure we reset the umask in qemudListenUnix on the error path. O.k. to apply? -- Guido From 10c0088ca1ee55a2e44802f1f0185d7a8be907ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= a...@sigxcpu.org Date: Wed, 9 Mar 2011 14:19:56 +0100 Subject: [PATCH] Fix

[libvirt] [PATCH] util: Forbid calling hash APIs from iterator callback

2011-03-09 Thread Jiri Denemark
Calling most hash APIs is not safe from inside of an iterator callback. Exceptions are APIs that do not modify the hash table and removing current hash entry from virHashFroEach callback. This patch make all APIs which are not safe fail instead of just relying on the callback being nice not

Re: [libvirt] [PATCH] docs: correct range of default NAT subnet

2011-03-09 Thread Cole Robinson
On 03/08/2011 06:24 PM, Eric Blake wrote: * docs/formatdomain.html.in: Fix typo. --- Pushing under the trivial rule. docs/formatdomain.html.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index

Re: [libvirt] [PATCH] docs: document driver name='vhost'/ for interfaces

2011-03-09 Thread Cole Robinson
On 03/08/2011 06:38 PM, Eric Blake wrote: * docs/formatdomain.html.in: Document virtio backend selection. --- How about I help out? :) docs/formatdomain.html.in | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/docs/formatdomain.html.in

Re: [libvirt] [PATCH] Include stdint.h in libvirt.h for INT64_MAX

2011-03-09 Thread Daniel Veillard
On Wed, Mar 09, 2011 at 02:01:06PM +0100, Matthias Bolte wrote: 2011/3/9 Daniel Veillard veill...@redhat.com: On Wed, Mar 09, 2011 at 12:18:44PM +, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 10:49:34AM +0100, Matthias Bolte wrote: I found this one while trying to compile

Re: [libvirt] [PATCH] qemu: Fix warnings in event handlers

2011-03-09 Thread Cole Robinson
On 03/09/2011 08:20 AM, Jiri Denemark wrote: Some qemu monitor event handlers were issuing inadequate warning when virDomainSaveStatus() failed. They copied the message from I/O error handler without customizing it to provide better information on why virDomainSaveStatus() was called. ---

[libvirt] [PATCH v2] qemu: Replace deprecated option of qemu-img

2011-03-09 Thread Osier Yang
qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on if qemu supports -o option. --- src/storage/storage_backend.c | 47 +--- 1 files changed, 38 insertions(+), 9 deletions(-) diff --git

Re: [libvirt] [PATCH] storage: replace the deprecated option of qemu-img.

2011-03-09 Thread Osier Yang
于 2011年03月09日 20:50, Jiri Denemark 写道: On Wed, Mar 09, 2011 at 20:27:41 +0800, Osier Yang wrote: qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on. I'm afraid of it will inroduce compatibility problem for older qemu without -o

Re: [libvirt] [PATCH 2/2] Make sure the rundir is accessible by the user

2011-03-09 Thread Guido Günther
On Wed, Mar 09, 2011 at 02:16:47PM +, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 02:19:18PM +0100, Guido Günther wrote: On Wed, Mar 09, 2011 at 09:20:50AM +0100, Guido Günther wrote: otherwise the user might not have enough permissions to access the socket if roots umask is

Re: [libvirt] [PATCHv2 1/8] audit: tweak audit messages to match conventions

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:43PM -0700, Eric Blake wrote: * src/qemu/qemu_audit.c (qemuDomainHostdevAudit): Avoid use of type, which has a pre-defined meaning. (qemuDomainCgroupAudit): Likewise, as well as item. --- v2: no real change src/qemu/qemu_audit.c |6 +++--- 1 files

Re: [libvirt] [PATCH] util: Forbid calling hash APIs from iterator callback

2011-03-09 Thread Eric Blake
On 03/09/2011 06:20 AM, Jiri Denemark wrote: Calling most hash APIs is not safe from inside of an iterator callback. Exceptions are APIs that do not modify the hash table and removing current hash entry from virHashFroEach callback. s/Fro/For/ ACK. -- Eric Blake ebl...@redhat.com

Re: [libvirt] [PATCHv2 2/8] audit: split cgroup audit types to allow more information

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:44PM -0700, Eric Blake wrote: Device names can be manipulated, so it is better to also log the major/minor device number corresponding to the cgroup ACL changes that libvirt made. This required some refactoring of the relatively new qemu cgroup audit code.

Re: [libvirt] [PATCHv2 3/8] audit: also audit cgroup controller path

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:45PM -0700, Eric Blake wrote: Although the cgroup device ACL controller path can be worked out by researching the code, it is more efficient to include that information directly in the audit message. * src/util/cgroup.h (virCgroupPathOfController): New

Re: [libvirt] [PATCH] docs: document driver name='vhost'/ for interfaces

2011-03-09 Thread Eric Blake
On 03/09/2011 06:48 AM, Cole Robinson wrote: On 03/08/2011 06:38 PM, Eric Blake wrote: * docs/formatdomain.html.in: Document virtio backend selection. --- @@ -1401,6 +1401,18 @@ qemu-kvm -net nic,model=? /dev/null /p dl + dtcodename/code/dt + dd +The optional

Re: [libvirt] [PATCH] docs: silence warnings about generated API docs

2011-03-09 Thread Eric Blake
On 03/09/2011 02:21 AM, Matthias Bolte wrote: 2011/3/9 Eric Blake ebl...@redhat.com: I noticed these while testing 'make dist'. Parsing ./../src/util/event.c Function comment for virEventRegisterDefaultImpl lacks description of return value Function comment for virEventRunDefaultImpl lacks

Re: [libvirt] [PATCH] Don't overwrite virRun error messages

2011-03-09 Thread Cole Robinson
On 03/08/2011 10:27 PM, Eric Blake wrote: On 03/08/2011 11:50 AM, Cole Robinson wrote: virRun gives pretty useful error output, let's not overwrite it unless there is a good reason. Some places were providing more information about what the commands were _attempting_ to do, however that's

Re: [libvirt] [PATCHv2 4/8] audit: audit use of /dev/vhost-net

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:46PM -0700, Eric Blake wrote: Passing the vhost net device fd to qemu is worth an audit point, since it is a kernel-managed device. This patch points out that qemu still can't hot-plug and hot-unplug vhost-net interfaces. * src/qemu/qemu_audit.h

Re: [libvirt] [PATCHv2 5/8] audit: rename remaining qemu audit functions

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:47PM -0700, Eric Blake wrote: * src/qemu/qemu_audit.h: The pattern qemuDomainXXXAudit is inconsistent; prefer qemuAuditXXX instead. * src/qemu/qemu_audit.c: Reflect the renames. * src/qemu/qemu_driver.c: Likewise. * src/qemu/qemu_hotplug.c: Likewise. *

Re: [libvirt] [PATCHv2 6/8] cgroup: allow fine-tuning of device ACL permissions

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:48PM -0700, Eric Blake wrote: diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index ebf9ad5..83063a9 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -226,7 +229,8 @@ int qemuSetupCgroup(struct qemud_driver *driver,

Re: [libvirt] [PATCHv2 7/8] audit: also audit cgroup ACL permissions

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:49PM -0700, Eric Blake wrote: * src/qemu/qemu_audit.h (qemuAuditCgroupMajor) (qemuAuditCgroupPath): Add parameter. * src/qemu/qemu_audit.c (qemuAuditCgroupMajor) (qemuAuditCgroupPath): Add 'acl=rwm' to cgroup audit entries. * src/qemu/qemu_cgroup.c: Update

Re: [libvirt] [RFC: PATCHv2 8/8] qemu: support vhost in attach-interface

2011-03-09 Thread Daniel P. Berrange
On Tue, Mar 08, 2011 at 10:13:50PM -0700, Eric Blake wrote: * src/qemu/qemu_hotplug.c (qemuDomainAttachNetDevice): Honor vhost designations, similar to qemu_command code paths. * src/qemu/qemu_command.h (qemuOpenVhostNet): New prototype. * src/qemu/qemu_command.c (qemuOpenVhostNet): Export.

Re: [libvirt] [PATCH 0/3] Support domain snapshots with current QMP whithout savevm command

2011-03-09 Thread Daniel P. Berrange
On Thu, Mar 03, 2011 at 03:04:58PM +, Daniel P. Berrange wrote: On Fri, Feb 25, 2011 at 07:04:07PM +0100, Jiri Denemark wrote: This is quite hacky since it involves falling back to HMP when savevm command is not found in QMP, which is something qemu monitor code was not designed to

[libvirt] [libvirt-snmp][PATCH] resolve licensing conflicts

2011-03-09 Thread Michal Privoznik
and add unified header to source files. Also remove LIBVIRT-MIB.txt from %doc dir. --- README |4 +++- libvirt-snmp.spec.in| 10 +++--- src/libvirtGuestTable.c | 24 +--- src/libvirtGuestTable.h |

Re: [libvirt] [libvirt-snmp][PATCH] resolve licensing conflicts

2011-03-09 Thread Eric Blake
On 03/09/2011 08:43 AM, Michal Privoznik wrote: and add unified header to source files. Also remove LIBVIRT-MIB.txt from %doc dir. +++ b/README @@ -6,4 +6,6 @@ it is now possible to gather and set domain status over SNMP from one place. This allows to create views of entire platforms end

Re: [libvirt] [PATCH 1/5] setmem: introduce a new libvirt API (virDomainSetMemoryFlags)

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 05:07:48PM +0900, Taku Izumi wrote: This patch introduces a new libvirt API (virDomainSetMemoryFlags) and a flag (virDomainMemoryModFlags). Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in | 10 ++ src/libvirt.c

Re: [libvirt] [PATCH 2/5] setmem: implement the call back member for new API on each driver

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 05:08:48PM +0900, Taku Izumi wrote: This patch implemetns the call back member for new API on each driver. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/driver.h|5 + src/esx/esx_driver.c|1 +

Re: [libvirt] [PATCH 3/5] setmem: implement the code to address the new API in the qemu driver

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 05:13:09PM +0900, Taku Izumi wrote: This patch implements the code to address the new API in the qemu driver. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/qemu/qemu_driver.c | 64 +++-- 1 file

Re: [libvirt] [PATCHv2 2/8] audit: split cgroup audit types to allow more information

2011-03-09 Thread Eric Blake
On 03/09/2011 08:07 AM, Daniel P. Berrange wrote: Rather than have the two strdup(rdev=?) calls, I reckon it would be better to just return NULL. Then the caller can just check for NULL itself fallback to a static rdev=?. In fact, perhaps this should just do virAsprintf(ret,

Re: [libvirt] [PATCH 3/5] setmem: implement the code to address the new API in the qemu driver

2011-03-09 Thread Eric Blake
On 03/09/2011 08:57 AM, Daniel P. Berrange wrote: +switch (flags) { +case VIR_DOMAIN_MEM_CONFIG: +persistentDef-mem.cur_balloon = newmem; +ret = 0; +break; + +case VIR_DOMAIN_MEM_LIVE: +case VIR_DOMAIN_MEM_LIVE | VIR_DOMAIN_MEM_CONFIG: I think it

Re: [libvirt] [PATCH 5/5] setmem: add the new options to virsh setmem command

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 02, 2011 at 05:13:39PM +0900, Taku Izumi wrote: This patch adds the new options (--live and --config) to virsh setmem command. The behavior of above options is the same as that of virsh setvcpus and so on. That is, when the --config option is specified, a modification is

Re: [libvirt] [PATCH] Access qemu backing_file with relative pool path

2011-03-09 Thread Daniel P. Berrange
On Thu, Mar 03, 2011 at 09:06:25PM -0600, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If the storage pool is not found with the specified path, check if the file exists relative to the pool where the new image will be created by

Re: [libvirt] [PATCH v2] Make LXC container startup/shutdown/I/O more robust

2011-03-09 Thread Jiri Denemark
On Thu, Feb 24, 2011 at 13:42:18 +, Daniel P. Berrange wrote: The current LXC I/O controller looks for HUP to detect when a guest has quit. This isn't reliable as during initial bootup it is possible that 'init' will close the console and let mingetty re-open it. The shutdown of

Re: [libvirt] [PATCH] Access qemu backing_file with relative pool path

2011-03-09 Thread Eric Blake
On 03/03/2011 08:06 PM, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If the storage pool is not found with the specified path, check if the file exists relative to the pool where the new image will be created by prepending the

Re: [libvirt] [PATCH] Access qemu backing_file with relative pool path

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 09:23:11AM -0700, Eric Blake wrote: On 03/03/2011 08:06 PM, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If the storage pool is not found with the specified path, check if the file exists relative to

Re: [libvirt] [PATCHv2 3/8] audit: also audit cgroup controller path

2011-03-09 Thread Eric Blake
On 03/09/2011 08:10 AM, Daniel P. Berrange wrote: +virCgroupPathOfController(cgroup, VIR_CGROUP_CONTROLLER_DEVICES, + NULL, controller); + +if (!(detail = virAuditEncode(cgroup, VIR_AUDIT_STR(controller { +VIR_WARN0(OOM while encoding audit

[libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Michal Novotny
Hi, I don't know who's the right person to ask so I'm posting this into the libvir-list. We're going to have the libvirt-php package in Fedora (but renamed to php-libvirt only) but I don't know about the licencing. The licence in the SPEC file (by Lyre) is set to PHP however the licence file

Re: [libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Daniel P. Berrange
On Wed, Mar 09, 2011 at 06:05:22PM +0100, Michal Novotny wrote: Hi, I don't know who's the right person to ask so I'm posting this into the libvir-list. We're going to have the libvirt-php package in Fedora (but renamed to php-libvirt only) but I don't know about the licencing. The licence in

Re: [libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Michal Novotny
On 03/09/2011 06:17 PM, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 06:05:22PM +0100, Michal Novotny wrote: Hi, I don't know who's the right person to ask so I'm posting this into the libvir-list. We're going to have the libvirt-php package in Fedora (but renamed to php-libvirt only) but

Re: [libvirt] [PATCHv2 6/8] cgroup: allow fine-tuning of device ACL permissions

2011-03-09 Thread Eric Blake
On 03/09/2011 08:24 AM, Daniel P. Berrange wrote: On Tue, Mar 08, 2011 at 10:13:48PM -0700, Eric Blake wrote: diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index ebf9ad5..83063a9 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -226,7 +229,8 @@ int

Re: [libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Michal Novotny
On 03/09/2011 06:17 PM, Daniel P. Berrange wrote: On Wed, Mar 09, 2011 at 06:05:22PM +0100, Michal Novotny wrote: Hi, I don't know who's the right person to ask so I'm posting this into the libvir-list. We're going to have the libvirt-php package in Fedora (but renamed to php-libvirt only) but

Re: [libvirt] [PATCH] Access qemu backing_file with relative pool path

2011-03-09 Thread Jesse J Cook
On Wed, 2011-03-09 at 09:23 -0700, Eric Blake wrote: On 03/03/2011 08:06 PM, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If the storage pool is not found with the specified path, check if the file exists relative to the pool

Re: [libvirt] [PATCH] Access qemu backing_file with relative pool path

2011-03-09 Thread Jesse J Cook
On Wed, 2011-03-09 at 16:07 +, Daniel P. Berrange wrote: On Thu, Mar 03, 2011 at 09:06:25PM -0600, Jesse Cook wrote: This patch enables the relative backing file path support provided by qemu-img create. If the storage pool is not found with the specified path, check if the file

Re: [libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Eric Blake
On 03/09/2011 11:34 AM, Michal Novotny wrote: http://www.gnu.org/licenses/license-list.html#GPLIncompatibleLicenses So, the libvirt-php module would have to be under either the PHP license, or something less restrictive. Regards, Daniel Well, I've been reading PHP-LICENSE-3.01 file of

Re: [libvirt] Question about PHP licencing for libvirt-php (php-libvirt for Fedora)

2011-03-09 Thread Michal Novotny
On 03/09/2011 07:45 PM, Eric Blake wrote: On 03/09/2011 11:34 AM, Michal Novotny wrote: http://www.gnu.org/licenses/license-list.html#GPLIncompatibleLicenses So, the libvirt-php module would have to be under either the PHP license, or something less restrictive. Regards, Daniel Well,

Re: [libvirt] [PATCHv2 7/8] audit: also audit cgroup ACL permissions

2011-03-09 Thread Eric Blake
On 03/09/2011 08:26 AM, Daniel P. Berrange wrote: On Tue, Mar 08, 2011 at 10:13:49PM -0700, Eric Blake wrote: * src/qemu/qemu_audit.h (qemuAuditCgroupMajor) (qemuAuditCgroupPath): Add parameter. * src/qemu/qemu_audit.c (qemuAuditCgroupMajor) (qemuAuditCgroupPath): Add 'acl=rwm' to cgroup

[libvirt] [PATCHv3 0/2] more audit patches - audit network device fds

2011-03-09 Thread Eric Blake
I hope this closes out my audit series. As promised in https://www.redhat.com/archives/libvir-list/2011-March/msg00415.html, here's the updated and tested network device auditing patches. This time, I've completed testing: in virt-manager, I attached a hypervisor default (non-virtio, so no

[libvirt] [PATCHv3 2/2] audit: audit use of /dev/net/tun, /dev/tapN, /dev/vhost-net

2011-03-09 Thread Eric Blake
Opening raw network devices with the intent of passing those fds to qemu is worth an audit point. This makes a multi-part audit: first, we audit the device(s) that libvirt opens on behalf of the MAC address of a to-be-created interface (which can independently succeed or fail), then we audit

[libvirt] [PATCHv3 1/2] qemu: support vhost in attach-interface

2011-03-09 Thread Eric Blake
* src/qemu/qemu_hotplug.c (qemuDomainAttachNetDevice): Honor vhost designations, similar to qemu_command code paths. * src/qemu/qemu_command.h (qemuOpenVhostNet): New prototype. * src/qemu/qemu_command.c (qemuOpenVhostNet): Export. --- Hmm, I just realized that it might be nice to have a

Re: [libvirt] [PATCHv2 4/8] audit: audit use of /dev/vhost-net

2011-03-09 Thread Eric Blake
On 03/09/2011 08:19 AM, Daniel P. Berrange wrote: There are several devices for networking - With type=bridge or type=network, /dev/net/tun is opened to get a FD for a tap device instance - With type=direct, /dev/tap%d is opened to get an FD for a macvtap device instance In

[libvirt] [PATCHv3 3/2] qemu: don't request cgroup ACL access for /dev/net/tun

2011-03-09 Thread Eric Blake
Since libvirt always passes /dev/net/tun to qemu via fd, we should never trigger the cases where qemu tries to directly open the device. Therefore, it is safer to deny the cgroup device ACL. * src/qemu/qemu_cgroup.c (defaultDeviceACL): Remove /dev/net/tun. * src/qemu/qemu.conf

[libvirt] [PATCHv4 01/15] qemu: use lighter-weight fd:n on incoming tunneled migration

2011-03-09 Thread Eric Blake
Outgoing migration still uses a Unix socket and or exec netcat until the next patch. * src/qemu/qemu_migration.c (qemuMigrationPrepareTunnel): Replace Unix socket with simpler pipe. Suggested by Paolo Bonzini. --- src/qemu/qemu_migration.c | 45 + 1

[libvirt] [PATCHv4 02/15] qemu: consolidate duplicated monitor migration code

2011-03-09 Thread Eric Blake
* src/qemu/qemu_monitor_text.h (qemuMonitorTextMigrate): Declare in place of individual monitor commands. * src/qemu/qemu_monitor_json.h (qemuMonitorJSONMigrate): Likewise. * src/qemu/qemu_monitor_text.c (qemuMonitorTextMigrateToHost) (qemuMonitorTextMigrateToCommand, qemuMonitorTextMigrateToFile)

[libvirt] [PATCHv4 06/15] qemu: allow simple domain save to use fd: protocol

2011-03-09 Thread Eric Blake
This allows direct saves (no compression, no root-squash NFS) to use the more efficient fd: migration, which in turn avoids a race where qemu exec: migration can sometimes fail because qemu does a generic waitpid() that conflicts with the pclose() used by exec:. Further patches will solve

[libvirt] [PATCHv4 04/15] qemu: support migration to fd

2011-03-09 Thread Eric Blake
* src/qemu/qemu_monitor.h (qemuMonitorMigrateToFd): New prototype. * src/qemu/qemu_monitor.c (qemuMonitorMigrateToFd): New function. --- src/qemu/qemu_monitor.c | 31 +++ src/qemu/qemu_monitor.h |4 2 files changed, 35 insertions(+), 0 deletions(-) diff

[libvirt] [PATCHv4 07/15] qemu: simplify domain save fd handling

2011-03-09 Thread Eric Blake
This makes root-squash NFS saves more efficient. * src/qemu/qemu_driver.c (qemudDomainSaveFlag): Use new virFileOperation flag to open fd only once. --- src/qemu/qemu_driver.c | 75 +--- 1 files changed, 39 insertions(+), 36 deletions(-) diff --git

[libvirt] [PATCHv4 09/15] util: rename virFileOperation to virFileOpenAs

2011-03-09 Thread Eric Blake
This patch intentionally doesn't change indentation, in order to make it easier to review the real changes. * src/util/util.h (VIR_FILE_OP_RETURN_FD, virFileOperationHook): Delete. (virFileOperation): Rename... (virFileOpenAs): ...and reduce parameters. * src/util/util.c (virFileOperationNoFork,

[libvirt] [PATCHv4 05/15] util: use SCM_RIGHTS in virFileOperation when needed

2011-03-09 Thread Eric Blake
Currently, the hook function in virFileOperation is extremely limited: it must be async-signal-safe, and cannot modify any memory in the parent process. It is much handier to return a valid fd and operate on it in the parent than to deal with hook restrictions. * src/util/util.h

[libvirt] [PATCHv4 08/15] storage: simplify fd handling

2011-03-09 Thread Eric Blake
* src/storage/storage_backend.c (virStorageBackendCreateRaw): Use new virFileOperation flag. --- src/storage/storage_backend.c | 48 +--- 1 files changed, 30 insertions(+), 18 deletions(-) diff --git a/src/storage/storage_backend.c

[libvirt] [PATCHv4 10/15] util: adjust indentation in previous patch

2011-03-09 Thread Eric Blake
Separating the indentation from the real patch made review easier. * src/util/util.c (virFileOpenAs): Whitespace changes. --- src/util/util.c | 101 +- 1 files changed, 47 insertions(+), 54 deletions(-) diff --git a/src/util/util.c

Re: [libvirt] [PATCH v2] qemu: Replace deprecated option of qemu-img

2011-03-09 Thread Osier Yang
于 2011年03月10日 00:44, Daniel P. Berrange 写道: qemu-img silently disable -e, so we can't use it for volume encryption anymore, change it into -o encryption=on if qemu supports -o option. Thanks, pushed. Regards Osier -- libvir-list mailing list libvir-list@redhat.com

[libvirt] [RFC PATCHv4 14/15] qemu: skip granting access during fd migration

2011-03-09 Thread Eric Blake
SELinux labeling and cgroup ACLs aren't required if we hand a pre-opened fd to qemu. All the more reason to love fd: migration. * src/qemu/qemu_driver.c (qemuDomainMigrateToFile): Skip steps that are irrelevant in fd migration. --- src/qemu/qemu_driver.c | 65

[libvirt] [PATCHv4 11/15] qemu, storage: improve type safety

2011-03-09 Thread Eric Blake
* src/storage/storage_backend.c (createRawFileOpHook): Change signature. (struct createRawFileOpHookData): Delete unused struct. (virStorageBackendCreateRaw): Adjust caller. * src/qemu/qemu_driver.c (struct fileOpHookData): Delete unused struct. (qemudDomainSaveFileOpHook): Rename...

[libvirt] [PATCHv4 12/15] qemu: use common API for reading difficult files

2011-03-09 Thread Eric Blake
Direct access to an open file is so much simpler than passing everything through a pipe! * src/qemu/qemu_driver.c (qemudOpenAsUID) (qemudDomainSaveImageClose): Delete. (qemudDomainSaveImageOpen): Rename... (qemuDomainSaveImageOpen): ...and drop read_pid argument. Use virFileOpenAs instead of

[libvirt] [RFC PATCHv4 15/15] qemu: support fd: migration with compression

2011-03-09 Thread Eric Blake
Spawn the compressor ourselves, instead of requiring the shell. * src/qemu/qemu_driver.c (qemuDomainMigrateToFile): Spawn compression helper process when needed. --- src/qemu/qemu_driver.c | 37 - 1 files changed, 32 insertions(+), 5 deletions(-) diff --git

[libvirt] [RFC PATCHv4 13/15] qemu: consolidate migration to file code

2011-03-09 Thread Eric Blake
This points out that core dumps (still) don't work for root-squash NFS, since the fd is not opened correctly. This patch should not introduce any functionality change, it is just a refactoring to avoid duplicated code. * src/qemu/qemu_driver.c (qemuDomainMigrateToFile): New function.

Re: [libvirt] [PATCHv3 1/2] qemu: support vhost in attach-interface

2011-03-09 Thread Laine Stump
On 03/09/2011 03:42 PM, Eric Blake wrote: * src/qemu/qemu_hotplug.c (qemuDomainAttachNetDevice): Honor vhost designations, similar to qemu_command code paths. * src/qemu/qemu_command.h (qemuOpenVhostNet): New prototype. * src/qemu/qemu_command.c (qemuOpenVhostNet): Export. --- Hmm, I just

Re: [libvirt] [RFC: PATCHv4 00/15] outgoing migration via fd: rather than exec:

2011-03-09 Thread Laine Stump
On 03/09/2011 08:45 PM, Eric Blake wrote: Needs more testing - especially on root-squash NFS Starting up a domain with backing store on root-squash NFS works fine. When I try to save the domain to a directory on a root-squash NFS, though, the save hangs forever with a zombified child process

Re: [libvirt] [PATCH V4] Add libxenlight driver

2011-03-09 Thread Jim Fehlig
Markus Gross wrote: Am Dienstag 08 März 2011 03:48:55 schrieb Jim Fehlig: Add a new xen driver based on libxenlight [1], which is the primary toolstack starting with Xen 4.1.0. The driver is stateful, runs privileged only, and is accessed with libxl:/// URI. V4: - Handle restart of

[libvirt] [PATCH] storage: Update qemu-img flag checking

2011-03-09 Thread Osier Yang
For newer qemu-img, the help string for backing file format is [-F backing_fmt]. Fix the wrong logic error by commit e997c268. * src/storage/storage_backend.c --- src/storage/storage_backend.c |7 --- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [libvirt] [PATCH] storage: Update qemu-img flag checking

2011-03-09 Thread Osier Yang
于 2011年03月10日 15:29, Daniel Veillard 写道: On Thu, Mar 10, 2011 at 03:08:28PM +0800, Osier Yang wrote: For newer qemu-img, the help string for backing file format is [-F backing_fmt]. Fix the wrong logic error by commit e997c268. * src/storage/storage_backend.c ---

  1   2   >