[libvirt] [PATCH 2/5] network: implement RPC calls for virNetworkDefineXMLFlags

2012-08-20 Thread Laine Stump
This is very short, becaquse almost everything is autogenerated. All that's needed are: * src/remote/remote_driver.c: add pointer to autogenerated remoteNetworkDefineXMLFlags to the function table for the remote network driver. * src/remote/remote_protocol.x: add the args and ret structs

[libvirt] [PATCH 0/5] network: define new API virNetworkDefineXMLFlags

2012-08-20 Thread Laine Stump
I would like to enhance libvirt's network API to allow enacting any changes in definition immediately, as an alternative to the current behavior of saving the changes right away, but not using them until the next time the network is destroyed and re-started. This could easily be handled by a flag

[libvirt] [PATCH 5/5] virsh: use new virNetworkDefineXMLFlags when available.

2012-08-20 Thread Laine Stump
Currently there is no practical difference between this and using the old virNetworkDefinXML API, it just allows using the new API to make sure it's working. Soon there will be a flag defined for the new function (to request changes in re-definitions of existing+active networks take effect

[libvirt] [PATCH 1/5] network: define new API virNetworkDefineXMLFlags

2012-08-20 Thread Laine Stump
We need to be able to pass a flag when (re)defining a network that says to enact the changes immediately rather than waiting until the next restart of the network, but the existing virNetworkDefineXML has no flags arg. This patch adds a new public API virNetworkDefineXMLFlags that will be

[libvirt] [PATCH 4/5] network: implement virNetworkDefineXMLFlags for test_driver

2012-08-20 Thread Laine Stump
Just add an entry to the function table, rename the original virNetworkDefineXML to virNetworkDefineXMLFlags (with a check for flags == 0), and add a one line replacement for virNetworkDefineXML. --- src/test/test_driver.c | 14 +- 1 file changed, 13 insertions(+), 1

[libvirt] [PATCH 3/5] network: implement virNetworkDefineXMLFlags for bridge_driver

2012-08-20 Thread Laine Stump
Just add an entry to the function table, rename the original virNetworkDefineXML to virNetworkDefineXMLFlags (with a check for flags == 0), and add a one line replacement for virNetworkDefineXML that calls virNetworkDefineXMLFlags. --- src/network/bridge_driver.c | 14 +- 1 file

Re: [libvirt] [PATCH 1/7] Add @seconds vaiable to qemuAgentSend()

2012-08-20 Thread Martin Kletzander
On 08/20/2012 02:10 AM, MATSUDA, Daiki wrote: (2012/08/16 21:58), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: Add @seconds variable to qemuAgentSend(). When @tiemout is true, @seconds controls how long to wait for a response (if @seconds is

Re: [libvirt] [PATCH 3/7] add virAgentCommand()

2012-08-20 Thread Martin Kletzander
On 08/20/2012 02:16 AM, MATSUDA, Daiki wrote: (2012/08/16 22:13), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: [...] +char * +virAgentCommand(virDomainPtr domain, +const char *cmd, +int timeout, +unsigned int flags)

Re: [libvirt] [PATCH 5/7] add qemuAgentCommand() for .qemuAgentCommand to remote driver

2012-08-20 Thread Martin Kletzander
On 08/20/2012 02:20 AM, MATSUDA, Daiki wrote: (2012/08/16 22:25), Martin Kletzander wrote: On 08/15/2012 03:36 AM, MATSUDA Daiki wrote: diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 353a153..3c60709 100644 --- a/src/remote/remote_driver.c +++

[libvirt] [PATCH] fix make syntak error

2012-08-20 Thread Wen Congyang
We move the macro vshStrcasecmp from tools/virsh.c to tools/virsh.h after commit c2e494cc, so we should not check strcase* in the file tools/virsh.h. Some macros are not properly indented in the file tools/virsh.h and tools/virsh-domain.h. This patch also fixes this problem. --- cfg.mk

Re: [libvirt] [PATCHv4 0/2] Rework of Disk Geometry Support

2012-08-20 Thread Viktor Mihajlovski
On 08/17/2012 03:33 PM, Viktor Mihajlovski wrote: With qemu it is possible to override the geometry (cylinders, heads, sectors) of disks. This series adds a new XML tag for geometry and the related support in the qemu driver. V2 Changes: Refactor into the generic domain configuration/XML

[libvirt] [PATCHv5 0/2] *** SUBJECT HERE ***

2012-08-20 Thread Viktor Mihajlovski
*** BLURB HERE *** J.B. Joret (2): Support for Disk Geometry Override qemu: Disk Geometry Override Support docs/formatdomain.html.in | 25 +++ docs/schemas/domaincommon.rng | 25 +++ src/conf/domain_conf.c

[libvirt] [PATCHv5 1/2] Support for Disk Geometry Override

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com A hypervisor may allow to override the disk geometry of drives. Qemu, as an example with cyls=,heads=,secs=[,trans=]. This patch extends the domain config to allow the specification of disk geometry with libvirt. V2 Changes: Split out qemu specific code,

[libvirt] [PATCHv5 0/2] Rework of Disk Geometry Support

2012-08-20 Thread Viktor Mihajlovski
With qemu it is possible to override the geometry (cylinders, heads, sectors) of disks. This series adds a new XML tag for geometry and the related support in the qemu driver. V2 Changes: Refactor into the generic domain configuration/XML support for disk geometry and a qemu specific part with

[libvirt] [PATCHv5 2/2] qemu: Disk Geometry Override Support

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com Qemu command line generation for geometry override and testcases. V2 Changes: squashed qemu code and testcases. V3 Changes: use virReportError. V4 Changes: rebase V5 Changes: Fixed test invocation for geometry. Signed-off-by: J.B. Joret

Re: [libvirt] [PATCH] fix make syntak error

2012-08-20 Thread Peter Krempa
On 08/20/12 10:11, Wen Congyang wrote: in subject: s/syntak/syntax-check/ We move the macro vshStrcasecmp from tools/virsh.c to tools/virsh.h s/move/moved/ after commit c2e494cc, so we should not check strcase* in the file tools/virsh.h. Some macros are not properly indented in the file

Re: [libvirt] [PATCH 12/23] Add JSON serialization of virLockSpacePtr objects for process re-exec()

2012-08-20 Thread Daniel P. Berrange
On Fri, Aug 17, 2012 at 11:25:37AM -0600, Eric Blake wrote: On 08/16/2012 05:07 PM, Eric Blake wrote: On 08/09/2012 09:20 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add two new APIs virLockSpaceNewPostExecRestart and virLockSpacePreExecRestart which allow

Re: [libvirt] [PATCH] selinux: Fix incorrect file label generation.

2012-08-20 Thread Daniel P. Berrange
On Fri, Aug 17, 2012 at 02:53:29PM +0200, Viktor Mihajlovski wrote: This is an ad-hoc fix for the file label generation. It uses the base context role to determine whether to use the libvirt process context role. If this is object_r we don't touch it. It might be better to add a new flag to

Re: [libvirt] [PATCH 0/5] add usb redirection filter support

2012-08-20 Thread Daniel P. Berrange
On Sun, Aug 19, 2012 at 11:42:43PM +0800, Guannan Ren wrote: BZ RFE https://bugzilla.redhat.com/show_bug.cgi?id=795929 qemu support: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=6af165892cf900291046f1d25f95416f379504c2 Since qemu has have the code to support USB redirection filter. This

[libvirt] [test-API][PATCH] utils: Update remote_exec_pexpect function and sync cases

2012-08-20 Thread Wayne Sun
After delete duplicate remote_exec_pexect function, the left function with same name causes some problem with cases, so update the function and sync all cases using it. Signed-off-by: Wayne Sun g...@redhat.com --- repos/domain/cpu_topology.py|8 +++--- repos/domain/define.py |

Re: [libvirt] [PATCH 1/5] network: define new API virNetworkDefineXMLFlags

2012-08-20 Thread Osier Yang
On 2012年08月20日 14:17, Laine Stump wrote: We need to be able to pass a flag when (re)defining a network that says to enact the changes immediately rather than waiting until the next restart of the network, but the existing virNetworkDefineXML has no flags arg. This patch adds a new public API

Re: [libvirt] [PATCH 2/5] network: implement RPC calls for virNetworkDefineXMLFlags

2012-08-20 Thread Osier Yang
On 2012年08月20日 14:17, Laine Stump wrote: This is very short, becaquse almost everything is autogenerated. All that's needed are: * src/remote/remote_driver.c: add pointer to autogenerated remoteNetworkDefineXMLFlags to the function table for the remote network driver. *

Re: [libvirt] [PATCH 4/5] network: implement virNetworkDefineXMLFlags for test_driver

2012-08-20 Thread Osier Yang
On 2012年08月20日 14:17, Laine Stump wrote: Just add an entry to the function table, rename the original virNetworkDefineXML to virNetworkDefineXMLFlags (with a check for flags == 0), and add a one line replacement for virNetworkDefineXML. --- src/test/test_driver.c | 14

Re: [libvirt] [PATCH 3/5] network: implement virNetworkDefineXMLFlags for bridge_driver

2012-08-20 Thread Osier Yang
On 2012年08月20日 14:17, Laine Stump wrote: Just add an entry to the function table, rename the original virNetworkDefineXML to virNetworkDefineXMLFlags (with a check for flags == 0), and add a one line replacement for virNetworkDefineXML that calls virNetworkDefineXMLFlags. ---

Re: [libvirt] [PATCH 5/5] virsh: use new virNetworkDefineXMLFlags when available.

2012-08-20 Thread Osier Yang
On 2012年08月20日 14:17, Laine Stump wrote: Currently there is no practical difference between this and using the old virNetworkDefinXML API, it just allows using the new API to make sure it's working. Soon there will be a flag defined for the new function (to request changes in re-definitions of

Re: [libvirt] [PATCHv5 0/2] Rework of Disk Geometry Support

2012-08-20 Thread Viktor Mihajlovski
Messed up during send-email. Please ignore this one, I'll send out a fresh set. -- Mit freundlichen Grüßen/Kind Regards Viktor Mihajlovski IBM Deutschland Research Development GmbH Vorsitzender des Aufsichtsrats: Martin Jetter Geschäftsführung: Dirk Wittkopp Sitz der Gesellschaft:

[libvirt] [PATCH] selinux: Fix incorrect object label generation.

2012-08-20 Thread Viktor Mihajlovski
This is a fix for the object label generation. It uses a new flag for virSecuritySELinuxGenNewContext that specifies whether the context is for an object. If so the context role remains unchanged. Without this fix it is not possible to start domains with image file or block device backed storage

[libvirt] [PATCHv5 2/2] qemu: Disk Geometry Override Support

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com Qemu command line generation for geometry override and testcases. V2 Changes: squashed qemu code and testcases. V3 Changes: use virReportError. V4 Changes: rebase V5 Changes: Fixed test invocation for geometry. Signed-off-by: J.B. Joret

[libvirt] [PATCHv5 1/2] Support for Disk Geometry Override

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com A hypervisor may allow to override the disk geometry of drives. Qemu, as an example with cyls=,heads=,secs=[,trans=]. This patch extends the domain config to allow the specification of disk geometry with libvirt. V2 Changes: Split out qemu specific code,

Re: [libvirt] [PATCH] selinux: Fix incorrect object label generation.

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 01:52:16PM +0200, Viktor Mihajlovski wrote: This is a fix for the object label generation. It uses a new flag for virSecuritySELinuxGenNewContext that specifies whether the context is for an object. If so the context role remains unchanged. Without this fix it is not

[libvirt] [PATCHv5 0/2] Rework of Disk Geometry Support

2012-08-20 Thread Viktor Mihajlovski
With qemu it is possible to override the geometry (cylinders, heads, sectors) of disks. This series adds a new XML tag for geometry and the related support in the qemu driver. V2 Changes: Refactor into the generic domain configuration/XML support for disk geometry and a qemu specific part with

Re: [libvirt] [PATCHv5 1/2] Support for Disk Geometry Override

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 01:58:24PM +0200, Viktor Mihajlovski wrote: From: J.B. Joret j...@linux.vnet.ibm.com A hypervisor may allow to override the disk geometry of drives. Qemu, as an example with cyls=,heads=,secs=[,trans=]. This patch extends the domain config to allow the specification

Re: [libvirt] [PATCHv5 2/2] qemu: Disk Geometry Override Support

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 01:58:25PM +0200, Viktor Mihajlovski wrote: From: J.B. Joret j...@linux.vnet.ibm.com Qemu command line generation for geometry override and testcases. V2 Changes: squashed qemu code and testcases. V3 Changes: use virReportError. V4 Changes: rebase V5

Re: [libvirt] [PATCH] fix make syntak error

2012-08-20 Thread Eric Blake
On 08/20/2012 02:11 AM, Wen Congyang wrote: We move the macro vshStrcasecmp from tools/virsh.c to tools/virsh.h after commit c2e494cc, so we should not check strcase* in the file tools/virsh.h. Some macros are not properly indented in the file tools/virsh.h and tools/virsh-domain.h. This

Re: [libvirt] [PATCH 1/5] network: define new API virNetworkDefineXMLFlags

2012-08-20 Thread Eric Blake
On 08/20/2012 12:17 AM, Laine Stump wrote: We need to be able to pass a flag when (re)defining a network that says to enact the changes immediately rather than waiting until the next restart of the network, but the existing virNetworkDefineXML has no flags arg. This patch adds a new public

Re: [libvirt] [PATCH] fix make syntak error

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 06:46:58AM -0600, Eric Blake wrote: On 08/20/2012 02:11 AM, Wen Congyang wrote: We move the macro vshStrcasecmp from tools/virsh.c to tools/virsh.h after commit c2e494cc, so we should not check strcase* in the file tools/virsh.h. Some macros are not properly

Re: [libvirt] [PATCH 3/5] network: implement virNetworkDefineXMLFlags for bridge_driver

2012-08-20 Thread Eric Blake
On 08/20/2012 12:17 AM, Laine Stump wrote: Just add an entry to the function table, rename the original virNetworkDefineXML to virNetworkDefineXMLFlags (with a check for flags == 0), and add a one line replacement for virNetworkDefineXML that calls virNetworkDefineXMLFlags. ---

Re: [libvirt] [PATCH 6/4] virsh: use coming namespacing

2012-08-20 Thread Eric Blake
On 08/20/2012 04:14 AM, Osier Yang wrote: On 2012年08月19日 12:10, Eric Blake wrote: Convert the exported items in virsh.h to use a common 'vsh' prefix. ACK. Thanks; pushed. More to come... -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt virtualization library

[libvirt] [PATCH 3/5] Introduce a test suite for the JSON monitor

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Take advantage of the previously added monitor helpers to create a test suite for the QEMU JSON monitor impl. As a proof of concept, this tests the 'qemuMonitorGetStatus' implementation --- .gitignore | 1 + tests/Makefile.am

[libvirt] [PATCH 0/5] More QEMU JSON commands a test suite

2012-08-20 Thread Daniel P. Berrange
This series adds support for some new QEMU JSON monitor commands that will be used to replace -help parsing. It also adds a framework for testing QEMU monitor command implementations -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework that can do this. The test case registers a series of items to be sent back as replies to commands that will be executed. A

[libvirt] [PATCH 1/5] Add non-null annotations to qemuMonitorOpen

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Add some non-null annotations to qemuMonitorOpen and also check that the error callback is set, since it is mandatory --- src/qemu/qemu_monitor.c | 7 ++- src/qemu/qemu_monitor.h | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff

[libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Add a new qemuMonitorGetMachines() method to support invocation of the 'query-machines' JSON monitor command. No HMP equivalent is required, since this will only be present for QEMU = 1.2 --- src/qemu/qemu_monitor.c | 30 +

[libvirt] [PATCH 4/5] Add a qemuMonitorGetVersion() method for query-version command

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com Add a new qemuMonitorGetVersion() method to support invocation of the 'query-version' JSON monitor command. No HMP equivalent is provided, since this will only be used for QEMU = 1.2 --- src/qemu/qemu_monitor.c | 24 ++

[libvirt] [PATCHv6 1/2] Support for Disk Geometry Override

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com A hypervisor may allow to override the disk geometry of drives. Qemu, as an example with cyls=,heads=,secs=[,trans=]. This patch extends the domain config to allow the specification of disk geometry with libvirt. V2 Changes: Split out qemu specific code,

[libvirt] [PATCHv6 2/2] qemu: Disk Geometry Override Support

2012-08-20 Thread Viktor Mihajlovski
From: J.B. Joret j...@linux.vnet.ibm.com Qemu command line generation for geometry override and testcases. V2 Changes: squashed qemu code and testcases. V3 Changes: use virReportError. V4 Changes: rebase V5 Changes: Fixed test invocation for geometry. V6 Changes: Remove conditional geometry

[libvirt] [PATCH 7/4] virsh: split out virsh-domain-monitor.c

2012-08-20 Thread Eric Blake
Another file worth compiling on its own instead of by .c inclusion. * tools/virsh-domain-monitor.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.h (vshGetDomainDescription): Move to correct header. * tools/virsh-domain-monitor.c: Use new header. * tools/virsh.c:

Re: [libvirt] [PATCHv5 2/2] qemu: Disk Geometry Override Support

2012-08-20 Thread Viktor Mihajlovski
On 08/20/2012 02:06 PM, Daniel P. Berrange wrote: On Mon, Aug 20, 2012 at 01:58:25PM +0200, Viktor Mihajlovski wrote: From: J.B. Joret j...@linux.vnet.ibm.com Qemu command line generation for geometry override and testcases. V2 Changes: squashed qemu code and testcases. V3 Changes: use

[libvirt] [PATCHv6 0/2] Rework of Disk Geometry Support

2012-08-20 Thread Viktor Mihajlovski
With qemu it is possible to override the geometry (cylinders, heads, sectors) of disks. This series adds a new XML tag for geometry and the related support in the qemu driver. V2 Changes: Refactor into the generic domain configuration/XML support for disk geometry and a qemu specific part with

Re: [libvirt] [PATCH 1/5] Add non-null annotations to qemuMonitorOpen

2012-08-20 Thread Eric Blake
On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add some non-null annotations to qemuMonitorOpen and also check that the error callback is set, since it is mandatory --- src/qemu/qemu_monitor.c | 7 ++- src/qemu/qemu_monitor.h | 3 ++- 2

Re: [libvirt] [PATCH] selinux: Fix incorrect object label generation.

2012-08-20 Thread Viktor Mihajlovski
On 08/20/2012 02:01 PM, Daniel P. Berrange wrote: On Mon, Aug 20, 2012 at 01:52:16PM +0200, Viktor Mihajlovski wrote: ACK Daniel there was make syntax-check error (trailing blank) which I missed :-(. Resending the patch. -- Mit freundlichen Grüßen/Kind Regards Viktor Mihajlovski

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Eric Blake
On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework that can do this. The test case registers a series of items to be

[libvirt] [PATCHv2] selinux: Fix incorrect object label generation.

2012-08-20 Thread Viktor Mihajlovski
This is a fix for the object label generation. It uses a new flag for virSecuritySELinuxGenNewContext that specifies whether the context is for an object. If so the context role remains unchanged. Without this fix it is not possible to start domains with image file or block device backed storage

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 08:11:14AM -0600, Eric Blake wrote: On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com To be able to test the QEMU monitor code, we need to have a fake QEMU monitor server. This introduces a simple (dumb) framework

[libvirt] [PATCH] maint: prohibit translations in testsuite

2012-08-20 Thread Eric Blake
Nothing in the testsuite or examples directory should be translated, as it is not part of the normally installed binary. We already meet this rule, but enforcing it will make it easier to remember. Suggested by Daniel P. Berrange. * cfg.mk (sc_prohibit_useless_translation): Enhance rule. ---

Re: [libvirt] [PATCH 2/5] Add helper library for testing the qemu monitor code

2012-08-20 Thread Eric Blake
On 08/20/2012 08:13 AM, Daniel P. Berrange wrote: exclude_file_name_regexp--sc_libvirt_unmarked_diagnostics = \ - ^src/rpc/gendispatch\.pl$$ + ^(src/rpc/gendispatch\.pl$$|tests/) A rather heavy hammer for just one added test, but makes sense (tests aren't installed, so translating them is

Re: [libvirt] [PATCH 5/5] virsh: use new virNetworkDefineXMLFlags when available.

2012-08-20 Thread Laine Stump
On 08/20/2012 06:46 AM, Osier Yang wrote: On 2012年08月20日 14:17, Laine Stump wrote: Currently there is no practical difference between this and using the old virNetworkDefinXML API, it just allows using the new API to make sure it's working. Soon there will be a flag defined for the new

Re: [libvirt] [PATCH] maint: prohibit translations in testsuite

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 08:30:07AM -0600, Eric Blake wrote: Nothing in the testsuite or examples directory should be translated, as it is not part of the normally installed binary. We already meet this rule, but enforcing it will make it easier to remember. Suggested by Daniel P. Berrange.

[libvirt] [PATCH libvirt-glib] Don't hold events lock when dispatching free callbacks

2012-08-20 Thread Daniel P. Berrange
From: Daniel P. Berrange berra...@redhat.com The _event_timeout_remove and _event_handle_remove methods were holding onto the global lock when invoking the free callback. This is a violation of the libvirt events API contract which requires free callbacks to be invoked in a re-entrant safe

Re: [libvirt] [PATCH] maint: prohibit translations in testsuite

2012-08-20 Thread Eric Blake
On 08/20/2012 08:33 AM, Daniel P. Berrange wrote: On Mon, Aug 20, 2012 at 08:30:07AM -0600, Eric Blake wrote: Nothing in the testsuite or examples directory should be translated, as it is not part of the normally installed binary. We already meet this rule, but enforcing it will make it

Re: [libvirt] [Libvirt-announce] ANNOUNCE: libvirt 0.9.11.5 maintenance release

2012-08-20 Thread Eric Blake
On 08/13/2012 04:37 PM, Cole Robinson wrote: libvirt 0.9.11.5 maintenance release is now available. This is libvirt 0.9.11 with additional bugfixes that have accumulated upstream since the initial release. This release can be downloaded at:

[libvirt] [PATCH] virsh: drop unused headers

2012-08-20 Thread Eric Blake
The previous commit now trips up 'make syntax-check' due to a useless use of signal.h. * tools/virsh.c (includes): Drop useless includes. --- Pushing under the build-breaker rule. tools/virsh.c | 4 1 file changed, 4 deletions(-) diff --git a/tools/virsh.c b/tools/virsh.c index

Re: [libvirt] [PATCHv2] selinux: Fix incorrect object label generation.

2012-08-20 Thread Eric Blake
On 08/20/2012 08:12 AM, Viktor Mihajlovski wrote: This is a fix for the object label generation. It uses a new flag for virSecuritySELinuxGenNewContext that specifies whether the context is for an object. If so the context role remains unchanged. Without this fix it is not possible to start

Re: [libvirt] [PATCH 4/5] Add a qemuMonitorGetVersion() method for query-version command

2012-08-20 Thread Eric Blake
On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add a new qemuMonitorGetVersion() method to support invocation of the 'query-version' JSON monitor command. No HMP equivalent is provided, since this will only be used for QEMU = 1.2 ---

Re: [libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Eric Blake
On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add a new qemuMonitorGetMachines() method to support invocation of the 'query-machines' JSON monitor command. No HMP equivalent is required, since this will only be present for QEMU = 1.2 ---

Re: [libvirt] [PATCH 4/5] Add a qemuMonitorGetVersion() method for query-version command

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 10:29:39AM -0600, Eric Blake wrote: On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: From: Daniel P. Berrange berra...@redhat.com Add a new qemuMonitorGetVersion() method to support invocation of the 'query-version' JSON monitor command. No HMP equivalent is

Re: [libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 11:00:28AM -0600, Eric Blake wrote: On 08/20/2012 10:57 AM, Daniel P. Berrange wrote: +if (STRNEQ_NULLABLE(info[i]-alias, (wantalias))) { \ +virReportError(VIR_ERR_INTERNAL_ERROR, \ +

Re: [libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Daniel P. Berrange
On Mon, Aug 20, 2012 at 10:54:47AM -0600, Eric Blake wrote: On 08/20/2012 07:49 AM, Daniel P. Berrange wrote: +++ b/tests/qemumonitorjsontest.c @@ -224,6 +224,81 @@ cleanup: } static int +testQemuMonitorJSONGetMachines(const void *data) +{ +virCapsPtr caps =

Re: [libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Eric Blake
On 08/20/2012 10:57 AM, Daniel P. Berrange wrote: +if (STRNEQ_NULLABLE(info[i]-alias, (wantalias))) { \ +virReportError(VIR_ERR_INTERNAL_ERROR, \ + alias %s is not %s,\ +

Re: [libvirt] [PATCH v4 1/5] Internal refactory of data structures

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This patch updates the structures that store information about each domain and each hypervisor to support multiple security labels and drivers. It also updates all the remaining code to use the new fields. Signed-off-by: Marcelo Cerri

Re: [libvirt] [PATCH v4 5/5] Update the remote API

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This patch updates libvirt's API to allow applications to inspect the full list of security labels of a domain. Signed-off-by: Marcelo Cerri mhce...@linux.vnet.ibm.com --- daemon/remote.c | 63

Re: [libvirt] [PATCH v4 3/5] Update security layer to handle many security labels

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: These changes make the security drivers able to find and handle the correct security label information when more than one label is available. They also update the DAC driver to be used as an usual security driver. Signed-off-by: Marcelo Cerri

Re: [libvirt] [PATCH v4 2/5] Multiple security drivers in XML data

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This patch updates the domain and capability XML parser and formatter to support more than one seclabel element for each domain and device. The RNG schema and the tests related to this are also updated by this patch. Signed-off-by: Marcelo Cerri

Re: [libvirt] [PATCH v4 4/5] Support for multiple default security drivers in QEMU config

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This patch updates the key security_driver in QEMU config to suport both a sigle default driver or a list of default drivers. This ensures that it will remain compatible with older versions of the config file. Signed-off-by: Marcelo Cerri

Re: [libvirt] [PATCH v4 4/5] Support for multiple default security drivers in QEMU config

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This patch updates the key security_driver in QEMU config to suport both a sigle default driver or a list of default drivers. This ensures that it will remain compatible with older versions of the config file. Signed-off-by: Marcelo Cerri

Re: [libvirt] [PATCH v4 0/5] Per-guest configurable user/group for QEMU processes

2012-08-20 Thread Michal Privoznik
On 16.08.2012 00:10, Marcelo Cerri wrote: This is a v4 patch series that updates the libvirt's security driver mechanism to support per-guest configurable user and group for QEMU processes running together with other security drivers, such as SELinux and AppArmor. Marcelo Cerri (5):

[libvirt] [ANNOUNCE] libvirt-glib 0.1.2 release

2012-08-20 Thread Daniel P. Berrange
I am pleased to announce that a new release of the libvirt-glib package, version 0.1.2, is now available from ftp://libvirt.org/libvirt/glib/ The packages are GPG signed with Key fingerprint: DAF3 A6FD B26B 6291 2D0E 8E3F BE86 EBB4 1510 4FDF (4096R) New in this release: - Add async

[libvirt] [PATCH] Refactor ESX storage driver and add iSCSI support

2012-08-20 Thread Ata E Husain Bohra
Resent of http://www.redhat.com/archives/libvir-list/2012-August/msg01353.html. Merging recent branch updates to this patch. Ata E Husain Bohra (1): Refactor ESX storage driver and add iSCSI support src/Makefile.am | 16 +- src/esx/esx_driver.c|4 +-

Re: [libvirt] [PATCH 5/5] Add a qemuMonitorGetMachines() method for query-machines command

2012-08-20 Thread Eric Blake
On 08/20/2012 11:00 AM, Eric Blake wrote: On 08/20/2012 10:57 AM, Daniel P. Berrange wrote: +CHECK(0, pc-1.0, false, null); Can't you just s/null/NULL/ and avoid the intermediate variable? I hit some GCC-wierdness when doing that: CC qemumonitorjsontest-qemumonitorjsontest.o

[libvirt] [PATCH] build: silence stupid gcc warning on STREQ_NULLABLE

2012-08-20 Thread Eric Blake
Our existing STRNEQ_NULLABLE() triggered a warning in gcc 4.7 when used with a literal NULL argument: qemumonitorjsontest.c: In function 'testQemuMonitorJSONGetMachines': qemumonitorjsontest.c:289:5: error: null argument where non-null required (argument 1) [-Werror=nonnull] even though the

[libvirt] [PATCH 8/4] virsh: split out virsh-host.c

2012-08-20 Thread Eric Blake
The splits are getting easier, with fewer cleanups needed in virsh.h. * tools/virsh-host.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh-host.c: Use new header. * tools/virsh.c: Likewise. --- tools/Makefile.am | 2 +- tools/virsh-host.c | 16 +++-

[libvirt] IVSHMEM support

2012-08-20 Thread Shawn Furrow
Hi all, Does anyone know if Libvirt supports shared memory devices such as IVSHMEM. I know it didn't at one point but I didn't know if support for it had been recently added. Thanks, Shawn -- Virginia Tech Bradley Department of Electrical and Computer Engineering B.S. Electrical Engineering

[libvirt] [PATCH 9/4] virsh: declare more common functions

2012-08-20 Thread Eric Blake
In preparation for splitting virsh-interface.c, I found these functions need to be declared in virsh.h, as well as one that belongs more properly in virsh-domain.h. * tools/virsh.h (vshNameSorter, vshCmdHasOption): Declare. (vshCommandOptDomainBy): Move... * tools/virsh-domain.h): ...here. *

[libvirt] [libguestfs] Options for hotplugging

2012-08-20 Thread Richard W.M. Jones
libguestfs recently added support for virtio-scsi and libvirt, and when these are both available this lets us relatively easily add hotplugging of drives. This email is about how we would present that through the libguestfs API. (a) The current API Currently you have to add drive(s) via

[libvirt] [PATCHv2 9/4] virsh: declare more common functions

2012-08-20 Thread Eric Blake
In preparation for splitting virsh-interface.c, I found these functions need to be declared in virsh.h, as well as one that belongs more properly in virsh-domain.h. Also, since we use the VSH_BY* flags in more than one function, I improved how they are used. * tools/virsh.h (vshNameSorter,

[libvirt] [PATCH 10/4] virsh: split out virsh-interface.c

2012-08-20 Thread Eric Blake
Another relatively easy split, since helper functions were fixed in the previous patch. * tools/virsh-interface.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-interface.c: Likewise. (vshCommandOptInterfaceBy): Check flags. ---

[libvirt] [PATCH 11/4] virsh: split out virsh-network.c

2012-08-20 Thread Eric Blake
Another relatively easy file split. * tools/virsh-network.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-network.c: Likewise. --- tools/Makefile.am | 2 +- tools/virsh-network.c | 29 -

[libvirt] [PATCH 12/4] virsh: split out virsh-nodedev.c

2012-08-20 Thread Eric Blake
Another worthwhile split, needed one more public function. * tools/virsh-nodedev.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh-nodedev.c: Use new header. * tools/virsh.c: Likewise. (vshTreePrint): Export. * tools/virsh.h (vshTreePrint): Declare. --- tools/Makefile.am

[libvirt] [PATCH 13/4] virsh: split out virsh-nodedev.c

2012-08-20 Thread Eric Blake
Another worthwhile split, needed one more public function. * tools/virsh-nodedev.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh-nodedev.c: Use new header. * tools/virsh.c: Likewise. (vshTreePrint): Export. * tools/virsh.h (vshTreePrint): Declare. --- tools/Makefile.am

[libvirt] [PATCH 14/4] virsh: split out virsh-nwfilter.c

2012-08-20 Thread Eric Blake
Yet another split file. * tools/virsh-network.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-nwfilter.c: Likewise. --- tools/Makefile.am | 2 +- tools/virsh-nwfilter.c | 31 +-- tools/virsh-nwfilter.h |

[libvirt] [PATCH 15/4] virsh: split out virsh-pool.c

2012-08-20 Thread Eric Blake
More in a series of file splits. * tools/virsh-pool.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-pool.c: Likewise. --- tools/Makefile.am | 2 +- tools/virsh-pool.c | 28 +++- tools/virsh-pool.h | 42

[libvirt] [PATCH 16/4] virsh: split out virsh-secret.c

2012-08-20 Thread Eric Blake
One of the simpler splits. * tools/virsh-secret.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-secret.c: Likewise. --- tools/Makefile.am| 2 +- tools/virsh-secret.c | 17 - tools/virsh-secret.h | 33

[libvirt] [PATCH 17/4] virsh: split out virsh-snapshot.c

2012-08-20 Thread Eric Blake
Almost done with the splits. * tools/virsh-snapshot.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-snapshot.c: Likewise. --- tools/Makefile.am | 2 +- tools/virsh-snapshot.c | 21 +++-- tools/virsh-snapshot.h | 33

[libvirt] [PATCH 18/4] virsh: split out virsh-volume.c

2012-08-20 Thread Eric Blake
Last of the file splits. * tools/virsh-volume.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-volume.c: Likewise. --- tools/Makefile.am| 3 +-- tools/virsh-volume.c | 36 +--- tools/virsh-volume.h |

[libvirt] building on RHEL 5 currently broken

2012-08-20 Thread Eric Blake
Just a quick heads-up (I'll fix it later, when I have more time): I just learned commit 350583c85 broke builds on RHEL 5, because of the use of AS_VERSION_COMPARE in configure.ac which was not available in older autoconf 2.59. -- Eric Blake ebl...@redhat.com+1-919-301-3266 Libvirt

Re: [libvirt] [PATCH 0/5] add usb redirection filter support

2012-08-20 Thread Guannan Ren
On 08/20/2012 06:06 PM, Daniel P. Berrange wrote: On Sun, Aug 19, 2012 at 11:42:43PM +0800, Guannan Ren wrote: BZ RFE https://bugzilla.redhat.com/show_bug.cgi?id=795929 qemu support: http://git.qemu.org/?p=qemu.git;a=commitdiff;h=6af165892cf900291046f1d25f95416f379504c2 Since qemu has have the

Re: [libvirt] [PATCH 8/4] virsh: split out virsh-host.c

2012-08-20 Thread Laine Stump
On 08/20/2012 04:13 PM, Eric Blake wrote: The splits are getting easier, with fewer cleanups needed in virsh.h. * tools/virsh-host.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh-host.c: Use new header. * tools/virsh.c: Likewise. --- tools/Makefile.am | 2 +-

Re: [libvirt] [PATCH 9/4] virsh: declare more common functions

2012-08-20 Thread Laine Stump
On 08/20/2012 04:54 PM, Eric Blake wrote: In preparation for splitting virsh-interface.c, I found these functions need to be declared in virsh.h, as well as one that belongs more properly in virsh-domain.h. * tools/virsh.h (vshNameSorter, vshCmdHasOption): Declare.

Re: [libvirt] [PATCHv2 9/4] virsh: declare more common functions

2012-08-20 Thread Laine Stump
On 08/20/2012 05:30 PM, Eric Blake wrote: In preparation for splitting virsh-interface.c, I found these functions need to be declared in virsh.h, as well as one that belongs more properly in virsh-domain.h. Also, since we use the VSH_BY* flags in more than one function, I improved how they

Re: [libvirt] [PATCH 10/4] virsh: split out virsh-interface.c

2012-08-20 Thread Laine Stump
On 08/20/2012 05:37 PM, Eric Blake wrote: Another relatively easy split, since helper functions were fixed in the previous patch. * tools/virsh-interface.h: New file. * tools/Makefile.am (virsh_SOURCES): Build it. * tools/virsh.c: Use new header. * tools/virsh-interface.c: Likewise.

  1   2   >