Re: [libvirt] [RFC v2] Export KVM Host Power Management capabilities

2011-08-09 Thread Vaidyanathan Srinivasan
* Eric Blake ebl...@redhat.com [2011-08-05 10:32:31]: On 08/05/2011 10:11 AM, Daniel P. Berrange wrote: On Fri, Aug 05, 2011 at 05:24:13PM +0530, Srivatsa S. Bhat wrote: This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make

Re: [libvirt] Python stream callback removal

2011-08-09 Thread Guannan Ren
On 08/09/2011 06:04 AM, Dave Allan wrote: I'm trying to write an example serial console implementation in python (attached), but I'm having some trouble getting stream events to do what I want. The console itself works fine as long as the domain stays up, but as soon as the domain shuts down

Re: [libvirt] [test-API][PATCH] Add testcases for testing permission control and sasl authentication of unix socket

2011-08-09 Thread Nan Zhang
On 08/06/2011 12:09 AM, Guannan Ren wrote: add new testcases repos/remoteAccess/unix_perm_sasl.py --- repos/remoteAccess/unix_perm_sasl.py | 234 ++ 1 files changed, 234 insertions(+), 0 deletions(-) create mode 100644

Re: [libvirt] [test-API][PATCH] Add new testcase for libvirtd connection with tcp socket and with SASL authentication

2011-08-09 Thread Nan Zhang
On 08/07/2011 05:46 PM, Guannan Ren wrote: --- repos/remoteAccess/tcp_setup.py | 242 +++ 1 files changed, 242 insertions(+), 0 deletions(-) create mode 100644 repos/remoteAccess/tcp_setup.py diff --git a/repos/remoteAccess/tcp_setup.py

Re: [libvirt] [test-API][PATCH 1/2] Declare hypervisor connection variable as the global

2011-08-09 Thread Nan Zhang
On 08/04/2011 04:37 PM, Guannan Ren wrote: The is solve the problem where the failure of open() will lead to null conn variable, and when we call close() later,it will report no global 'conn' attribute to the ConnectAPI object. remove a duplicated close() function --- lib/connectAPI.py | 19

Re: [libvirt] [test-API][PATCH 2/2] Add SASL testing points for TLS sockets connection and negative testing point

2011-08-09 Thread Nan Zhang
On 08/04/2011 04:37 PM, Guannan Ren wrote: add two option 'listen_tls' and 'auth_tls' --- repos/remoteAccess/tls_setup.py | 161 --- 1 files changed, 133 insertions(+), 28 deletions(-) diff --git a/repos/remoteAccess/tls_setup.py

[libvirt] Allow to migrate to same host?

2011-08-09 Thread Osier Yang
The request is from a PhD stdudent in France, he is developing some distributed system based on libvirt, before deploying the codes to real instances, he want to test it on his own box first. Libvirt checks if it's migrating to same host by comparing the hostname, I'm wondering if we can add some

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Daniel P. Berrange
On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=728772 points out that libvirt commit 1c93fbbb pulled in a gnulib regression that broke large file support. I

Re: [libvirt] Allow to migrate to same host?

2011-08-09 Thread Daniel P. Berrange
On Tue, Aug 09, 2011 at 05:46:37PM +0800, Osier Yang wrote: The request is from a PhD stdudent in France, he is developing some distributed system based on libvirt, before deploying the codes to real instances, he want to test it on his own box first. Libvirt checks if it's migrating to same

Re: [libvirt] Python stream callback removal

2011-08-09 Thread Daniel P. Berrange
On Mon, Aug 08, 2011 at 06:04:50PM -0400, Dave Allan wrote: I'm trying to write an example serial console implementation in python (attached), but I'm having some trouble getting stream events to do what I want. The console itself works fine as long as the domain stays up, but as soon as the

Re: [libvirt] Allow to migrate to same host?

2011-08-09 Thread Osier Yang
于 2011年08月09日 18:00, Daniel P. Berrange 写道: On Tue, Aug 09, 2011 at 05:46:37PM +0800, Osier Yang wrote: The request is from a PhD stdudent in France, he is developing some distributed system based on libvirt, before deploying the codes to real instances, he want to test it on his own box first.

[libvirt] [PATCH] Fix memory leak while scanning snapshots

2011-08-09 Thread Philipp Hahn
If a snapshot with the name already exists, virDomainSnapshotAssignDef() just returns NULL, in which case the snapshot definition is leaked. Currently this leak is not a big problem, since qemuDomainSnapshotLoad() is only called once during initial startup of libvirtd. Signed-off-by: Philipp Hahn

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Guido Günther
On Tue, Aug 09, 2011 at 10:54:36AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=728772 points out that libvirt commit

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Eric Blake
On 08/09/2011 08:37 AM, Guido Günther wrote: On Tue, Aug 09, 2011 at 10:54:36AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric Blake wrote:

[libvirt] [RFC v4] Export KVM Host Power Management capabilities

2011-08-09 Thread Srivatsa S. Bhat
This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available in the host. The script pm-is-supported (from pm-utils package) is run to discover if Suspend-to-RAM (S3) or Suspend-to-Disk (S4) is supported

[libvirt] [PATCH] Implement DNS SRV record into the bridge driver

2011-08-09 Thread Michal Novotny
Hi, this is the patch to the bridge driver and libvirt XML file to include support for the SRV records in the DNS. The syntax is based on DNSMasq man page and tests for both xml2xml and xml2argv were added as well. Signed-off-by: Michal Novotny minov...@redhat.com --- docs/formatnetwork.html.in

Re: [libvirt] [RFC v4] Export KVM Host Power Management capabilities

2011-08-09 Thread Eric Blake
On 08/09/2011 09:29 AM, Srivatsa S. Bhat wrote: +if(caps-host.powerMgmt_valid) { +/* The PM query was successful. */ +if(caps-host.powerMgmt) { +/* The host supports some PM features. */ +unsigned int pm = caps-host.powerMgmt; +

Re: [libvirt] [PATCH] Fix memory leak while scanning snapshots

2011-08-09 Thread Eric Blake
On 08/09/2011 07:47 AM, Philipp Hahn wrote: If a snapshot with the name already exists, virDomainSnapshotAssignDef() just returns NULL, in which case the snapshot definition is leaked. Currently this leak is not a big problem, since qemuDomainSnapshotLoad() is only called once during initial

Re: [libvirt] [libvirt-users] virt-manager - how to add /dev/mapper as a storage pool

2011-08-09 Thread Cole Robinson
On 08/09/2011 12:31 PM, Marc Haber wrote: On Tue, Aug 09, 2011 at 11:09:06AM -0400, Cole Robinson wrote: On 08/08/2011 04:37 PM, Marc Haber wrote: I would like to be able to configure VMs running off dm-crypt devices that were unlocked in the host. Unlocked dm-crypt devices show up in

Re: [libvirt] [PATCH] build: fix regression in large file support

2011-08-09 Thread Guido Günther
On Tue, Aug 09, 2011 at 09:24:55AM -0600, Eric Blake wrote: On 08/09/2011 08:37 AM, Guido Günther wrote: On Tue, Aug 09, 2011 at 10:54:36AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 10:15:37PM +0200, Guido Günther wrote: Hi Eric, On Mon, Aug 08, 2011 at 09:53:39AM -0600, Eric

Re: [libvirt] [libvirt-users] virt-manager - how to add /dev/mapper as a storage pool

2011-08-09 Thread Marc Haber
On Tue, Aug 09, 2011 at 12:45:06PM -0400, Cole Robinson wrote: Not really sure then, maybe this is something that libvirt should be extended to handle. CCing libvirt devel list Please note that I am only subscribed to libvirt-users, please Cc me on replies. There is also

Re: [libvirt] Documentation

2011-08-09 Thread Eric Blake
On 08/08/2011 05:30 AM, Rafael Fernández López wrote: Hi all, Reading libvirt documentation I have found that there is an example that is pretty broken. Thanks for the report. I'm referring to http://libvirt.org/guide/html/Application_Development_Guide-Guest_Domains-Listing.html, example

[libvirt] [RFC v5] Export KVM Host Power Management capabilities

2011-08-09 Thread Srivatsa S. Bhat
This patch exports KVM Host Power Management capabilities as XML so that higher-level systems management software can make use of these features available in the host. The script pm-is-supported (from pm-utils package) is run to discover if Suspend-to-RAM (S3) or Suspend-to-Disk (S4) is supported

Re: [libvirt] [BUG] Re: [2/6] loadvm: improve tests before bdrv_snapshot_goto()

2011-08-09 Thread Eric Blake
On 04/14/2011 03:29 AM, Kevin Wolf wrote: Am 14.04.2011 11:10, schrieb Philipp Hahn: Reviving an old thread... Hello, Am Dienstag 03 August 2010 06:44:26 schrieb Kevin Wolf: From: Miguel Di Ciurcio Filhomiguel.fi...@gmail.com This patch improves the resilience of the load_vmstate()

[libvirt] [PATCH 5/4] qemu: properly revert to offline snapshots

2011-08-09 Thread Eric Blake
qemuDomainSnapshotRevertInactive has the same FIXMEs as qemuDomainSnapshotCreateInactive, so algorithmic fixes to properly handle partial loop iterations should be applied later to both functions, but we're not making the situation any worse in this patch. * src/qemu/qemu_driver.c

Re: [libvirt] [RFC v2] Export KVM Host Power Management capabilities

2011-08-09 Thread Daniel Veillard
On Tue, Aug 09, 2011 at 11:25:28AM +0530, Vaidyanathan Srinivasan wrote: * Eric Blake ebl...@redhat.com [2011-08-05 10:32:31]: On 08/05/2011 10:11 AM, Daniel P. Berrange wrote: So while the XML design/proposal may well be fine, until we actually have some host power management control APIs

Re: [libvirt] Python stream callback removal

2011-08-09 Thread Dave Allan
On Tue, Aug 09, 2011 at 10:59:02AM +0100, Daniel P. Berrange wrote: On Mon, Aug 08, 2011 at 06:04:50PM -0400, Dave Allan wrote: I'm trying to write an example serial console implementation in python (attached), but I'm having some trouble getting stream events to do what I want. The

[libvirt] [PATCH 6/4] virsh: add virsh snapshot-current --name

2011-08-09 Thread Eric Blake
Sometimes, full XML is too much; since most snapshot commands operate on a snapshot name, there should be an easy way to get at the current snapshot's name. * tools/virsh.c (cmdSnapshotCurrent): Add an option. * tools/virsh.pod (snapshot-current): Document it. --- tools/virsh.c | 21

Re: [libvirt] [PATCH 6/4] virsh: add virsh snapshot-current --name

2011-08-09 Thread Eric Blake
On 08/09/2011 09:13 PM, Eric Blake wrote: Sometimes, full XML is too much; since most snapshot commands operate on a snapshot name, there should be an easy way to get at the current snapshot's name. * tools/virsh.c (cmdSnapshotCurrent): Add an option. * tools/virsh.pod (snapshot-current):

[libvirt] [PATCH] docs: describe new virtual switch configuration in network XML docs

2011-08-09 Thread Laine Stump
This should have been done with the rest of the patch for virtual switch / network device abstraction. If documents the new elements (and new usage of existing elements) in the network XML to support libvirt networks that use existing host bridges and macvtap direct connections, as well as the new