[libvirt] [PATCH 40/50] list: Use virConnectListAllNodeDevices in virsh

2012-07-19 Thread Osier Yang
tools/virsh.c: * vshNodeDeviceSorter to sort node devices by name * vshNodeDeviceListFree to free the node device objects list. * vshNodeDeviceListCollect to collect the node device objects, trying to use new API first, fall back to older APIs if it's not supported. * Change option

[libvirt] [PATCH 44/50] list: Use virConnectListAllNWFilters in virsh

2012-07-19 Thread Osier Yang
tools/virsh.c: * vshNWFilterSorter to sort network filters by name * vshNWFilterListFree to free the network filter objects list. * vshNWFilterListCollect to collect the network filter objects, trying to use new API first, fall back to older APIs if it's not supported. ---

[libvirt] [PATCH 48/50] list: Implement listAllSecrets

2012-07-19 Thread Osier Yang
Simply returns the object list. No filtering. src/secret/secret_driver.c: Implement listAllSecrets --- src/secret/secret_driver.c | 58 +++- 1 files changed, 57 insertions(+), 1 deletions(-) diff --git a/src/secret/secret_driver.c

[libvirt] [PATCH 45/50] list: Expose virConnectListAllNWFilters to Python binding

2012-07-19 Thread Osier Yang
The implementation is done manually as the generator does not support wrapping lists of C pointers into Python objects. python/libvirt-override-api.xml: Document python/libvirt-override-virConnect.py: * Implementation for listAllNWFilters. python/libvirt-override.c: Implementation for the

[libvirt] [PATCH 46/50] list: Define new API virConnectListAllSecrets

2012-07-19 Thread Osier Yang
This is to list the secret objects. No flags are supported include/libvirt/libvirt.h.in: Declare enum virConnectListAllSecretFlags and virConnectListAllSecrets. python/generator.py: Skip auto-generating src/driver.h: (virDrvConnectListAllSecrets) src/libvirt.c:

Re: [libvirt] [PATCH 00/50] Atomic APIs to list objects

2012-07-19 Thread Eric Blake
On 07/19/2012 10:40 AM, Osier Yang wrote: Except the already supported APIs for domain and domain snapshot, this series add the APIs for all the left objects, including storage pool, storage vol, network, interface, node device, nwfilter, secret. Wow, you've been busy. By the way, I'm

Re: [libvirt] [PATCH] qemu: Set reasonable RSS limit on domain startup

2012-07-19 Thread Orit Wasserman
On 07/19/2012 05:10 PM, Paolo Bonzini wrote: Il 18/07/2012 22:17, Daniel P. Berrange ha scritto: Looks like a good change. My only question would be if its better to look up the guest video RAM instead of assuming that QEMU overhead + guest video RAM will amount to no more than about 200MB (I

Re: [libvirt] [PATCH] Fix Xen driver to have sensible error messages

2012-07-19 Thread Laine Stump
On 07/19/2012 11:36 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com The Xen driver had a number of error reports which passed a constant string without format specifiers and was missing %s. Furthermore the errors were related to failing system calls, but

[libvirt] Debian packaging for the Java bindings

2012-07-19 Thread Wido den Hollander
Currently the Java bindings for libvirt do not provide a Debian package. Users with Debian based systems like Ubuntu are now forced to compile from source since no binary distribution of the JAR file is available. This patch adds building Debian packages with ant $ ant deb This will build a

[libvirt] [PATCH libvirt-java] Add debian packaging for the Java bindings

2012-07-19 Thread Wido den Hollander
Signed-off-by: Wido den Hollander w...@widodh.nl --- build.xml | 19 +++ debian/control.in |9 + 2 files changed, 28 insertions(+) create mode 100644 debian/control.in diff --git a/build.xml b/build.xml index 606cdaa..eefd08c 100644 --- a/build.xml +++

[libvirt] [PATCH libvirt-glib] gobject: add GVir.DomainShutdownFlags binding

2012-07-19 Thread Marc-André Lureau
--- libvirt-gobject/libvirt-gobject-domain.c |2 +- libvirt-gobject/libvirt-gobject-domain.h | 13 + libvirt-gobject/libvirt-gobject.sym |1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/libvirt-gobject/libvirt-gobject-domain.c

Re: [libvirt] [PATCH 1/5] Add public API to register a callback to be invoked on connection close

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Define a new virConnectSetCloseCallback() public API which allows registering a callback to be invoked when the connection to a hypervisor is closed. The callback is provided with the reason for

Re: [libvirt] [PATCH 2/5] Ensure client is marked for close in all error paths

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Currently if the keepalive timer triggers, the 'markClose' flag is set on the virNetClient. A controlled shutdown will then be performed. If an I/O error occurs during read or write of the

Re: [libvirt] [PATCH 3/5] Add callback to virNetClient to be invoked on connection close

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Allow detection of socket close in virNetClient via an callback function, triggered on any condition that causes the socket to be close. Signed-off-by: Daniel P. Berrange berra...@redhat.com

Re: [libvirt] Different mac address used in libvirtd

2012-07-19 Thread Laine Stump
(slowly working through libvir-list backlog from when I was on vacation...) On 06/29/2012 11:53 AM, Daniel P. Berrange wrote: On Wed, Jun 20, 2012 at 07:01:17PM +0800, Yong Sheng Gong wrote: Hi, I found libvirtd will create vnet0 with a different mac other than the one defined in domain

Re: [libvirt] [PATCH 4/5] Update remote driver to support the connection close callbacks

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Update the remote driver to use the virNetClient close callback to trigger the virConnectPtr close callbacks Signed-off-by: Daniel P. Berrange berra...@redhat.com ---

Re: [libvirt] [PATCH 5/5] Extend events demo to show close callbacks in use

2012-07-19 Thread Eric Blake
On 07/19/2012 09:04 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Use a driver close callback to trigger shutdown of the events demo program Signed-off-by: Daniel P. Berrange berra...@redhat.com --- examples/domain-events/events-c/event-test.c | 33

Re: [libvirt] libvirt + kvm external snapshots: use case?

2012-07-19 Thread Cole Robinson
Thanks for all the info! On 07/18/2012 12:44 PM, Eric Blake wrote: On 07/15/2012 02:03 PM, Cole Robinson wrote: Forgive my ignorance, but I'm trying to fill in some details for a Fedora feature page: https://fedoraproject.org/w/index.php?title=Features/Virt_Live_Snapshots Yet things aren't

Re: [libvirt] Intend to add OVA installation API

2012-07-19 Thread Ata E Husain Bohra
-Original Message- From: Raghunatha Reddy Sent: Tuesday, July 10, 2012 1:53 AM To: libvir-list@redhat.com Subject: Re: [libvirt] Intend to add OVA installation API Ata Bohra ata.husain at hotmail.com writes: Thanks again Doug. With this direction, I have started looking into

Re: [libvirt] ESX: failure while performing CastFromAnyType

2012-07-19 Thread Ata Bohra
Hi Matthias, As promised, below is the patch demonstrating the issue. One thing I lied was its not enum that I missed but I missed one of the data objects extended. -- Patch is only to demonstrate the misleading error warning if one extended data objects is

[libvirt] [PATCH v3 0/2] ESX: Add routines to interface driver

2012-07-19 Thread Ata E Husain Bohra
Updated code to use ATTRIBUTE_UNUSED for un-used variable. Ata E Husain Bohra (2): ESX: Add routines to interface driver Use ATTRIBUTE_UNUSED for unused variable. src/esx/esx_interface_driver.c | 500 +++- src/esx/esx_vi.c | 126 ++

[libvirt] [PATCH v3 1/2] ESX: Add routines to interface driver

2012-07-19 Thread Ata E Husain Bohra
Add following routines to esx_interface_driver: esxNumOfInterfaces, esxNumOfDefinedInterfaces, esxListInterfaces, esxListDefinedInterfaces, esxInterfaceLookupByMACString, esxInterfaceGetXMLDesc, esxInterfaceUndefine, esxInterfaceCreate, esxInterfaceDestroy

[libvirt] [PATCH v3 2/2] ESX: Add routines to interface driver- Use ATTRIBUTE_UNUSED for unused variable.

2012-07-19 Thread Ata E Husain Bohra
--- src/esx/esx_interface_driver.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/esx/esx_interface_driver.c b/src/esx/esx_interface_driver.c index b1ba5e2..01caed0 100644 --- a/src/esx/esx_interface_driver.c +++ b/src/esx/esx_interface_driver.c @@

Re: [libvirt] [PATCH v2] storage: netfs and iscsi need option srcSpec for resource discovery

2012-07-19 Thread Osier Yang
On 2012年07月18日 18:26, Guannan Ren wrote: The option 'srcSpec' to virsh command find-storage-pool-sources s/to/of/ is optional for logical type of storage pool, but mandatory for netfs and iscsi type. When missing the option for netfs and iscsi, libvirt reports XML s/and/or/ parsing error

Re: [libvirt] [PATCH] virsh man page - domain-id consistency

2012-07-19 Thread Osier Yang
On 2012年07月19日 00:29, Eric Blake wrote: On 07/18/2012 10:03 AM, Jan Tomko wrote: Using 'domain-id' to represent domain name, domain id or uuid, as introduced in the DOMAIN COMMANDS section. --- tools/virsh.pod | 86 +++--- 1 files changed, 43

<    1   2