Re: [libvirt] [PATCH 1/4] vcpupin: inroduce a new libvir API (virDomainPinVcpuFlags)

2011-04-08 Thread Wen Congyang
At 04/08/2011 01:20 PM, Taku Izumi Write: This patch introduces a new libvirt API (virDomainPinVcpuFlags) Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |6 +++ src/driver.h |7 +++ src/libvirt.c| 83

Re: [libvirt] [PATCH 1/4] vcpupin: inroduce a new libvir API (virDomainPinVcpuFlags)

2011-04-08 Thread Hu Tao
Index: libvirt/src/lxc/lxc_driver.c === --- libvirt.orig/src/lxc/lxc_driver.c +++ libvirt/src/lxc/lxc_driver.c @@ -2837,6 +2837,7 @@ static virDriver lxcDriver = { NULL, /* domainSetVcpusFlags */ NULL, /*

[libvirt] [PATCH] libxl: missing directory creation for logs

2011-04-08 Thread Daniel Veillard
Libvirt-0.9.0 wasn't building for Fedora 16, the spec file referenced a log directory missing in teh install tree. After checking that the code actually needed that directory, the following patch solves the problem, Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit

Re: [libvirt] [PATCH 1/4] vcpupin: inroduce a new libvir API (virDomainPinVcpuFlags)

2011-04-08 Thread Osier Yang
于 2011年04月08日 13:20, Taku Izumi 写道: This patch introduces a new libvirt API (virDomainPinVcpuFlags) Signed-off-by: Taku Izumiizumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |6 +++ src/driver.h |7 +++ src/libvirt.c| 83

Re: [libvirt] [PATCH v2 0/4] RFC: vcpupin: configure inactive domains' CPU affinity setting

2011-04-08 Thread Hu Tao
On Fri, Apr 08, 2011 at 02:14:07PM +0900, Taku Izumi wrote: Hi all, This patchset enables us to configure inactive domains' CPU affinity setting. The basic technique is the same as that of virsh setmem command. = http://www.redhat.com/archives/libvir-list/2011-March/msg00013.html v1

Re: [libvirt] patch review tool for libvirt patches?

2011-04-08 Thread Daniel Veillard
On Thu, Apr 07, 2011 at 07:21:26PM +0100, Daniel P. Berrange wrote: On Thu, Apr 07, 2011 at 11:24:04AM -0400, Laine Stump wrote: Now that 0.9.0 is out, I'd like to ask everyone's opinions about patch review tools. [...] I'm sending this message 1) to see if others are feeling the pressure

Re: [libvirt] [PATCH 4/4] Add domainSave/Restore to libxl driver

2011-04-08 Thread Markus Gross
Thanks Jim for the review of patch 3 and 4. I will rework them and post a v2 as soon as I am back from vacation. Cheers, Markus Quoting Jim Fehlig jfeh...@novell.com: Markus Groß wrote: --- src/libxl/libxl_conf.h | 10 +++ src/libxl/libxl_driver.c | 184

Re: [libvirt] [PATCH 1/3] maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag

2011-04-08 Thread Hu Tao
On Fri, Apr 08, 2011 at 02:07:27PM +0900, Taku Izumi wrote: This patch introduces VIR_DOMAIN_MEM_MAXIMUM flag. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |1 + src/libvirt.c|2 ++ 2 files changed, 3 insertions(+)

Re: [libvirt] Using Restore in another host.

2011-04-08 Thread Marcela Castro León
Hello I'm thinking to upgrade the libvirt to solve the problem as you said in your last mail. But I've installed the package using apt-get install and I can''t get higher version of all the packages involves doing an upgrade in ubuntu (I'm using 10.04) Can you suggest-me an easy way to upgrate the

Re: [libvirt] Using Restore in another host.

2011-04-08 Thread Michal Novotny
Hi, I think the best thing would be to download it directly from libvirt.org site and install it. It's not the easiest way but it's the best way IMHO. You can find relevant information there: http://libvirt.org/compiling.html Michal On 04/08/2011 10:18 AM, Marcela Castro León wrote: Hello

Re: [libvirt] [PATCH 1/3] maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag

2011-04-08 Thread Hu Tao
On Fri, Apr 08, 2011 at 03:51:44PM +0800, Hu Tao wrote: On Fri, Apr 08, 2011 at 02:07:27PM +0900, Taku Izumi wrote: This patch introduces VIR_DOMAIN_MEM_MAXIMUM flag. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |1 + src/libvirt.c

[libvirt] Add filesystem pool formatting (v4)

2011-04-08 Thread Osier Yang
This patch series are based on Dave Allan's previous posts: https://www.redhat.com/archives/libvir-list/2010-June/msg00040.html I rebased them and make changes per last feedback from Eric, and also other some small changes. QUOTE The following patches add the ability to format filesystem pools

[libvirt] [PATCH 1/3] storage: Add mkfs and libblkid to build system

2011-04-08 Thread Osier Yang
New changes: * Define LIBBLKID_REQUIRED, which is missed in previous posts. * Remove libblkid requires per Eric's feedback. --- configure.ac| 26 ++ libvirt.spec.in |4 src/Makefile.am |4 3 files changed, 34 insertions(+), 0 deletions(-) diff

[libvirt] [PATCH 2/3] Storage: Add fs pool formatting

2011-04-08 Thread Osier Yang
Previous description from Dave Allan. QUOTE This patch adds the ability to make the filesystem for a filesystem pool during a pool build. The patch adds two new flags, no overwrite and overwrite, to control when mkfs gets executed. By default, the patch preserves the current behavior, i.e., if

[libvirt] [PATCH 3/3] storage: Add virsh support for fs pool formating

2011-04-08 Thread Osier Yang
New changes: Add doc --- tools/virsh.c | 13 - tools/virsh.pod | 12 +++- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index e186c75..c9fbbf8 100644 --- a/tools/virsh.c +++ b/tools/virsh.c @@ -5723,6 +5723,8 @@ static

Re: [libvirt] [PATCH 4/6] qemu: use virObject to manage reference-counting for qemu monitor

2011-04-08 Thread Daniel P. Berrange
On Fri, Apr 08, 2011 at 11:07:44AM +0800, Hu Tao wrote: On Thu, Apr 07, 2011 at 10:38:34AM +0100, Daniel P. Berrange wrote: On Wed, Apr 06, 2011 at 03:19:55PM +0800, Hu Tao wrote: --- src/qemu/qemu_domain.c| 30 ++--- src/qemu/qemu_migration.c |2 -

Re: [libvirt] [PATCH 2/3] Storage: Add fs pool formatting

2011-04-08 Thread Osier Yang
于 2011年04月08日 16:51, Osier Yang 写道: Previous description from Dave Allan. QUOTE This patch adds the ability to make the filesystem for a filesystem pool during a pool build. The patch adds two new flags, no overwrite and overwrite, to control when mkfs gets executed. By default, the patch

Re: [libvirt] [PATCH 4/6] qemu: use virObject to manage reference-counting for qemu monitor

2011-04-08 Thread Hu Tao
On Fri, Apr 08, 2011 at 09:57:16AM +0100, Daniel P. Berrange wrote: On Fri, Apr 08, 2011 at 11:07:44AM +0800, Hu Tao wrote: On Thu, Apr 07, 2011 at 10:38:34AM +0100, Daniel P. Berrange wrote: On Wed, Apr 06, 2011 at 03:19:55PM +0800, Hu Tao wrote: --- src/qemu/qemu_domain.c|

Re: [libvirt] [PATCH] libxl: missing directory creation for logs

2011-04-08 Thread Daniel Veillard
On Fri, Apr 08, 2011 at 03:19:47PM +0800, Daniel Veillard wrote: Libvirt-0.9.0 wasn't building for Fedora 16, the spec file referenced a log directory missing in teh install tree. After checking that the code actually needed that directory, the following patch solves the problem, Self NAK,

Re: [libvirt] [PATCH] build: Install libxenlight log dir

2011-04-08 Thread Daniel Veillard
On Thu, Apr 07, 2011 at 04:13:33PM -0600, Jim Fehlig wrote: Add $localstatedir/log/libvirt/libxl when building libxenlight driver --- src/Makefile.am |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/Makefile.am b/src/Makefile.am index 9b54679..3649106 100644

Re: [libvirt] [PATCH] do not build libvirt_iohelper when building without libvirtd

2011-04-08 Thread Daniel Veillard
On Fri, Apr 08, 2011 at 11:26:47AM +0800, Wen Congyang wrote: The libexec program libvirt_iohelper is only for libvirtd. If we build rpm without libvirtd, we will receive the following messages: Checking for unpackaged file(s): /usr/lib/rpm/check-files

[libvirt] [PATCHv2 0/6] Add virNodeGetCpuTime() API

2011-04-08 Thread Minoru Usui
Hi, This is v2 of virNodeGetCpuTime() API. It returns cpu utilization or cumulative cpu time of the node from /proc/stat since node boots up. This patch only supports linux host. Changes v1-v2 - Change user I/F like virDomainGetMemoryStats() - It can return either cpu utilization or

[libvirt] [PATCHv2 5/6] virNodeGetCPUTime: Implement virsh support

2011-04-08 Thread Minoru Usui
virNodeGetCPUTime: Implement virsh support Add nodecputime subcommand to virsh. This subcommand prints below output. [Linux] # build/tools/virsh nodecputime usage:2.8% user : 0.8% system: 1.9% idle :97.2% iowait: 0.0% [can get

[libvirt] [PATCHv2 3/6] virNodeGetCPUTime: Implement public API

2011-04-08 Thread Minoru Usui
virNodeGetCPUTime: Implement public API Signed-off-by: Minoru Usui u...@mxm.nes.nec.co.jp --- src/libvirt.c | 70 + 1 files changed, 70 insertions(+), 0 deletions(-) diff --git a/src/libvirt.c b/src/libvirt.c index 8be18d4..a65bfc6

[libvirt] [PATCHv2 2/6] virNodeGetCPUTime: Define internal driver API

2011-04-08 Thread Minoru Usui
virNodeGetCPUTime: Define internal driver API Signed-off-by: Minoru Usui u...@mxm.nes.nec.co.jp --- src/driver.h |8 src/esx/esx_driver.c |1 + src/libxl/libxl_driver.c |1 + src/lxc/lxc_driver.c |1 + src/openvz/openvz_driver.c |1 +

Re: [libvirt] [PATCH 0/6] Add disk streaming API to libvirt

2011-04-08 Thread Daniel P. Berrange
On Thu, Apr 07, 2011 at 04:31:58PM -0500, Adam Litke wrote: I've been working with Anthony Liguori and Stefan Hajnoczi to enable data streaming to copy-on-read disk images in qemu. This work is working its way through review and I expect it to be upstream soon as part of the support for the

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Daniel P. Berrange
On Thu, Apr 07, 2011 at 04:31:59PM -0500, Adam Litke wrote: /* + * Disk Streaming + */ +typedef enum { +VIR_STREAM_DISK_ONE = 1, /* Stream a single disk unit */ +VIR_STREAM_DISK_START = 2, /* Stream the entire disk */ +VIR_STREAM_DISK_STOP = 4, /* Stop streaming a disk */

Re: [libvirt] [PATCH] do not build libvirt_iohelper when building without libvirtd

2011-04-08 Thread Wen Congyang
于 2011-4-8 18:48, Daniel Veillard 写道: On Fri, Apr 08, 2011 at 11:26:47AM +0800, Wen Congyang wrote: The libexec program libvirt_iohelper is only for libvirtd. If we build rpm without libvirtd, we will receive the following messages: Checking for unpackaged file(s): /usr/lib/rpm/check-files

Re: [libvirt] patch review tool for libvirt patches?

2011-04-08 Thread Eric Blake
On 04/07/2011 09:24 AM, Laine Stump wrote: I'm sending this message 1) to see if others are feeling the pressure of the extra traffic too (or is my brain just processing more slowly :-/), No, you're not alone - I feel that my inbox is growing faster than I can respond, and I have in the past

Re: [libvirt] [PATCH v5] qemu: Remove the managed state file only if restoring succeeded

2011-04-08 Thread Eric Blake
On 04/07/2011 07:09 PM, Osier Yang wrote: 于 2011年04月07日 22:56, Eric Blake 写道: Sorry for not noticing sooner, but we could do some grammar cleanups. Does this look like a reasonable followup? diff --git i/src/qemu/qemu_driver.c w/src/qemu/qemu_driver.c index a84780b..0734a76 100644 ---

Re: [libvirt] patch review tool for libvirt patches?

2011-04-08 Thread Laine Stump
On 04/07/2011 02:21 PM, Daniel P. Berrange wrote: On Thu, Apr 07, 2011 at 11:24:04AM -0400, Laine Stump wrote: Now that 0.9.0 is out, I'd like to ask everyone's opinions about patch review tools. [...] 1) usage must be optional, so it must be able to update itself via monitoring messages on

[libvirt] Is there smt missing at Java bindings?

2011-04-08 Thread kadir yüceer
Hello all, I've been posting questions about my issue to the user list but it seems nobody can answer, so I had to try this list, sorry if there is any disturbance. Here is the case: I've been trying to develop a java app that can register callbacks for domain lifecycle

[libvirt] [PATCH] build: fix mingw build

2011-04-08 Thread Eric Blake
Commit 02c39a2 introduced a mingw build regression, due to a regression in gnulib's areadlink module: ../../../gnulib/lib/careadlinkat.c: In function 'careadlinkat': ../../../gnulib/lib/careadlinkat.c:143:39: error: 'const struct allocator' has no member named 'malloc' * .gnulib: Update to

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Stefan Hajnoczi
On Fri, Apr 8, 2011 at 2:31 PM, Daniel P. Berrange berra...@redhat.com wrote: I have CCed Anthony and Kevin. Anthony drove the QED image streaming and Kevin will probably be interested in the idea of allocating raw images as a background activity while QEMU runs.    /*     * @path: fully

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Kevin Wolf
Am 08.04.2011 18:02, schrieb Stefan Hajnoczi: On Fri, Apr 8, 2011 at 2:31 PM, Daniel P. Berrange berra...@redhat.com wrote: I have CCed Anthony and Kevin. Anthony drove the QED image streaming and Kevin will probably be interested in the idea of allocating raw images as a background

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Daniel P. Berrange
On Fri, Apr 08, 2011 at 06:35:16PM +0200, Kevin Wolf wrote: Am 08.04.2011 18:02, schrieb Stefan Hajnoczi: On Fri, Apr 8, 2011 at 2:31 PM, Daniel P. Berrange berra...@redhat.com wrote: I have CCed Anthony and Kevin. Anthony drove the QED image streaming and Kevin will probably be

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Kevin Wolf
Am 08.04.2011 18:48, schrieb Daniel P. Berrange: On Fri, Apr 08, 2011 at 06:35:16PM +0200, Kevin Wolf wrote: Am 08.04.2011 18:02, schrieb Stefan Hajnoczi: On Fri, Apr 8, 2011 at 2:31 PM, Daniel P. Berrange berra...@redhat.com wrote: I have CCed Anthony and Kevin. Anthony drove the QED

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Eric Blake
On 04/08/2011 07:31 AM, Daniel P. Berrange wrote: On Thu, Apr 07, 2011 at 04:31:59PM -0500, Adam Litke wrote: /* + * Disk Streaming + */ +typedef enum { +VIR_STREAM_DISK_ONE = 1, /* Stream a single disk unit */ +VIR_STREAM_DISK_START = 2, /* Stream the entire disk */ +

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Adam Litke
On Fri, 2011-04-08 at 11:13 -0600, Eric Blake wrote: On 04/08/2011 07:31 AM, Daniel P. Berrange wrote: On Thu, Apr 07, 2011 at 04:31:59PM -0500, Adam Litke wrote: /* + * Disk Streaming + */ +typedef enum { +VIR_STREAM_DISK_ONE = 1, /* Stream a single disk unit */ +

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Daniel P. Berrange
On Fri, Apr 08, 2011 at 12:44:26PM -0500, Adam Litke wrote: On Fri, 2011-04-08 at 11:13 -0600, Eric Blake wrote: On 04/08/2011 07:31 AM, Daniel P. Berrange wrote: On Thu, Apr 07, 2011 at 04:31:59PM -0500, Adam Litke wrote: /* + * Disk Streaming + */ +typedef enum { +

[libvirt] [PATCH] build: really fix mingw startup

2011-04-08 Thread Eric Blake
Aargh; commit 8ae5dfd still didn't fix the mingw problem, because gnulib defined O_NONBLOCK to 0 for just mingw. I've now fixed that in gnulib, but we need the latest pipe2 for libvirt to work. * .gnulib: Update to latest, for pipe2 fixes. --- Pushing under the trivial rule (it's a one-liner,

Re: [libvirt] [PATCH 1/6] Add new API virDomainStreamDisk[Info] to header and drivers

2011-04-08 Thread Anthony Liguori
On 04/08/2011 11:02 AM, Stefan Hajnoczi wrote: On Fri, Apr 8, 2011 at 2:31 PM, Daniel P. Berrangeberra...@redhat.com wrote: I have CCed Anthony and Kevin. Anthony drove the QED image streaming and Kevin will probably be interested in the idea of allocating raw images as a background activity

[libvirt] RFC: virInterface change transaction API

2011-04-08 Thread Laine Stump
I've been asked to implement what some people have termed as a transaction-oriented API for host interface configuration (ie virInterface*()). The basic intent is to allow rollback to a known-good config if anything goes wrong when changing around the host network config with virInterface*()

Re: [libvirt] [PATCH 1/3] maxmem: introduces VIR_DOMAIN_MEM_MAXIMUM flag

2011-04-08 Thread Eric Blake
On 04/07/2011 11:07 PM, Taku Izumi wrote: This patch introduces VIR_DOMAIN_MEM_MAXIMUM flag. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |1 + src/libvirt.c|2 ++ 2 files changed, 3 insertions(+) Index: