Re: [libvirt] CFS Hardlimits and the libvirt cgroups implementation

2011-06-13 Thread Wen Congyang
At 06/10/2011 08:32 PM, Adam Litke Write: On 06/10/2011 05:25 AM, Taku Izumi wrote: --- snip --- cputune ... cfs_period100/cfs_period cfs_quota50/cfs_quota /cputune --- snip --- I think the element name should be generic and the percentage (0..100 or 0..vcpu*100) is

Re: [libvirt] [PATCH 2/6] Use virTimeMs when appropriate

2011-06-13 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 03:01:56PM +0200, Jiri Denemark wrote: --- src/qemu/qemu_domain.c| 24 src/qemu/qemu_driver.c| 11 ++- src/qemu/qemu_migration.c | 31 ++- src/util/event_poll.c | 45

Re: [libvirt] [PATCH 3/6] Introduce virDomainGetControlInfo API

2011-06-13 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 03:01:57PM +0200, Jiri Denemark wrote: The API can be used to query current state of an interface to VMM used to control a domain. In QEMU world this translates into monitor connection. [...] diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in

Re: [libvirt] [PATCH 4/6] Wire protocol and remote driver for virDomainGetControlInfo

2011-06-13 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 03:01:58PM +0200, Jiri Denemark wrote: --- daemon/remote_generator.pl | 20 ++-- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 14 +- src/remote_protocol-structs |9 + 4 files changed, 37

Re: [libvirt] [PATCH 5/6] qemu: Implement virDomainGetControlInfo

2011-06-13 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 03:01:59PM +0200, Jiri Denemark wrote: --- src/qemu/qemu_domain.c |4 +++ src/qemu/qemu_domain.h |2 + src/qemu/qemu_driver.c | 61 +++ src/qemu/qemu_process.c |3 ++ 4 files changed, 70 insertions(+), 0

Re: [libvirt] [PATCH 6/6] virsh: Add support for virDomainGetControlInfo

2011-06-13 Thread Daniel Veillard
On Tue, Jun 07, 2011 at 03:02:00PM +0200, Jiri Denemark wrote: --- tools/virsh.c | 66 +++ tools/virsh.pod |7 + 2 files changed, 73 insertions(+), 0 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index

Re: [libvirt] [PATCH] test: Remove unused timeval

2011-06-13 Thread Jiri Denemark
On Tue, Jun 07, 2011 at 06:36:57 -0600, Eric Blake wrote: On 06/07/2011 06:20 AM, Jiri Denemark wrote: --- src/test/test_driver.c |7 --- 1 files changed, 0 insertions(+), 7 deletions(-) ACK. Pushed, thanks. Jirka -- libvir-list mailing list libvir-list@redhat.com

Re: [libvirt] [PATCH 1/6] Introduce virTimeMs for getting current time in ms

2011-06-13 Thread Jiri Denemark
On Thu, Jun 09, 2011 at 16:06:48 +0200, Michal Privoznik wrote: On 07.06.2011 15:01, Jiri Denemark wrote: --- src/libvirt_private.syms |1 + src/util/util.c | 24 src/util/util.h |2 ++ 3 files changed, 27 insertions(+), 0

Re: [libvirt] [PATCH 2/6] Use virTimeMs when appropriate

2011-06-13 Thread Jiri Denemark
On Mon, Jun 13, 2011 at 16:15:39 +0800, Daniel Veillard wrote: On Tue, Jun 07, 2011 at 03:01:56PM +0200, Jiri Denemark wrote: ... diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index f7eaa1c..5d7494b 100644 --- a/src/qemu/qemu_migration.c +++

Re: [libvirt] [PATCH 1/6] Introduce virTimeMs for getting current time in ms

2011-06-13 Thread Michal Privoznik
On 13.06.2011 11:31, Jiri Denemark wrote: On Thu, Jun 09, 2011 at 16:06:48 +0200, Michal Privoznik wrote: On 07.06.2011 15:01, Jiri Denemark wrote: --- src/libvirt_private.syms |1 + src/util/util.c | 24 src/util/util.h |2 ++ 3 files

[libvirt] [PATCH 3/6 v2] Introduce virDomainGetControlInfo API

2011-06-13 Thread Jiri Denemark
The API can be used to query current state of an interface to VMM used to control a domain. In QEMU world this translates into monitor connection. --- Notes: Version 2: - really implement python binding include/libvirt/libvirt.h.in| 40

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

2011-06-13 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 02:54:43PM +0900, Taku Izumi wrote: This patch introduces a new libvirt API (virDomainPinVcpuFlags). Signd-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- include/libvirt/libvirt.h.in |5 ++ src/driver.h |7 +++ src/libvirt.c

Re: [libvirt] [PATCH v4 2/4] vcpupin: implement the code to address the new API in the qemu driver

2011-06-13 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 02:55:44PM +0900, Taku Izumi wrote: This patch implements the code to address the new API (virDomainPinVcpuFlags) in the qemu driver. Signed-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- src/qemu/qemu_driver.c | 99

Re: [libvirt] [PATCH v4 3/4] vcpupin: implement the remote protocol to address the new API

2011-06-13 Thread Daniel Veillard
On Mon, Jun 13, 2011 at 11:16:41AM +0900, Taku Izumi wrote: I updated according to Hu Tao's comment. Thanks. --- This patch implements the remote protocol to address the new API (virDomainPinVcpuFlags). Signd-off-by: Taku Izumi izumi.t...@jp.fujitsu.com --- daemon/remote.c

Re: [libvirt] [PATCH v4 4/4] vcpupin: add the new option to virsh vcpupin command

2011-06-13 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 02:57:50PM +0900, Taku Izumi wrote: This patch adds the new option (--live, --config and --current) to virsh vcpupin command. The behavior of above aption is the same as that of virsh setmem, virsh setvcpus, and whatnot. When the --config option is specified, the

[libvirt] [libvirt-php] - zend_mm_heap corrupted

2011-06-13 Thread Henrik Jönsson
[libvirt-php] Hello! I am using Libvirt-php for a private project, i do however have a problem that seems to occur when i call any function that returns a domain resource. I have gotten 3 different errors so far. First i had a problem with php memory usage going extreme(2gb), then i have had

Re: [libvirt] [PATCH] storage: Deactive lv before remove it

2011-06-13 Thread Osier Yang
On 06/09/2011 08:33 AM, Jun'ichi Nomura wrote: Hi On 06/08/11 17:01, Osier Yang wrote: This is to address BZ# https://bugzilla.redhat.com/show_bug.cgi?id=702260, though even if with this patch, the user might see error like Unable to deactivate logical volume, Can you try the attached patch?

Re: [libvirt] [PATCH v2] qemu: Parse current balloon value returned by query_balloon

2011-06-13 Thread Osier Yang
On 06/07/2011 06:14 PM, Osier Yang wrote: Qemu once supported following memory stats which will returned by query_balloon: stat_put(dict, actual, actual); stat_put(dict, mem_swapped_in, dev-stats[VIRTIO_BALLOON_S_SWAP_IN]); stat_put(dict, mem_swapped_out,

Re: [libvirt] [PATCH v4 0/4] vcpupin: configure inactive domain's CPU affinity setting

2011-06-13 Thread Daniel Veillard
On Fri, Jun 10, 2011 at 02:47:08PM +0900, Taku Izumi wrote: Hi all, I'll resend this patchset because what sent yesterday was broken. Sorry to be a nuisance. -- This patchset enables us to configure inactive domains' CPU affinity setting. This is the rebased version, but retains the

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

2011-06-13 Thread Eric Blake
On 06/13/2011 07:44 AM, Daniel Veillard wrote: /** + * virDomainPinVcpuFlags: + +/** * virDomainGetVcpus: We need a virDomainGetVcpusFlags counterpart, so that we can query either the config or the live state. -- Eric Blake ebl...@redhat.com+1-801-349-2682 Libvirt

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

2011-06-13 Thread Eric Blake
On 06/13/2011 10:01 AM, Eric Blake wrote: On 06/13/2011 07:44 AM, Daniel Veillard wrote: /** + * virDomainPinVcpuFlags: + +/** * virDomainGetVcpus: We need a virDomainGetVcpusFlags counterpart, so that we can query either the config or the live state. That didn't come across

[libvirt] [PATCH v4 3/5] Network: Move dnsmasqContext creation to networkSaveDnsmasqHostsfile()

2011-06-13 Thread Michal Novotny
This patch moves the dnsmasqContext creation to the networkSaveDnsmasqHostsfile() and saves and passes the hostsfile to the dnsmasq only if applicable. Signed-off-by: Michal Novotny minov...@redhat.com --- src/network/bridge_driver.c| 38 +++-

[libvirt] [PATCH v4 2/5] Network: Add regression tests for the command-line arguments

2011-06-13 Thread Michal Novotny
The regression testing done by comparison of command-line generated from the network XML file and the expected command-line arguments (read from file). For the tests the pidfile should be set to NULL string, i.e. (null) since no real invocation of the command is being done, just the command-line

[libvirt] [PATCH v4 0/5] Add TXT record and hosts support for DNS service and dnsmasq command-line regression testing

2011-06-13 Thread Michal Novotny
Hi, this is the patch to introduce the TXT record and DNS hosts support for the DNS service on the virtual network. This can be defined using the txt-record subelement in the dns element of the network XML description. The definition of TXT record names containing spaces is rejected with the error

[libvirt] [PATCH v4 4/5] Network: Add additional hosts internal infrastructure

2011-06-13 Thread Michal Novotny
Signed-off-by: Michal Novotny minov...@redhat.com --- docs/formatnetwork.html.in |9 +- src/libvirt_private.syms|1 + src/network/bridge_driver.c |3 + src/util/dnsmasq.c | 285 --- src/util/dnsmasq.h | 22 +++- 5 files

[libvirt] [PATCH v4 1/5] Add TXT record support for virtual DNS service

2011-06-13 Thread Michal Novotny
This commit introduces the dns element and txt record for the virtual DNS network. The DNS TXT record can be defined using following syntax in the network XML file: dns txt name=example value=example value / /dns Signed-off-by: Michal Novotny minov...@redhat.com ---

[libvirt] [PATCH v4 5/5] Network: Add support for DNS hosts definition to the network XML

2011-06-13 Thread Michal Novotny
This commit introduces names definition for the DNS hosts file using the following syntax: dns host ip=192.168.1.1 namealias1/name namealias2/name /host /dns Signed-off-by: Michal Novotny minov...@redhat.com --- docs/formatnetwork.html.in |7 +++

[libvirt] [PATCH] spice: add disableCopyPaste property

2011-06-13 Thread Eric Blake
From: Marc-André Lureau marcandre.lur...@redhat.com From a security pov copy and paste between the guest and the client is not always desirable. So we need to be able to enable/disable this. The best place to do this from an administration pov is on the hypervisor, so the qemu cmdline is getting

Re: [libvirt] RFC: extending sVirt to confine host apps which talk to libvirtd

2011-06-13 Thread Daniel P. Berrange
On Thu, Jun 09, 2011 at 11:15:48AM -0400, Eric Paris wrote: On Mon, 2011-06-06 at 15:41 +0100, Daniel P. Berrange wrote: What follows is a document outlining some thoughts I've been having on extending sVirt to allow confinement of applications which talk to libvirtd on the host, primarily

Re: [libvirt] RFC: extending sVirt to confine host apps which talk to libvirtd

2011-06-13 Thread Daniel P. Berrange
On Thu, Jun 09, 2011 at 11:41:10AM -0500, Jamie Strandboge wrote: On Thu, 2011-06-09 at 11:15 -0400, Eric Paris wrote: On Mon, 2011-06-06 at 15:41 +0100, Daniel P. Berrange wrote: What follows is a document outlining some thoughts I've been having on extending sVirt to allow confinement

Re: [libvirt] [PATCH] spice: add disableCopyPaste property

2011-06-13 Thread Daniel P. Berrange
On Mon, Jun 13, 2011 at 11:05:10AM -0600, Eric Blake wrote: From: Marc-André Lureau marcandre.lur...@redhat.com From a security pov copy and paste between the guest and the client is not always desirable. So we need to be able to enable/disable this. The best place to do this from an

Re: [libvirt] [PATCH 02/12] storage: avoid mishandling backing store 2GB

2011-06-13 Thread Eric Blake
On 06/08/2011 10:05 AM, Richard W.M. Jones wrote: On Tue, Jun 07, 2011 at 03:34:58PM +0200, Matthias Bolte wrote: Using unsigned int instead of uint32_t would also work and avoid stdint.h types that the libvirt codebase avoids. Out of interest, why is libvirt avoiding these int types?

Re: [libvirt] [PATCH 1/2] qemu: Scrape stdout for virtio console pty

2011-06-13 Thread Eric Blake
On 06/08/2011 10:36 AM, Cole Robinson wrote: Currently we forget to do this and have to fallback to info chardev (which also fails, see following patch) Signed-off-by: Cole Robinson crobi...@redhat.com --- src/qemu/qemu_process.c | 10 ++ 1 files changed, 10 insertions(+), 0

Re: [libvirt] [PATCH 2/2] qemu: Fix parsing 'info chardev'

2011-06-13 Thread Eric Blake
On 06/08/2011 10:36 AM, Cole Robinson wrote: If qemu supports -chardev, our char frontend aliases are ex. 'charserial0' not just 'serial0'. Typically we don't use this code path because the pty's are scraped from stdout. Signed-off-by: Cole Robinson crobi...@redhat.com ---

Re: [libvirt] [RFC PATCH] Set and reset MAC for PASSTHROUGH mode

2011-06-13 Thread Eric Blake
On 06/10/2011 05:40 AM, Dirk Herrendoerfer wrote: there is a problem present in libvirt that when a PASSTHROUGH mode DIRECT NIC connection is made the MAC address of the NIC is not automatically set and reset to the configured VM MAC and back again. The attached patch fixes this problem by

Re: [libvirt] [PATCH] Added capability to set and restore the MAC address of a NIC when using PASSTHROUGH mode with DIRECT type NICs. This is required to support SRIOV capable NICs with firmware imple

2011-06-13 Thread Eric Blake
On 06/10/2011 05:40 AM, Dirk Herrendoerfer wrote: --- ...see my earlier mail about the cover letter containing useful commit information. Also, your subject line is way long; typically the subject should be 60 characters, then a blank line, then you can give detailed information about the

[libvirt] [PATCH] qemu: Faster response time to qemu startup errors

2011-06-13 Thread Stefan Berger
The below patch decreases the response time of libvirt to errors reported by Qemu upon startup by checking whether the qemu process is still alive while polling for the local socket to show up. This patch also introduces a special handling of signal for the Win32 part of virKillProcess.

Re: [libvirt] [PATCH] qemu: Faster response time to qemu startup errors

2011-06-13 Thread Eric Blake
On 06/13/2011 01:26 PM, Stefan Berger wrote: The below patch decreases the response time of libvirt to errors reported by Qemu upon startup by checking whether the qemu process is still alive while polling for the local socket to show up. @@ -274,7 +274,8 @@ qemuMonitorOpenUnix(const char

Re: [libvirt] [PATCH] build: update to latest gnulib

2011-06-13 Thread Eric Blake
On 06/08/2011 07:16 AM, Eric Blake wrote: * .gnulib: Update to latest, for more strerror_r fixes. --- strerror_r has proven tricker than I first thought. There's a couple of other useful improvements in here, too. * .gnulib 9d196fa...79d4e75 (70): strerror_r-posix: fix on MacOS

[libvirt] [PATCH] Split out dlopen detection

2011-06-13 Thread Guido Günther
since it's needed for the lock manager too. Fixes linking on non intel architectures. See e.g. https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-3stamp=1307914762 O.k. to apply? Cheers, -- Guido --- configure.ac| 44 ++--

Re: [libvirt] [PATCH] Deprecate several CURRENT/LIVE/CONFIG enums

2011-06-13 Thread Eric Blake
On 06/08/2011 12:33 AM, Hu Tao wrote: This patch deprecates following enums: VIR_DOMAIN_MEM_CURRENT VIR_DOMAIN_MEM_LIVE VIR_DOMAIN_MEM_CONFIG VIR_DOMAIN_VCPU_LIVE VIR_DOMAIN_VCPU_CONFIG VIR_DOMAIN_DEVICE_MODIFY_CURRENT VIR_DOMAIN_DEVICE_MODIFY_LIVE VIR_DOMAIN_DEVICE_MODIFY_CONFIG

Re: [libvirt] [PATCH] Split out dlopen detection

2011-06-13 Thread Eric Blake
On 06/13/2011 01:54 PM, Guido Günther wrote: since it's needed for the lock manager too. Fixes linking on non intel architectures. See e.g. https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-3stamp=1307914762 O.k. to apply? Cheers, -- Guido --- configure.ac

Re: [libvirt] [PATCH] Fix dlopen dependency

2011-06-13 Thread Eric Blake
On 06/09/2011 01:47 PM, Matthias Bolte wrote: Since the addition of the lock manager framework in 6a943419c528fdd7 dlopen is always required, but the checks in configure wasn't changed to reflect that. This didn't show up directly because the VirtualBox driver linking dlopen in covered it. But

Re: [libvirt] [PATCH] qemu: Faster response time to qemu startup errors

2011-06-13 Thread Stefan Berger
On 06/13/2011 03:36 PM, Eric Blake wrote: On 06/13/2011 01:26 PM, Stefan Berger wrote: The below patch decreases the response time of libvirt to errors reported by Qemu upon startup by checking whether the qemu process is still alive while polling for the local socket to show up. @@ -274,7

Re: [libvirt] [PATCH] Fix dlopen dependency

2011-06-13 Thread Eric Blake
On 06/13/2011 02:09 PM, Eric Blake wrote: On 06/09/2011 01:47 PM, Matthias Bolte wrote: Since the addition of the lock manager framework in 6a943419c528fdd7 dlopen is always required, but the checks in configure wasn't changed to reflect that. This didn't show up directly because the

[libvirt] [PATCH] docs: improve VIR_DOMAIN_AFFECT_CURRENT description

2011-06-13 Thread Eric Blake
* include/libvirt/libvirt.h.in (virDomainModificationImpact): Reword. --- include/libvirt/libvirt.h.in | 15 ++- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in index 76ad908..a7c5f72 100644 ---

[libvirt] [PATCH 0/3] more virCommand cleanups

2011-06-13 Thread Eric Blake
When I first reviewed Cole's virCommand cleanups, I pointed out some possible later cleanups. Here they are. Eric Blake (3): command: reduce duplicated debug messages command: avoid double close storage: avoid an intermediate malloc src/storage/storage_backend.c | 20 ++--

[libvirt] [PATCH 3/3] storage: avoid an intermediate malloc

2011-06-13 Thread Eric Blake
Suggested here: https://www.redhat.com/archives/libvir-list/2011-May/msg00594.html * src/storage/storage_backend.c (virStorageBackendCreateQemuImg): Generate size inline. --- src/storage/storage_backend.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git

Re: [libvirt] [PATCH] nodeinfo: remove superflous braces

2011-06-13 Thread Eric Blake
s/superflous/superfluous/ On 06/11/2011 10:18 AM, Guido Günther wrote: that break compilation on non intel architectures: mips: https://buildd.debian.org/status/fetch.php?pkg=libvirtarch=mipsver=0.9.2-1stamp=1307570195 powerpc:

[libvirt] [PATCH 1/3] command: reduce duplicated debug messages

2011-06-13 Thread Eric Blake
This also reduces malloc pressure for invoking a child when VIR_DEBUG is enabled. * src/util/command.c (virExecWithHook): Drop debug, since the only caller (virCommandRunAsync) also prints debug info. --- Suggested here: https://www.redhat.com/archives/libvir-list/2011-May/msg00592.html

[libvirt] [PATCH 2/3] command: avoid double close

2011-06-13 Thread Eric Blake
Previously, the parent process opened 'null' to /dev/null, then the child process closes 'null' as well as 'childout'. But if childout was set to be null, then this is a double close. At least the double close was confined to the child process after a fork, and therefore there is no risk of

Re: [libvirt] [PATCH 01/10 V2] allow name for VSH_OT_ARGV options

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:08PM +0800, Lai Jiangshan wrote: A name will improve the usege, example # virsh help echo NAME echo - echo arguments SYNOPSIS echo [--shell] [--xml] [string]... DESCRIPTION Echo back arguments, possibly with quoting. OPTIONS

Re: [libvirt] [PATCH 02/10 V2] improve the iteration of VSH_OT_ARGV options

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:09PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- tools/virsh.c | 47 --- 1 files changed, 24 insertions(+), 23 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index

Re: [libvirt] [PATCH 03/10 V2] add VSH_OFLAG_REQ_OPT options

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:10PM +0800, Lai Jiangshan wrote: A VSH_OFLAG_REQ_OPT option means --optionname is required when used. It will kill any ambiguity even !VSH_OFLAG_REQ option listed before VSH_OFLAG_REQ option if the !VSH_OFLAG_REQ option is a VSH_OFLAG_REQ_OPT option. It will

Re: [libvirt] [PATCH 04/10 V2] remote generator: Handle (unsigned) int arrays

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:11PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- daemon/remote_generator.pl | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/daemon/remote_generator.pl b/daemon/remote_generator.pl

Re: [libvirt] [PATCH 05/10 V2] [PATCH 05/13] send-key: Defining the public API

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:12PM +0800, Lai Jiangshan wrote: Add public virDomainSendKey() and enum libvirt_keycode_set for the @codeset. Python version of virDomainSendKey() has not been implemented yet, it will be done soon. Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com ---

Re: [libvirt] [PATCH 06/10 V2] send-key: Defining the internal API

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:13PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- src/driver.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/driver.h b/src/driver.h index 5df798a..2e335a1 100644 --- a/src/driver.h

Re: [libvirt] [PATCH 07/10] send-key: Implementing the public API

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:14PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- src/libvirt.c | 63 + 1 files changed, 63 insertions(+), 0 deletions(-) diff --git a/src/libvirt.c

Re: [libvirt] [PATCH 08/10 V2] send-key: Implementing the remote protocol

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:15PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- src/remote/remote_driver.c |1 + src/remote/remote_protocol.x | 16 +++- src/remote_protocol-structs | 11 +++ 3 files changed, 27

Re: [libvirt] [PATCH 09/10 V2] send-key: Expose the new API in virsh

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:16PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- tools/virsh.c | 102 +++ tools/virsh.pod |4 ++ 2 files changed, 106 insertions(+), 0 deletions(-) diff --git

Re: [libvirt] [PATCH 10/10 V2] qemu:send-key: Implement the driver methods

2011-06-13 Thread Daniel P. Berrange
On Tue, Jun 07, 2011 at 05:11:17PM +0800, Lai Jiangshan wrote: Signed-off-by: Lai Jiangshan la...@cn.fujitsu.com --- src/qemu/qemu_driver.c | 50 ++ src/qemu/qemu_monitor.c | 27 ++ src/qemu/qemu_monitor.h |

Re: [libvirt] [PATCH v2] virsh: Add daemon version reporting

2011-06-13 Thread Eric Blake
On 06/09/2011 06:24 AM, Michal Prívozník wrote: From: Michal Privoznik mpriv...@redhat.com 'virsh version' might report against which version of libvirtd is running. --- diff to v1: - added 'daemon' switch - don't fail when no deamon version is available tools/virsh.c | 22

Re: [libvirt] [PATCH v4 0/4] vcpupin: configure inactive domain's CPU affinity setting

2011-06-13 Thread Taku Izumi
On Mon, 13 Jun 2011 23:53:59 +0800 Daniel Veillard veill...@redhat.com wrote: On Fri, Jun 10, 2011 at 02:47:08PM +0900, Taku Izumi wrote: Hi all, I'll resend this patchset because what sent yesterday was broken. Sorry to be a nuisance. -- This patchset enables us to configure

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

2011-06-13 Thread Taku Izumi
That didn't come across quite as clear as I intended, so I'll try again with more details: Right now, the 'vcpupin' command in virsh uses only the virDomainPinVcpu{,Flags} API to set the vcpu pinning, while the 'vcpuinfo' command queries the existing vcpu details, including pinning

Re: [libvirt] [PATCH v4 0/4] vcpupin: configure inactive domain's CPU affinity setting

2011-06-13 Thread Osier Yang
On 06/14/2011 08:25 AM, Taku Izumi wrote: On Mon, 13 Jun 2011 23:53:59 +0800 Daniel Veillardveill...@redhat.com wrote: On Fri, Jun 10, 2011 at 02:47:08PM +0900, Taku Izumi wrote: Hi all, I'll resend this patchset because what sent yesterday was broken. Sorry to be a nuisance. -- This

[libvirt] [PATCH v2 RESEND] qemu: Parse current balloon value returned by query_balloon

2011-06-13 Thread Osier Yang
Qemu once supported following memory stats which will returned by query_balloon: stat_put(dict, actual, actual); stat_put(dict, mem_swapped_in, dev-stats[VIRTIO_BALLOON_S_SWAP_IN]); stat_put(dict, mem_swapped_out, dev-stats[VIRTIO_BALLOON_S_SWAP_OUT]); stat_put(dict,

[libvirt] [PATCH 1/2] Use '-' to read from stdin

2011-06-13 Thread Michael Williams
Modify virFileReadAll to open stdin when '-' is given as the filename. Signed-off-by: Michael Williams mspa...@gmail.com --- src/util/util.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/util/util.c b/src/util/util.c index df4dfac..554d68e 100644 ---

[libvirt] [PATCH 0/2] Update virsh to use stdin where appropriate

2011-06-13 Thread Michael Williams
Allow virsh to use stdin for xml and other config file input when otherwise it would have required a file input. This allows for easier passing of configs through pipes, for example: virsh dumpxml 6 | ssh remote-host virsh define Michael Williams (2): Use '-' to read from stdin Try stdin

[libvirt] [PATCH 2/2] Try stdin for input when no file is specified

2011-06-13 Thread Michael Williams
Modify virFileReadAll to check for redirected stdin input when no file is specified. This means that not every file argument needs to be required. Signed-off-by: Michael Williams mspa...@gmail.com --- src/util/util.c | 10 +- tools/virsh.c | 99

Re: [libvirt] [PATCH v2 RESEND] qemu: Parse current balloon value returned by query_balloon

2011-06-13 Thread Eric Blake
On 06/13/2011 09:54 PM, Osier Yang wrote: Qemu once supported following memory stats which will returned by query_balloon: stat_put(dict, actual, actual); stat_put(dict, mem_swapped_in, dev-stats[VIRTIO_BALLOON_S_SWAP_IN]); stat_put(dict, mem_swapped_out,

Re: [libvirt] [PATCH 1/2] Use '-' to read from stdin

2011-06-13 Thread Eric Blake
On 06/13/2011 09:39 PM, Michael Williams wrote: Modify virFileReadAll to open stdin when '-' is given as the filename. Signed-off-by: Michael Williams mspa...@gmail.com --- src/util/util.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/util/util.c

Re: [libvirt] [PATCH 2/2] Try stdin for input when no file is specified

2011-06-13 Thread Eric Blake
On 06/13/2011 09:39 PM, Michael Williams wrote: Modify virFileReadAll to check for redirected stdin input when no file is specified. This means that not every file argument needs to be required. Signed-off-by: Michael Williams mspa...@gmail.com --- src/util/util.c | 10 +-

Re: [libvirt] [PATCH v2 RESEND] qemu: Parse current balloon value returned by query_balloon

2011-06-13 Thread Osier Yang
On 06/14/2011 11:40 AM, Eric Blake wrote: On 06/13/2011 09:54 PM, Osier Yang wrote: Qemu once supported following memory stats which will returned by query_balloon: stat_put(dict, actual, actual); stat_put(dict, mem_swapped_in, dev-stats[VIRTIO_BALLOON_S_SWAP_IN]);