[libvirt] [PATCH] virsh: fix memory leak in virsh when starting a guest with invalid fd

2014-02-20 Thread Jincheng Miao
When start a guest with --pass-fd, if the argument of --pass-fd is invalid, virsh will exit, but doesn't free the variable 'dom'. The valgrind said: ... ==24569== 63 (56 direct, 7 indirect) bytes in 1 blocks are definitely lost in loss record 130 of 234 ==24569==at 0x4C2A1D4: calloc (in

[libvirt] [PATCH] Fix build of portallocator on mingw

2014-02-20 Thread Ján Tomko
IN6ADDR_ANY_INIT does not seem to be working as expected on MinGW: error: missing braces around initializer [-Werror=missing-braces] .sin6_addr = IN6ADDR_ANY_INIT, Use the in6addr_any variable instead. Reported by Daniel P. Berrange. --- Pushed as a build breaker.

Re: [libvirt] [PATCH] lxc: Add destroy support for suspended domains

2014-02-20 Thread Michal Privoznik
On 14.02.2014 16:42, Richard Weinberger wrote: Destroying a suspended domain needs special action. We cannot simply terminate all process because they are frozen. Do deal with that we send them SIGKILL and thaw them. Upon wakeup the process sees the pending signal and dies immediately.

Re: [libvirt] [PATCH 1/2] Add virStringSearch method for regex matching

2014-02-20 Thread Ján Tomko
On 02/19/2014 09:36 PM, Daniel P. Berrange wrote: From: Manuel VIVES manuel.vi...@diateam.net Add a virStringSearch method to virstring.{c,h} which performs a regex match against a string and returns the matching substrings. Signed-off-by: Daniel P. Berrange berra...@redhat.com ---

Re: [libvirt] [PATCH 2/2] Add virStringReplace method for substring replacement

2014-02-20 Thread Ján Tomko
On 02/19/2014 09:36 PM, Daniel P. Berrange wrote: Add a virStringReplace method to virstring.{h,c} to perform substring matching and replacement Signed-off-by: Daniel P. Berrange berra...@redhat.com --- src/libvirt_private.syms | 1 + src/util/virstring.c | 44

Re: [libvirt] [PATCH] virsh: fix memory leak in virsh when starting a guest with invalid fd

2014-02-20 Thread Eric Blake
On 02/20/2014 02:29 AM, Jincheng Miao wrote: When start a guest with --pass-fd, if the argument of --pass-fd is invalid, virsh will exit, but doesn't free the variable 'dom'. +++ b/tools/virsh-domain.c @@ -3428,11 +3428,11 @@ cmdStart(vshControl *ctl, const vshCmd *cmd) if

[libvirt] [PATCH glib] gobject-stream: fix issue found by coverity

2014-02-20 Thread Pavel Hrdina
The coverity server found issue in gvir_stream_close function that we ignore return values of g_input_stream_close and g_outpu_stream_close, but we also ignore the error message and we assume that it's closed without error. Now we will check return values and also propagate the error message to

Re: [libvirt] [PATCH] Fix build of portallocator on mingw

2014-02-20 Thread Eric Blake
On 02/20/2014 05:38 AM, Eric Blake wrote: [adding gnulib] On 02/20/2014 02:39 AM, Ján Tomko wrote: IN6ADDR_ANY_INIT does not seem to be working as expected on MinGW: error: missing braces around initializer [-Werror=missing-braces] .sin6_addr = IN6ADDR_ANY_INIT, Use the

Re: [libvirt] [PATCH] qemu: adjust maxmem/maxvcpu computation

2014-02-20 Thread Eric Blake
On 01/29/2014 12:04 PM, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1038363 If a domain has a different maximum for persistent and live maxmem or max vcpus, then it is possible to hit cases where libvirt refuses to adjust the current values or gets halfway through the

Re: [libvirt] [PATCH 0/4] add 'virsh event' and friends

2014-02-20 Thread Eric Blake
On 02/14/2014 05:21 PM, Eric Blake wrote: Inspired by my work on qemu monitor events; Dan correctly argued that if we're going to expose those through virsh, we also need to expose regular events. Patch 5/4 still coming, which adds handlers for the remaining 15 domain event types. Ping - I'd

Re: [libvirt] [PATCH] Rename virDomainGetRootFilesystem to virDomainGetFilesystemForTarget

2014-02-20 Thread Eric Blake
On 12/18/2013 05:22 AM, Daniel P. Berrange wrote: Wow, this one has sat for a while. The virDomainGetRootFilesystem method can be generalized to allow any filesystem path to be obtained. While doing this, start a new test case for purpose of testing various helper methods in the

Re: [libvirt] help debugging event timing

2014-02-20 Thread Eric Blake
On 01/01/2014 03:44 PM, Eric Blake wrote: In my recent work on events, I'm running into something where I'm stumped on timing behavior. I'm using virEventRegisterDefaultImpl()/virEventRunDefaultImpl() as my event loop, and trying to test that an event is firing correctly. Ping. I'm not

[libvirt] block pull/commit for non-local storage

2014-02-20 Thread Peter Krempa
Hi, with my recent work into snapshots with native libgfapi support I've run into an issue with libvirt APIs used to delete snapshots by management apps. The management apps use the APIs to do the job: int virDomainBlockCommit(virDomainPtr dom, const char *disk, const char

Re: [libvirt] [PATCH glib] gobject-stream: fix issue found by coverity

2014-02-20 Thread Christophe Fergeau
Hey, On Thu, Feb 20, 2014 at 01:49:31PM +0100, Pavel Hrdina wrote: The coverity server found issue in gvir_stream_close function that we ignore return values of g_input_stream_close and g_outpu_stream_close, but we also ignore the error message and we missing 't' in g_output_stream_close

Re: [libvirt] block pull/commit for non-local storage

2014-02-20 Thread Martin Kletzander
On Thu, Feb 20, 2014 at 02:46:03PM +0100, Peter Krempa wrote: Hi, with my recent work into snapshots with native libgfapi support I've run into an issue with libvirt APIs used to delete snapshots by management apps. The management apps use the APIs to do the job: int

Re: [libvirt] block pull/commit for non-local storage

2014-02-20 Thread Daniel P. Berrange
On Thu, Feb 20, 2014 at 02:46:03PM +0100, Peter Krempa wrote: As you can see in the prototypes of these functions (and from the docs for them which I'm not going to copy here) the user can provide the disk specification in two possible options: 1) a full path if it's unambiguous - this is

Re: [libvirt] [PATCH v2] bandwidth: Adjust documentation

2014-02-20 Thread Laine Stump
On 02/18/2014 07:16 PM, John Ferlan wrote: Because I know it's easier to read without all the git +/-, here's what I have now in the QoS section on the formatnetwork (hopefully I've captured everything correctly): This all looks fine. ACK. The bandwidth element allows setting quality of

Re: [libvirt] [PATCH glib] gobject-stream: fix issue found by coverity

2014-02-20 Thread Pavel Hrdina
On 20.2.2014 15:07, Christophe Fergeau wrote: Hey, On Thu, Feb 20, 2014 at 01:49:31PM +0100, Pavel Hrdina wrote: The coverity server found issue in gvir_stream_close function that we ignore return values of g_input_stream_close and g_outpu_stream_close, but we also ignore the error message and

Re: [libvirt] 1.2.0 segfault on Centos 6

2014-02-20 Thread Scott Sullivan
On 02/04/2014 05:23 PM, Jiri Denemark wrote: On Tue, Feb 04, 2014 at 17:02:41 +0100, Franky Van Liedekerke wrote: Hi, using libvirt 1.2.0 on a up-to-date Centos6.5 machine leads to occasional segmentation faults (see below). Sometimes it runs for 5 minutes, sometimes for an hour, but after

Re: [libvirt] [PATCH glib] gobject-stream: fix issue found by coverity

2014-02-20 Thread Christophe Fergeau
On Thu, Feb 20, 2014 at 03:57:00PM +0100, Pavel Hrdina wrote: On 20.2.2014 15:07, Christophe Fergeau wrote: @@ -102,17 +102,33 @@ static GOutputStream* gvir_stream_get_output_stream(GIOStream *io_stream) static gboolean gvir_stream_close(GIOStream *io_stream,

Re: [libvirt] [PATCHv4 01/10] Add util virCgroupGetBlkioIo*Serviced methods.

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 06:48:59PM +0100, Thorsten Behrens wrote: This reads blkio stats from blkio.throttle.io_service_bytes and blkio.throttle.io_serviced. --- src/libvirt_private.syms | 2 + src/util/vircgroup.c | 254 +++

Re: [libvirt] [PATCHv4 07/10] Add unit test for virCgroupGetBlkioIo*Serviced

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 06:49:05PM +0100, Thorsten Behrens wrote: --- Notes to v4: - share fake disk device path via header file instead of env var tests/testutilslxc.h | 3 ++ tests/vircgroupmock.c | 98 +- tests/vircgrouptest.c | 129

Re: [libvirt] [PATCHv4 07/10] Add unit test for virCgroupGetBlkioIo*Serviced

2014-02-20 Thread Michal Privoznik
On 14.02.2014 18:49, Thorsten Behrens wrote: --- Notes to v4: - share fake disk device path via header file instead of env var tests/testutilslxc.h | 3 ++ tests/vircgroupmock.c | 98 +- tests/vircgrouptest.c | 129

Re: [libvirt] [PATCHv4 06/10] Widening API change - accept empty path for virDomainBlockStats

2014-02-20 Thread Michal Privoznik
On 14.02.2014 18:49, Thorsten Behrens wrote: And provide domain summary stat in that case, for lxc backend. Use case is a container inheriting all devices from the host, e.g. when doing application containerization. --- src/libvirt.c| 8 ++-- tools/virsh-domain-monitor.c

Re: [libvirt] [PATCHv4 02/10] Implement domainMemoryStats API slot for LXC driver.

2014-02-20 Thread Michal Privoznik
On 14.02.2014 18:49, Thorsten Behrens wrote: --- Notes to v4: - check errors before filling param array - UL-ULL change punted to separate patch src/lxc/lxc_driver.c | 56 1 file changed, 56 insertions(+) diff --git

Re: [libvirt] [PATCHv4 05/10] Implement lxcDomainBlockStats* for lxc driver

2014-02-20 Thread Michal Privoznik
On 14.02.2014 18:49, Thorsten Behrens wrote: Adds lxcDomainBlockStatsFlags and lxcDomainBlockStats functions. --- src/lxc/lxc_driver.c | 195 +++ 1 file changed, 195 insertions(+) diff --git a/src/lxc/lxc_driver.c b/src/lxc/lxc_driver.c index

Re: [libvirt] [PATCHv4 00/10] Add BlkIO and CPU/mem stat API implementations for lxc

2014-02-20 Thread Michal Privoznik
On 14.02.2014 18:48, Thorsten Behrens wrote: This patch set adds block io, memory and domain cpu statistics API slot implementations to the LXC driver, in order to get linux container monitoring and accounting a bit closer to qemu standards. The last patch is a tad quirky (happy to hear

Re: [libvirt] [PATCHv4 02/10] Implement domainMemoryStats API slot for LXC driver.

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 06:49:00PM +0100, Thorsten Behrens wrote: --- Notes to v4: - check errors before filling param array - UL-ULL change punted to separate patch src/lxc/lxc_driver.c | 56 1 file changed, 56 insertions(+)

[libvirt] [PATCH] Fix multiple bugs in LXC domainMemoryStats driver

2014-02-20 Thread Daniel P. Berrange
The virCgroupXXX APIs' return value must be checked for being less than 0, not equal to 0. An VIR_ERR_OPERATION_INVALID error must also be raised when the VM is not running to prevent a crash on NULL priv-cgroup field. Signed-off-by: Daniel P. Berrange berra...@redhat.com ---

Re: [libvirt] block pull/commit for non-local storage

2014-02-20 Thread Eric Blake
On 02/20/2014 07:37 AM, Daniel P. Berrange wrote: 2) Export the image chain in the XML and allow to use indexed disk names This option would require to export the backing chain in the XML in some way, either the existing disk source specification in multiple elements (which I don't like as it

Re: [libvirt] [PATCHv4 06/10] Widening API change - accept empty path for virDomainBlockStats

2014-02-20 Thread Eric Blake
On 02/20/2014 08:26 AM, Michal Privoznik wrote: On 14.02.2014 18:49, Thorsten Behrens wrote: And provide domain summary stat in that case, for lxc backend. Use case is a container inheriting all devices from the host, e.g. when doing application containerization. --- src/libvirt.c

Re: [libvirt] [PATCH] Fix multiple bugs in LXC domainMemoryStats driver

2014-02-20 Thread Michal Privoznik
On 20.02.2014 16:34, Daniel P. Berrange wrote: The virCgroupXXX APIs' return value must be checked for being less than 0, not equal to 0. An VIR_ERR_OPERATION_INVALID error must also be raised when the VM is not running to prevent a crash on NULL priv-cgroup field. Signed-off-by: Daniel P.

[libvirt] [PATCH v2 glib] gobject-stream: fix issue found by coverity

2014-02-20 Thread Pavel Hrdina
The coverity server found issue in gvir_stream_close function that we ignore return values of g_input_stream_close and g_output_stream_close, but we also ignore the error message and we assume that it's closed without error. Now we will check return values and also propagate the error message to

[libvirt] [libvirt-python PATCH] generator: Skip exporting only sentinels

2014-02-20 Thread Martin Kletzander
When enum type has '_LAST' in its name, but is not the last type in that enum, it's skipped even though it shouldn't be. Currently, this is the case for only VIR_NETWORK_UPDATE_COMMAND_ADD_LAST inside an enum virNetworkUpdateCommand. Also, since _LAST types can have other enums instead of

Re: [libvirt] [libvirt-python PATCH] generator: Skip exporting only sentinels

2014-02-20 Thread Daniel P. Berrange
On Thu, Feb 20, 2014 at 05:15:08PM +0100, Martin Kletzander wrote: When enum type has '_LAST' in its name, but is not the last type in that enum, it's skipped even though it shouldn't be. Currently, this is the case for only VIR_NETWORK_UPDATE_COMMAND_ADD_LAST inside an enum

[libvirt] [PATCH glib] Disable test suite unless glib = 2.38

2014-02-20 Thread Daniel P. Berrange
The TAP harness for glib only works with version 2.38 or later, so must be disabled for earlier versions Signed-off-by: Daniel P. Berrange berra...@redhat.com --- configure.ac | 8 +++- tests/Makefile.am | 18 ++ 2 files changed, 21 insertions(+), 5 deletions(-) diff

Re: [libvirt] [PATCH 1/4] virsh: common code for parsing --seconds

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 05:21:38PM -0700, Eric Blake wrote: Several virsh commands ask for a --timeout parameter in seconds, then use it to control interfaces that operate on millisecond limits; I also plan on adding a 'virsh event' command that also does this. Factor this into a common

Re: [libvirt] [PATCH 2/4] virsh: common code for waiting for an event

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 05:21:39PM -0700, Eric Blake wrote: I plan to add 'virsh event' to virsh-domain.c and 'virsh net-event' to virsh-network.c; but as they will share quite a bit of common boilerplate, it's better to set that up now in virsh.c. * tools/virsh.h (_vshControl): Add fields.

Re: [libvirt] [PATCH 3/4] virsh: add event command, for lifecycle events

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 05:21:40PM -0700, Eric Blake wrote: Add 'virsh event --list' and 'virsh event [dom] --event=name [--loop] [--timeout]'. Borrows somewhat from event-test.c, but defaults to a one-shot notification, and takes advantage of the event loop integration to allow Ctrl-C to

Re: [libvirt] [PATCH 4/4] virsh: add net-event command

2014-02-20 Thread Daniel P. Berrange
On Fri, Feb 14, 2014 at 05:21:41PM -0700, Eric Blake wrote: Add 'virsh net-event --list' and 'virsh net-event [net] --event=name [--loop] [--timeout]'. Very similar to 'virsh event'. * tools/virsh.pod (net-event): Document new command. * tools/virsh-network.c (vshNetworkEventToString,

Re: [libvirt] [PATCH] qemu: adjust maxmem/maxvcpu computation

2014-02-20 Thread Daniel P. Berrange
On Wed, Jan 29, 2014 at 12:04:32PM -0700, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1038363 If a domain has a different maximum for persistent and live maxmem or max vcpus, then it is possible to hit cases where libvirt refuses to adjust the current values or gets halfway

Re: [libvirt] help debugging event timing

2014-02-20 Thread Daniel P. Berrange
On Wed, Jan 01, 2014 at 03:44:10PM -0700, Eric Blake wrote: In my recent work on events, I'm running into something where I'm stumped on timing behavior. I'm using virEventRegisterDefaultImpl()/virEventRunDefaultImpl() as my event loop, and trying to test that an event is firing correctly.

Re: [libvirt] [PATCH] Rename virDomainGetRootFilesystem to virDomainGetFilesystemForTarget

2014-02-20 Thread Daniel P. Berrange
On Thu, Feb 20, 2014 at 06:17:31AM -0700, Eric Blake wrote: On 12/18/2013 05:22 AM, Daniel P. Berrange wrote: Wow, this one has sat for a while. The virDomainGetRootFilesystem method can be generalized to allow any filesystem path to be obtained. While doing this, start a new test

Re: [libvirt] [PATCH 3/4] virsh: add event command, for lifecycle events

2014-02-20 Thread Eric Blake
On 02/20/2014 10:33 AM, Daniel P. Berrange wrote: On Fri, Feb 14, 2014 at 05:21:40PM -0700, Eric Blake wrote: Add 'virsh event --list' and 'virsh event [dom] --event=name [--loop] [--timeout]'. Borrows somewhat from event-test.c, but defaults to a one-shot notification, and takes advantage

Re: [libvirt] [PATCH 3/4] virsh: add event command, for lifecycle events

2014-02-20 Thread Daniel P. Berrange
On Thu, Feb 20, 2014 at 11:06:55AM -0700, Eric Blake wrote: On 02/20/2014 10:33 AM, Daniel P. Berrange wrote: On Fri, Feb 14, 2014 at 05:21:40PM -0700, Eric Blake wrote: Add 'virsh event --list' and 'virsh event [dom] --event=name [--loop] [--timeout]'. Borrows somewhat from event-test.c,

Re: [libvirt] [PATCH 3/4] virsh: add event command, for lifecycle events

2014-02-20 Thread Eric Blake
On 02/20/2014 11:14 AM, Daniel P. Berrange wrote: +case VIR_DOMAIN_EVENT_DEFINED: +ret = _(Defined); +break; How about using VIR_ENUM ? We avoided it in the event-test.c file since we wanted it to be example code people can compile outside libvirt. Using enums would

Re: [libvirt] [PATCH] qemu: adjust maxmem/maxvcpu computation

2014-02-20 Thread Eric Blake
On 02/20/2014 10:38 AM, Daniel P. Berrange wrote: On Wed, Jan 29, 2014 at 12:04:32PM -0700, Eric Blake wrote: https://bugzilla.redhat.com/show_bug.cgi?id=1038363 If a domain has a different maximum for persistent and live maxmem or max vcpus, then it is possible to hit cases where libvirt

Re: [libvirt] [PATCH] libxl: always use libxlVmCleanupJob in shutdown thread

2014-02-20 Thread Jim Fehlig
Eric Blake wrote: On 02/19/2014 07:54 PM, Jim Fehlig wrote: Commit e4a0e900 missed calling libxlVmCleanupJob in the shutdown handler when processing a reboot event. Signed-off-by: Jim Fehlig jfeh...@suse.com --- src/libxl/libxl_driver.c | 2 +- 1 file changed, 1 insertion(+), 1

Re: [libvirt] [PATCH] make virDomainGetMaxVcpus work on inactive domains

2014-02-20 Thread Jim Fehlig
Claudio Bley wrote: Signed-off-by: Claudio Bley cb...@av-test.de --- OK, how about this patch? While at it, should I convert the VIR_DOMAIN_VCPU_* instances to VIR_DOMAIN_AFFECT_* instances for consistency? src/esx/esx_driver.c |2 +- src/openvz/openvz_driver.c |2 +-

Re: [libvirt] [PATCHv4 02/10] Implement domainMemoryStats API slot for LXC driver.

2014-02-20 Thread Thorsten Behrens
Hi Michal, thx for further cleaning up, and pushing - Michal Privoznik wrote: +if (!virCgroupGetMemoryUsage(priv-cgroup, mem_usage)) +goto cleanup; + +ret = 0; +if (!virDomainObjIsActive(vm)) +goto cleanup; I think these two lines (well three), otherwise we

[libvirt] [PATCH 0/4] libxl: improve domain lifecycle event support

2014-02-20 Thread Jim Fehlig
This series is the result of a report from Kim Larry [1] about missing shutdown events in the libxl driver. Kim's report revealed that the libxl driver was ignoring the on_* domain lifecycle event configuration! Patch1 adds support for the four standard actions (destroy, restart, preserve, and

[libvirt] [PATCH 1/4] libxl: honor domain lifecycle event configuration

2014-02-20 Thread Jim Fehlig
The libxl driver was ignoring the on_* domain event configuration, causing e.g. a domain to be rebooted even when on_reboot is set to destroy. This patch honors the on_* configuration in the shutdown event handler. Signed-off-by: Jim Fehlig jfeh...@suse.com --- src/libxl/libxl_driver.c | 83

[libvirt] [PATCH 2/4] libxl: queue domain event earlier in shutdown handler

2014-02-20 Thread Jim Fehlig
The shutdown handler may restart a domain when handling a reboot event or when on_* is set to 'restart'. Restarting consists of calling libxlVmCleanup followed by libxlVmStart. libxlVmStart will emit a VIR_DOMAIN_EVENT_STARTED event, but the SHUTDOWN event is not emitted until exiting the

[libvirt] [PATCH 4/4] libxl: handle on_crash coredump actions

2014-02-20 Thread Jim Fehlig
Add support for coredump-{destroy,restart} actions of on_crash event. Signed-off-by: Jim Fehlig jfeh...@suse.com --- src/libxl/libxl_driver.c | 50 1 file changed, 50 insertions(+) diff --git a/src/libxl/libxl_driver.c b/src/libxl/libxl_driver.c

[libvirt] [PATCH 3/4] libxl: add dump dir to libxlDriverConfig object

2014-02-20 Thread Jim Fehlig
Signed-off-by: Jim Fehlig jfeh...@suse.com --- Without a libxl config file, I suppose the only thing needed here is the #define in libxl_conf.h. But I have a dusty series adding lockd support to the libxl driver, which I'll be cleaning off soon. That series introduces libxl.conf, and can be

Re: [libvirt] [libvirt-users] event-test.py cannot detects domain shutdown

2014-02-20 Thread Jim Fehlig
Jim Fehlig wrote: Cole Robinson wrote: On 02/18/2014 10:45 PM, Jim Fehlig wrote: Cole Robinson wrote: On 02/18/2014 05:12 AM, Kim Larry wrote: The thing I found today is that if libvirt uses xend driver, shutdown events are delivered, but

[libvirt] Question about building libvirt.so

2014-02-20 Thread vikhyath reddy
Hi, Thanks for libvirt. It is a life saver. I am in the process of writing some custom wrappers for libvirt so that it can be easily accessed from nodejs using the nodejs-ffi interfacing (basically describes a way to convert nodejs to c calls). I did write the wrapper on the lines of the examples

[libvirt] [PATCH] maint: update to latest gnulib

2014-02-20 Thread Eric Blake
Among other things, gnulib now allows overriding of sed during 'make syntax-check'. * .gnulib: Update to latest, for maint.mk improvements. Signed-off-by: Eric Blake ebl...@redhat.com --- Pushing under the maintainer rule, before we freeze. I still need to revive Roman's work on using $(SED)

Re: [libvirt] [PATCH 1/4] libxl: honor domain lifecycle event configuration

2014-02-20 Thread Jim Fehlig
Jim Fehlig wrote: The libxl driver was ignoring the on_* domain event configuration, causing e.g. a domain to be rebooted even when on_reboot is set to destroy. This patch honors the on_* configuration in the shutdown event handler. Signed-off-by: Jim Fehlig jfeh...@suse.com ---

Re: [libvirt] [PATCH] virsh: fix memory leak in virsh when starting a guest with invalid fd

2014-02-20 Thread Jincheng Miao
- Original Message - On 02/20/2014 02:29 AM, Jincheng Miao wrote: When start a guest with --pass-fd, if the argument of --pass-fd is invalid, virsh will exit, but doesn't free the variable 'dom'. +++ b/tools/virsh-domain.c @@ -3428,11 +3428,11 @@ cmdStart(vshControl *ctl,

Re: [libvirt] [libvirt-python PATCH] generator: Skip exporting only sentinels

2014-02-20 Thread Martin Kletzander
On Thu, Feb 20, 2014 at 04:19:54PM +, Daniel P. Berrange wrote: On Thu, Feb 20, 2014 at 05:15:08PM +0100, Martin Kletzander wrote: When enum type has '_LAST' in its name, but is not the last type in that enum, it's skipped even though it shouldn't be. Currently, this is the case for