Re: [libvirt] [PATCHv2] Error out when using SPICE TLS with spice_tls=0

2012-02-29 Thread Christophe Fergeau
On Tue, Feb 28, 2012 at 05:04:57PM +0100, Michal Privoznik wrote: On 24.02.2012 11:34, Christophe Fergeau wrote: src/qemu/qemu_command.c | 12 +++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c index 5a34504

[libvirt] [PATCH] Fix typo in domain XML documentation

2012-02-29 Thread Christophe Fergeau
s/Modyfing/Modifying --- 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 5305f82..9e7dd08 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2580,7 +2580,7 @@

Re: [libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

2012-02-29 Thread Christophe Fergeau
On Tue, Feb 28, 2012 at 08:25:02PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gconfig/libvirt-gconfig-domain-interface.c | 35 libvirt-gconfig/libvirt-gconfig-domain-interface.h |4 ++

Re: [libvirt] [libvirt-glib 2/6] Add gvir_domain_disk_resize()

2012-02-29 Thread Christophe Fergeau
ACK On Tue, Feb 28, 2012 at 08:25:03PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Binding for virDomainBlockResize(). --- libvirt-gobject/libvirt-gobject-domain-disk.c | 38 + libvirt-gobject/libvirt-gobject-domain-disk.h

Re: [libvirt] [libvirt-glib 3/6] Add gvir_domain_device_get_domain()

2012-02-29 Thread Christophe Fergeau
On Tue, Feb 28, 2012 at 08:25:04PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Getter for the associated domain of a domain device. NB: it already exists as a gobject property --- libvirt-gobject/libvirt-gobject-domain-device.c | 10 ++

Re: [libvirt] [libvirt-glib 3/6] Add gvir_domain_device_get_domain()

2012-02-29 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 02:02:08PM +0100, Christophe Fergeau wrote: On Tue, Feb 28, 2012 at 08:25:04PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Getter for the associated domain of a domain device. NB: it already exists as a gobject property

Re: [libvirt] [libvirt-glib 4/6] Add 'config' property to GVirDomainDevice

2012-02-29 Thread Christophe Fergeau
The code to add the property looks good to me except for one minor nit, see below. I'd rather to see patch 6/6 come right after it since I was wondering how config was getting set. On Tue, Feb 28, 2012 at 08:25:05PM +0200, Zeeshan Ali (Khattak) wrote: @@ -144,3 +166,13 @@ virDomainPtr

Re: [libvirt] [libvirt-glib 5/6] Remove now redundant 'path' property

2012-02-29 Thread Christophe Fergeau
On Tue, Feb 28, 2012 at 08:25:06PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Remove now redundant 'path' property from GVirDomainDevice subclasses. --- libvirt-gobject/libvirt-gobject-domain-disk.c | 88

Re: [libvirt] [libvirt-glib 6/6] Add gvir_domain_get_devices()

2012-02-29 Thread Christophe Fergeau
On Tue, Feb 28, 2012 at 08:25:07PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Currently we only support existing DomainDevice implementations: DomainDisk and DomainInterface. --- .../libvirt-gobject-domain-device-private.h|2 +

Re: [libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

2012-02-29 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 03:44:20PM +0200, Zeeshan Ali (Khattak) wrote: On Wed, Feb 29, 2012 at 2:57 PM, Christophe Fergeau cferg...@redhat.com wrote: On Tue, Feb 28, 2012 at 08:25:02PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org ---  libvirt

Re: [libvirt] [libvirt-glib 6/6] Add gvir_domain_get_devices()

2012-02-29 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 04:01:40PM +0200, Zeeshan Ali (Khattak) wrote: On Wed, Feb 29, 2012 at 3:30 PM, Christophe Fergeau cferg...@redhat.com wrote: On Tue, Feb 28, 2012 at 08:25:07PM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Currently we only

Re: [libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

2012-02-29 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 04:10:29PM +0200, Zeeshan Ali (Khattak) wrote: Ah, I just realized why that is so: static char *libxml_str_to_glib(xmlChar *str) { char *g_str; if (str == NULL) return NULL; g_str = g_strdup((char *)str); xmlFree(str); return

Re: [libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

2012-02-29 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 05:26:58PM +0200, Zeeshan Ali (Khattak) wrote: There wont' be any need for freeing if gvir_config_xml_get_child_element_content() and similar functions returned chid_node-content rather than xmlNodeGetContent (child_node). That way you never need to free any string.

Re: [libvirt] [libvirt-glib 1/6] Getters for GVirConfigDomainInterface attributes

2012-03-01 Thread Christophe Fergeau
On Wed, Feb 29, 2012 at 11:22:52PM +0200, Zeeshan Ali (Khattak) wrote: Turns out that i copypasted the device from the corresponding setter. I realized yesterday that you probably got device from the setter and that I should have checked if the attribute name was correct there... I just checked

Re: [libvirt] [libvirt-glib 3/6] Getters for GVirConfigDomainInterface attributes

2012-03-01 Thread Christophe Fergeau
ACK, though you convinced me that we can and should propagate const char * throughout the API, but that's another patch. Christophe On Thu, Mar 01, 2012 at 12:15:39AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org ---

Re: [libvirt] [libvirt-glib 6/6] Add gvir_domain_get_devices()

2012-03-01 Thread Christophe Fergeau
ACK, a few nits below On Thu, Mar 01, 2012 at 12:15:42AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Currently we only support existing DomainDevice implementations: DomainDisk and DomainInterface. --- .../libvirt-gobject-domain-device-private.h

Re: [libvirt] [libvirt-glib 5/6] Remove now redundant 'path' property

2012-03-01 Thread Christophe Fergeau
On Thu, Mar 01, 2012 at 12:15:41AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Remove now redundant 'path' property from GVirDomainDevice subclasses. These classes now have access to their configurations, from which they can easily get the path (among

Re: [libvirt] [libvirt-glib 1/6] Set correct target node attribute for domain interface

2012-03-01 Thread Christophe Fergeau
ACK On Thu, Mar 01, 2012 at 12:15:37AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org gvir_config_domain_interface_set_ifname() should be setting 'dev' attribute under 'target', not 'device'. --- libvirt-gconfig/libvirt-gconfig-domain-interface.c |

Re: [libvirt] [libvirt-glib 2/6] Add gvir_domain_device_get_domain()

2012-03-01 Thread Christophe Fergeau
ACK On Thu, Mar 01, 2012 at 12:15:38AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org Getter for the associated domain of a domain device. --- libvirt-gobject/libvirt-gobject-domain-device.c | 11 +++

Re: [libvirt] [libvirt-glib 4/6] Add 'config' property to GVirDomainDevice

2012-03-01 Thread Christophe Fergeau
ACK On Thu, Mar 01, 2012 at 12:15:40AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org GVirDomainDevice should have an associated GVirConfigDomainDevice. --- libvirt-gobject/libvirt-gobject-domain-device.c | 33 +++

Re: [libvirt] [PATCHv2 01/15] docs: use correct terminology for 1024 bytes

2012-03-06 Thread Christophe Fergeau
On Mon, Mar 05, 2012 at 05:34:16PM -0700, Eric Blake wrote: @@ -3619,7 +3619,7 @@ error: /** * virDomainSetMaxMemory: * @domain: a domain object or NULL - * @memory: the memory size in kilobytes + * @memory: the memory size in kibibytes (blocks of 1024) of 1024 bytes? I don't know how

[libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-06 Thread Christophe Fergeau
, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_CHARDEV_SOURCE_SPICE_VMC_GET_PRIVATE(obj

[libvirt] [libvirt-glib 1/3] Fix GVIR_CONFIG_DOMAIN_CHANNEL_TARGET_GUESTFWD name

2012-03-06 Thread Christophe Fergeau
It was called GVIR_CONFIG_DOMAIN_CONSOLE_TARGET_GUESTFWD, which in turn confused glib-mkenums, leading to a wrong value being generated in the XML when trying to use this enumeration. --- libvirt-gconfig/libvirt-gconfig-domain-channel.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[libvirt] [libvirt-glib 3/3] Add GVirConfigDomainRedirdev

2012-03-06 Thread Christophe Fergeau
General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include

Re: [libvirt] [libvirt-glib] All string getters should return 'const'

2012-03-08 Thread Christophe Fergeau
Hey, Thanks for doing this! I'll do a more in depth review on Monday if noone beats me to it, just some quick notes: On Wed, Mar 07, 2012 at 06:02:06AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org -char * -gvir_config_xml_get_child_element_content_glib

Re: [libvirt] [libvirt-glib] Keep domain devices list sorted

2012-03-08 Thread Christophe Fergeau
On Wed, Mar 07, 2012 at 01:56:44AM +0200, Zeeshan Ali (Khattak) wrote: On Wed, Mar 7, 2012 at 1:03 AM, Eric Blake ebl...@redhat.com wrote: Actually, if I understand things right, preserving order _is_ important to guarantee.  For example, with older XML that lacked per-device boot

Re: [libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-12 Thread Christophe Fergeau
Ping for this patch and for 3/3 ? Christophe On Tue, Mar 06, 2012 at 05:38:33PM +0100, Christophe Fergeau wrote: This is needed to be able to add the SPICE agent channels --- libvirt-gconfig/Makefile.am|2 + ...ibvirt-gconfig-domain-chardev-source-spicevmc.c

[libvirt] [libvirt-glib 3/3] Remove the _glib xml helpers

2012-03-12 Thread Christophe Fergeau
The reason for them being there was that they were more expensive than the helpers returning an xmlChar* (additional g_strdup). Now that we are returning a pointer to const data inside the xml node, the _glib helpers only use is to cast from const xmlChar * to const char *. Removing them makes the

[libvirt] [libvirt-glib 1/3] Fix NULL deref when an attribute cannot be found

2012-03-12 Thread Christophe Fergeau
When gvir_config_xml_get_attribute_content fails to find the attribute that the caller is looking for, we will try to dereference 'attr' which is NULL in this case. This will cause a crash. --- libvirt-gconfig/libvirt-gconfig-helpers.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)

[libvirt] [libvirt-glib 2/3] Simplify gvir_config_xml_get_attribute_content a bit

2012-03-12 Thread Christophe Fergeau
g_strcmp0 is convenient when comparing potentially NULL strings. Use this in gvir_config_xml_get_attribute_content instead of explicitly checking for NULL. --- libvirt-gconfig/libvirt-gconfig-helpers.c |8 ++-- 1 files changed, 2 insertions(+), 6 deletions(-) diff --git

Re: [libvirt] [libvirt-glib] All string getters should return 'const'

2012-03-12 Thread Christophe Fergeau
On Wed, Mar 07, 2012 at 06:02:06AM +0200, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org There is no need for all the memory (de)allocations and especially forcing the app developers to free the strings. They can always g_strdup() the returned string if they

Re: [libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-13 Thread Christophe Fergeau
Hey, On Tue, Mar 13, 2012 at 01:22:09AM +0100, Marc-André Lureau wrote: On Mon, Mar 12, 2012 at 5:56 PM, Christophe Fergeau cferg...@redhat.com wrote: Ping for this patch and for 3/3 ? ./test-domain-create gives: channel type=spicevmc target type=channel-target-virtio

Re: [libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-13 Thread Christophe Fergeau
On Tue, Mar 13, 2012 at 04:31:56PM +0100, Christophe Fergeau wrote: On Tue, Mar 13, 2012 at 04:18:21PM +0100, Marc-André Lureau wrote: On Tue, Mar 13, 2012 at 4:15 PM, Christophe Fergeau cferg...@redhat.com wrote:       target type=channel-target-virtio/ That's what I was mainly

Re: [libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-13 Thread Christophe Fergeau
On Tue, Mar 13, 2012 at 04:18:21PM +0100, Marc-André Lureau wrote: On Tue, Mar 13, 2012 at 4:15 PM, Christophe Fergeau cferg...@redhat.com wrote:       target type=channel-target-virtio/ That's what I was mainly looking at, and I wish the test would cover a more complex and needed case

Re: [libvirt] [libvirt-glib 2/3] Add LibvirtGConfigDomainChardevSourceSpiceVmc

2012-03-13 Thread Christophe Fergeau
On Tue, Mar 13, 2012 at 05:01:14PM +0100, Marc-André Lureau wrote: How do you verify new_from_xml()? Am I missing something? This is just copy and paste, and keeping all files consistent. I don't think we have any user of these methods, except the top level ones, and I'm not sure it's really

[libvirt] [libvirt-glib] Remove unneeded call in libvirt-gconfig test

2012-03-16 Thread Christophe Fergeau
Because of a copy and paste error, the test program is making an unneeded call to gvir_config_domain_channel_set_target_type when setting up its USB redirection device. --- libvirt-gconfig/tests/test-domain-create.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git

[libvirt] [PATCH] Set default name for SPICE agent channel

2012-03-23 Thread Christophe Fergeau
libvirt documentation for channels with type 'spicevmc' says that the 'target' child node has: an optional attribute name controls how the guest will have access to the channel, and defaults to name='com.redhat.spice.0'. However, this default value is never set in libvirt code base, there's only

Re: [libvirt] [test-API PATCH 1/6] Slight cross-distribution support

2012-03-27 Thread Christophe Fergeau
On Mon, Mar 26, 2012 at 02:42:17PM +0200, Michal Novotny wrote: Fedora is using /etc/redhat-release file so you use the same handling for Fedora and RHEL then it's fine. I also have a /etc/fedora-release on my f17. systemd people are pushing for standardization around

Re: [libvirt] [test-API PATCH 1/6] Slight cross-distribution support

2012-03-27 Thread Christophe Fergeau
On Tue, Mar 27, 2012 at 12:23:54PM +0200, Michal Novotny wrote: On 03/27/2012 10:32 AM, Christophe Fergeau wrote: On Mon, Mar 26, 2012 at 02:42:17PM +0200, Michal Novotny wrote: Fedora is using /etc/redhat-release file so you use the same handling for Fedora and RHEL then it's fine. I

[libvirt] [libvirt-glib] Do not encode entities in XML attributes

2012-03-28 Thread Christophe Fergeau
libxml2 will properly escape and in XML attribute content. If we use xmlEncodeEntitiesReentrant for attributes, this causes issues with UTF8 filenames (gvir_config_domain_disk_set_source for example): the filename UTF8 characters will be substituted with entities (é - #xE9;), but when it uses

Re: [libvirt] [PATCH] Set default name for SPICE agent channel

2012-03-28 Thread Christophe Fergeau
On Wed, Mar 28, 2012 at 10:02:40AM -0600, Eric Blake wrote: On 03/23/2012 04:08 AM, Christophe Fergeau wrote: libvirt documentation for channels with type 'spicevmc' says that the 'target' child node has: an optional attribute name controls how the guest will have access to the channel

Re: [libvirt] [PATCH] Set default name for SPICE agent channel

2012-03-29 Thread Christophe Fergeau
On Wed, Mar 28, 2012 at 03:20:45PM -0400, Laine Stump wrote: I know I'm a bit late to the party (I missed your mail before), but would it have been possible to do the default processing in the caller rather than in the parsing function itself? I cannot disagree since I was not sure at all that

Re: [libvirt] [PATCH] qemu: set default name for SPICE agent channel when generating command

2012-03-30 Thread Christophe Fergeau
Hey, Patch looks good to me, thanks for writing it :) Christophe On Fri, Mar 30, 2012 at 03:50:37AM -0400, Laine Stump wrote: commit b0e2bb33 set a default value for the SPICE agent channel by inserting it during parsing of the channel XML. That method of setting a default is problematic

[libvirt] [libvirt-glib 08/13] Implement GVirConfigDomainAddressPci

2012-04-06 Thread Christophe Fergeau
Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define

[libvirt] [libvirt-glib 09/13] Implement gvir_config_domain_controller_set_address

2012-04-06 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller.c| 10 ++ .../libvirt-gconfig-domain-controller.h|2 ++ libvirt-gconfig/libvirt-gconfig.sym|1 + 3 files changed, 13 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-controller.c

[libvirt] USB redirection support

2012-04-06 Thread Christophe Fergeau
Hey, This patch series adds the needed classes for apps to be able to use USB redirection. I've followed http://hansdegoede.livejournal.com/11084.html and added all the API needed to be able to get the same XML. However, I'm not 100% sure all these attributes are required, in particular the

[libvirt] [libvirt-glib 01/13] Add GVirConfigDomainController skeleton

2012-04-06 Thread Christophe Fergeau
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_CONTROLLER_GET_PRIVATE(obj

[libvirt] [libvirt-glib 07/13] Add GVirConfigDomainAddress abstract type

2012-04-06 Thread Christophe Fergeau
, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_ADDRESS_GET_PRIVATE(obj

[libvirt] [libvirt-glib 02/13] Implement gvir_config_domain_controller_[gs]et_index

2012-04-06 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller.c| 29 .../libvirt-gconfig-domain-controller.h|4 +++ libvirt-gconfig/libvirt-gconfig.sym|2 ++ 3 files changed, 35 insertions(+) diff --git

[libvirt] [libvirt-glib 05/13] Implement gvir_config_domain_controller_usb_set_master

2012-04-06 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller-usb.c| 21 .../libvirt-gconfig-domain-controller-usb.h|3 +++ libvirt-gconfig/libvirt-gconfig.sym|1 + 3 files changed, 25 insertions(+) diff --git

[libvirt] [libvirt-glib 04/13] Add gvir_config_domain_controller_usb_set_model

2012-04-06 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller-usb.c| 13 + .../libvirt-gconfig-domain-controller-usb.h| 15 +++ libvirt-gconfig/libvirt-gconfig.sym|2 ++ 3 files changed, 30 insertions(+) diff --git

[libvirt] [libvirt-glib 11/13] Implement GVirConfigDomainAddressUsb

2012-04-06 Thread Christophe Fergeau
, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_PRIVATE(obj

[libvirt] [libvirt-glib 06/13] test-domain-create: add USB controller creation

2012-04-06 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index 4ee33aa..7be9fc2 100644 --- a/libvirt-gconfig/tests/test-domain-create.c

[libvirt] [libvirt-glib 10/13] Improve USB device creation in test-domain-create

2012-04-06 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 53 +++- 1 file changed, 37 insertions(+), 16 deletions(-) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index 7be9fc2..0c1aad5 100644 ---

[libvirt] [libvirt-glib 12/13] Implement gvir_config_domain_redirdev_set_address

2012-04-06 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-redirdev.c | 10 ++ libvirt-gconfig/libvirt-gconfig-domain-redirdev.h |2 ++ libvirt-gconfig/libvirt-gconfig.sym |1 + 3 files changed, 13 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c

[libvirt] [libvirt-glib 13/13] test-domain-create: set an address for redirdev devices

2012-04-06 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 43 ++-- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index 0c1aad5..2b2f734 100644 ---

[libvirt] [libvirt-glib 03/13] Add GVirConfigDomainControllerUsb boilerplate

2012-04-06 Thread Christophe Fergeau
to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define

Re: [libvirt] [libvirt-glib] libvirt-gconfig: Move symbols introduced post 0.0.4 to the correct versions

2012-04-11 Thread Christophe Fergeau
Hey, On Tue, Apr 10, 2012 at 09:38:36PM +0100, Daniel P. Berrange wrote: On Tue, Apr 10, 2012 at 10:31:55PM +0200, Guido Günther wrote: Triggered by http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=667683 --- If this looks correct I'll have a look at libvirt-glib and libvirt-gobject

Re: [libvirt] [libvirt-glib] libvirt-gconfig: Move symbols introduced post 0.0.4 to the correct versions

2012-04-11 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 10:24:42AM +0100, Daniel P. Berrange wrote: On Wed, Apr 11, 2012 at 10:47:46AM +0200, Christophe Fergeau wrote: Hey, On Tue, Apr 10, 2012 at 09:38:36PM +0100, Daniel P. Berrange wrote: On Tue, Apr 10, 2012 at 10:31:55PM +0200, Guido Günther wrote: Triggered

Re: [libvirt] [libvirt-glib] libvirt-gconfig: Move symbols introduced post 0.0.4 to the correct versions

2012-04-11 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 01:25:45PM +0200, Guido Günther wrote: On Wed, Apr 11, 2012 at 10:47:46AM +0200, Christophe Fergeau wrote: Hey, On Tue, Apr 10, 2012 at 09:38:36PM +0100, Daniel P. Berrange wrote: On Tue, Apr 10, 2012 at 10:31:55PM +0200, Guido Günther wrote: Triggered

Re: [libvirt] USB redirection support

2012-04-11 Thread Christophe Fergeau
On Fri, Apr 06, 2012 at 02:51:35PM +0200, Christophe Fergeau wrote: Hey, This patch series adds the needed classes for apps to be able to use USB redirection. I've followed http://hansdegoede.livejournal.com/11084.html and added all the API needed to be able to get the same XML. However

[libvirt] Add USB controller support

2012-04-11 Thread Christophe Fergeau
Hey, Here is the second version of the patch series implementing USB controller support in libvirt-gconfig. There's a bug fixed in GVirConfigDomainAddressUsb creation (type=usb was missing) as well as a few small bug fixes/changes in the test program. I also added an additional patch implementing

[libvirt] [libvirt-gconfig PATCHv2 03/14] Add GVirConfigDomainControllerUsb boilerplate

2012-04-11 Thread Christophe Fergeau
to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define

[libvirt] [libvirt-gconfig PATCHv2 01/14] Add GVirConfigDomainController skeleton

2012-04-11 Thread Christophe Fergeau
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_CONTROLLER_GET_PRIVATE(obj

[libvirt] [libvirt-gconfig PATCHv2 04/14] Add gvir_config_domain_controller_usb_set_model

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-controller-usb.c | 13 + libvirt-gconfig/libvirt-gconfig-domain-controller-usb.h | 15 +++ libvirt-gconfig/libvirt-gconfig.sym |2 ++ 3 files changed, 30 insertions(+) diff --git

[libvirt] [libvirt-gconfig PATCHv2 05/14] Implement gvir_config_domain_controller_usb_set_master

2012-04-11 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller-usb.c| 21 .../libvirt-gconfig-domain-controller-usb.h|3 +++ libvirt-gconfig/libvirt-gconfig.sym|1 + 3 files changed, 25 insertions(+) diff --git

[libvirt] [libvirt-gconfig PATCHv2 02/14] Implement gvir_config_domain_controller_[gs]et_index

2012-04-11 Thread Christophe Fergeau
--- .../libvirt-gconfig-domain-controller.c| 29 .../libvirt-gconfig-domain-controller.h|4 +++ libvirt-gconfig/libvirt-gconfig.sym|2 ++ 3 files changed, 35 insertions(+) diff --git

[libvirt] [libvirt-gconfig PATCHv2 12/14] Implement gvir_config_domain_redirdev_set_address

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-redirdev.c | 10 ++ libvirt-gconfig/libvirt-gconfig-domain-redirdev.h |2 ++ libvirt-gconfig/libvirt-gconfig.sym |1 + 3 files changed, 13 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-redirdev.c

[libvirt] [libvirt-gconfig PATCHv2 11/14] Implement GVirConfigDomainAddressUsb

2012-04-11 Thread Christophe Fergeau
, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_ADDRESS_USB_GET_PRIVATE(obj

[libvirt] [libvirt-gconfig PATCHv2 13/14] test-domain-create: set an address for redirdev devices

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 46 +++- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index cdee883..b6d8813 100644 ---

[libvirt] [libvirt-gconfig PATCHv2 06/14] test-domain-create: add USB controller creation

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 25 + 1 file changed, 25 insertions(+) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index 4ee33aa..7be9fc2 100644 --- a/libvirt-gconfig/tests/test-domain-create.c

[libvirt] [libvirt-gconfig PATCHv2 07/14] Add GVirConfigDomainAddress abstract type

2012-04-11 Thread Christophe Fergeau
, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_ADDRESS_GET_PRIVATE(obj

[libvirt] [libvirt-gconfig PATCHv2 10/14] Improve USB device creation in test-domain-create

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/tests/test-domain-create.c | 54 +++- 1 file changed, 38 insertions(+), 16 deletions(-) diff --git a/libvirt-gconfig/tests/test-domain-create.c b/libvirt-gconfig/tests/test-domain-create.c index 7be9fc2..cdee883 100644 ---

[libvirt] [libvirt-gconfig PATCHv2 09/14] Implement gvir_config_domain_controller_set_address

2012-04-11 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-controller.c | 10 ++ libvirt-gconfig/libvirt-gconfig-domain-controller.h |2 ++ libvirt-gconfig/libvirt-gconfig.sym |1 + 3 files changed, 13 insertions(+) diff --git

[libvirt] [libvirt-gconfig PATCHv2 08/14] Implement GVirConfigDomainAddressPci

2012-04-11 Thread Christophe Fergeau
Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define

[libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-11 Thread Christophe Fergeau
This function is a helper function which adds all the needed devices for working USB support in the guest. This can be done manually, but is a bit tedious, hence this helper. --- libvirt-gconfig/libvirt-gconfig-domain.c | 41

Re: [libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-11 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 06:01:42PM +0200, Marc-André Lureau wrote: On Wed, Apr 11, 2012 at 5:29 PM, Christophe Fergeau cferg...@redhat.com wrote: What would _USB2 do? Add an _EHCI controller, plus either _PIIX3_UHCI or _PIIX4_UHCI? From what I remember Hans told me, all the 4 ehci + uhci

Re: [libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-11 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 05:19:33PM +0100, Daniel P. Berrange wrote: The concept of 'default usb controllers' seems very policy based to me different hypervisors will have different views of this. So IMHO we should not add this API I'm fine with dropping the patch. My feeling was that this

Re: [libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-11 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 04:29:28PM +0200, Marc-André Lureau wrote: On Wed, Apr 11, 2012 at 3:48 PM, Christophe Fergeau cferg...@redhat.com wrote: +void gvir_config_domain_setup_default_usb_controllers(GVirConfigDomain *domain) I suggest it takes an enum

Re: [libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-12 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 05:19:33PM +0100, Daniel P. Berrange wrote: The concept of 'default usb controllers' seems very policy based to me different hypervisors will have different views of this. With respect to hypervisors, since the function has a GVirConfigDomain parameter, we could use it

Re: [libvirt] [libvirt-gconfig PATCHv2 14/14] Implement gvir_config_domain_setup_default_usb_controllers

2012-04-12 Thread Christophe Fergeau
On Wed, Apr 11, 2012 at 06:51:48PM +0200, Marc-André Lureau wrote: On Wed, Apr 11, 2012 at 6:19 PM, Daniel P. Berrange berra...@redhat.com wrote: The concept of 'default usb controllers' seems very policy based to me different hypervisors will have different views of this. This is a

Re: [libvirt] [libvirt-glib] Getter/setter for disk source's startupPolicy attribute

2012-04-12 Thread Christophe Fergeau
Hey, On Thu, Apr 12, 2012 at 05:54:25AM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gconfig/libvirt-gconfig-domain-disk.c | 26 + libvirt-gconfig/libvirt-gconfig-domain-disk.h |9

Re: [libvirt] [libvirt-gconfig PATCHv2 01/14] Add GVirConfigDomainController skeleton

2012-04-12 Thread Christophe Fergeau
On Thu, Apr 12, 2012 at 12:06:52PM +0200, Guido Günther wrote: On Wed, Apr 11, 2012 at 03:48:09PM +0200, Christophe Fergeau wrote: [..snip..] --- a/libvirt-gconfig/libvirt-gconfig.sym +++ b/libvirt-gconfig/libvirt-gconfig.sym @@ -69,6 +69,8 @@ LIBVIRT_GCONFIG_0.0.4

Re: [libvirt] [libvirt-glib] Getter/setter for disk source's startupPolicy attribute

2012-04-13 Thread Christophe Fergeau
On Thu, Apr 12, 2012 at 12:08:42PM +0200, Guido Günther wrote: On Thu, Apr 12, 2012 at 05:54:25AM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gconfig/libvirt-gconfig-domain-disk.c | 26 +

Re: [libvirt] [libvirt-glib] Getter/setter for disk source's startupPolicy attribute

2012-04-13 Thread Christophe Fergeau
On Thu, Apr 12, 2012 at 11:50:30PM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gconfig/libvirt-gconfig-domain-disk.c | 26 + libvirt-gconfig/libvirt-gconfig-domain-disk.h |9

Re: [libvirt] [libvirt-glib] Getter/setter for disk source's startupPolicy attribute

2012-04-13 Thread Christophe Fergeau
On Fri, Apr 13, 2012 at 04:41:32PM +0300, Zeeshan Ali (Khattak) wrote: On Fri, Apr 13, 2012 at 2:26 PM, Christophe Fergeau cferg...@redhat.com wrote: On Thu, Apr 12, 2012 at 11:50:30PM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org ---  libvirt

[libvirt] [libvirt-glib 2/5] Implement gvir_config_domain_timer_[gs]et_tick_policy

2012-04-13 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-timer.c | 26 libvirt-gconfig/libvirt-gconfig-domain-timer.h |9 libvirt-gconfig/libvirt-gconfig.sym|3 +++ 3 files changed, 38 insertions(+) diff --git

[libvirt] [libvirt-glib 3/5] Implement gvir_config_domain_clock_add_timer

2012-04-13 Thread Christophe Fergeau
--- libvirt-gconfig/libvirt-gconfig-domain-clock.c | 10 ++ libvirt-gconfig/libvirt-gconfig-domain-clock.h |4 libvirt-gconfig/libvirt-gconfig.sym|1 + 3 files changed, 15 insertions(+) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-clock.c

[libvirt] [libvirt-glib 4/5] Add GVirConfigDomainTimerRtc class

2012-04-13 Thread Christophe Fergeau
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define GVIR_CONFIG_DOMAIN_TIMER_RTC_GET_PRIVATE

[libvirt] [libvirt-glib 5/5] Add GVirConfigDomainTimerPit class

2012-04-13 Thread Christophe Fergeau
Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * Author: Christophe Fergeau cferg...@redhat.com + */ + +#include config.h + +#include libvirt-gconfig/libvirt-gconfig.h +#include libvirt-gconfig/libvirt-gconfig-private.h + +#define

[libvirt] [libvirt-glib 1/5] Make GVirConfigDomainTimer abstract

2012-04-13 Thread Christophe Fergeau
Specialized timer classes will inherit from it --- libvirt-gconfig/libvirt-gconfig-domain-timer.c | 22 +- libvirt-gconfig/libvirt-gconfig-domain-timer.h |4 libvirt-gconfig/libvirt-gconfig.sym|2 -- 3 files changed, 1 insertion(+), 27 deletions(-)

[libvirt] 2 trivial doc patches

2012-04-16 Thread Christophe Fergeau
Hey, I've just pushed these 2 documentation patches under the trivial rule. Christophe -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 1/2] docs: add missing /span in vcpu placement doc

2012-04-16 Thread Christophe Fergeau
--- docs/formatdomain.html.in |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index bb67cd1..e08a3d2 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -359,7 +359,7 @@ 0.8.5/span, the

[libvirt] [PATCH 2/2] docs: fix 'omitted' typo in cputune doc

2012-04-16 Thread Christophe Fergeau
'omitted' was mispelt 'commited' twice. One of the sentences with the typo was also missing an 'is' ('each VCPU *is* pinned to all...') which I added in this commit while I was at it. --- docs/formatdomain.html.in |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[libvirt] [libvirt-glib 1/2] Parse GVirConfigDomainController nodes

2012-04-17 Thread Christophe Fergeau
Update gvir_config_domain_device_new_from_tree to handle GVirConfigDomainController nodes --- .../libvirt-gconfig-domain-controller.c| 37 .../libvirt-gconfig-domain-device-private.h|3 ++ libvirt-gconfig/libvirt-gconfig-domain-device.c|2 +-

[libvirt] [libvirt-glib 2/2] Parse GVirConfigDomainRedirdev nodes

2012-04-17 Thread Christophe Fergeau
Update gvir_config_domain_device_new_from_tree to handle GVirConfigDomainRedirdev nodes --- libvirt-gconfig/libvirt-gconfig-domain-device.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt-gconfig/libvirt-gconfig-domain-device.c

Re: [libvirt] [libvirt-glib] Add async variant of gvir_domain_get_info()

2012-04-19 Thread Christophe Fergeau
On Thu, Apr 19, 2012 at 03:12:01AM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gobject/libvirt-gobject-domain.c | 74 ++ libvirt-gobject/libvirt-gobject-domain.h |7 +++

Re: [libvirt] [libvirt-glib] Add async variant of gvir_domain_get_info()

2012-04-19 Thread Christophe Fergeau
On Thu, Apr 19, 2012 at 04:24:35PM +0300, Zeeshan Ali (Khattak) wrote: On Thu, Apr 19, 2012 at 11:52 AM, Christophe Fergeau cferg...@redhat.com wrote: On Thu, Apr 19, 2012 at 03:12:01AM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org +static void

Re: [libvirt] [libvirt-glib] Add async variant of gvir_domain_get_info()

2012-04-19 Thread Christophe Fergeau
On Thu, Apr 19, 2012 at 04:45:29PM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gobject/libvirt-gobject-domain.c | 74 ++ libvirt-gobject/libvirt-gobject-domain.h |7 +++

Re: [libvirt] [libvirt-glib] Add async variant of gvir_domain_get_info()

2012-04-19 Thread Christophe Fergeau
ACK Christophe On Thu, Apr 19, 2012 at 05:17:04PM +0300, Zeeshan Ali (Khattak) wrote: From: Zeeshan Ali (Khattak) zeesha...@gnome.org --- libvirt-gobject/libvirt-gobject-domain.c | 80 ++ libvirt-gobject/libvirt-gobject-domain.h |7 +++

  1   2   3   4   5   6   7   8   9   10   >