[libvirt] [FYI] Skript to extract qcow2 snapshot info to libvirt snapshot xml

2011-10-19 Thread Philipp Hahn
Hello, I sometimes get foreign qcow2 images with embedded snapshots. Without the corresponding XML files libvirt doesn't recognize them. Therefor I created the attached script to fake-create the missing snapshot XML files. Be advised that the XML files might not work in all cases, especially whe

Re: [libvirt] [PATCHv2] snapshot: detect when qemu lacks disk-snapshot support

2011-10-19 Thread lvroyce
Tested by: Royce Lv Patch works as expected: tested with cmd "snapshot-create domain_name --disk-only" (1)when without hmp cmd support ,snapshot failed,0 size source file deleted (2)when source file creating failed,no snapshot taken and no crash with "need_unlink" flag set -- libvir-list mail

[libvirt] Plan for the next release

2011-10-19 Thread Daniel Veillard
Hello, I think it's time to plan for the next release, it may be a bit late to target the end of the month but I would think entering freeze around Friday 28 allowing for a release of 0.9.7 around Nov 4th should give people enough time to get reviews and push feeatures in, so unless there is

Re: [libvirt] [PATCHv2 05/13] snapshot: indent domain xml when nesting

2011-10-19 Thread Hai Dong Li
On 10/20/2011 03:08 AM, Peter Krempa wrote: Dňa 29.9.2011 18:22, Eric Blake wrote / napísal(a): is the first public instance of being used as a sub-element, although we have two other private uses (runtime state, and migration cookie). Although indentation has no effect on XML parsing, using

Re: [libvirt] [PATCHv2 04/13] virbuf: add auto-indentation support

2011-10-19 Thread Hai Dong Li
This email is just for your attention. I'm relatively new to work in a community, so I didn't pay much attention to the readability of the comments last email. It seems comments lie in a large patch like this is easily to be omitted. So I cut the codes, leave codes associated with the comments.

[libvirt] [PATCH v2] pci address conflict when virtio disk with drive type

2011-10-19 Thread Xu He Jie
When using the xml as below: -- /home/soulxu/data/work-code/qemu-kvm/x86_64-softmmu/qemu-system-x86_64 -- Then can't startup qemu, the error message as below: virsh # start test

Re: [libvirt] [PATCH] pci address conflict when virtio disk with drive type address

2011-10-19 Thread Xu He Jie
于 2011年10月19日 21:55, Eric Blake 写道: On 10/18/2011 11:32 PM, Xu He Jie wrote: Hmm, you are right. domain_conf didn't separate with different layer. So I found another place that in the qemu layer for the fix. The patch as below: Signed-off-by: Xu He Jie --- src/qemu/qemu_command.c | 10 +++-

Re: [libvirt] [PATCH] compile: fix undefined reference to gnutls_x509_crt_get_dn with gcc-4.6.1

2011-10-19 Thread Xu He Jie
于 2011年10月19日 21:08, Eric Blake 写道: On 10/18/2011 08:06 PM, Xu He Jie wrote: More likely, the difference is not in gcc, but in ld policy - Ubuntu recently changed policy to no longer allow implicit link dependencies by default (that is, if A links against B, and B links against C, older distros

Re: [libvirt] [PATCH 2/4] Add new virDomainShutdownFlags API

2011-10-19 Thread Eric Blake
On 10/19/2011 06:22 PM, MATSUDA, Daiki wrote: diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 83f4f3c..eaf8bbd 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4312,6 +4312,7 @@ static virDriver remote_driver = { .domainSuspend = remoteDomain

Re: [libvirt] [PATCH 0/4] Add support for QEMU guest agent control

2011-10-19 Thread MATSUDA, Daiki
(2011/10/06 2:31), Daniel P. Berrange wrote: The QEMU guest agent "/usr/bin/qemu-ga" has some handy functions for controlling the guest, not least, shutdown/reboot and filesystem freeze/thaw. In Fedora 15/16 the semantics of the ACPI power button have been changed to suspend-to-RAM which breaks

Re: [libvirt] [PATCH 2/4] Add new virDomainShutdownFlags API

2011-10-19 Thread MATSUDA, Daiki
diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 83f4f3c..eaf8bbd 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -4312,6 +4312,7 @@ static virDriver remote_driver = { .domainSuspend = remoteDomainSuspend, /* 0.3.0 */ .domainResume

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread Matthias Bolte
2011/10/19 David Stevens : > > -Matthias Bolte wrote: - > >> >>Well, you miss the point that nwfilters is meant as a general >>firewall >>interface. ebtables/iptables just happens to be an implementation of >>this interface. Using ebtables/iptables specific shell scripts would >>replace th

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread Stefan Berger
On 10/19/2011 04:55 PM, David Stevens wrote: -Stefan Berger wrote: - > >The problem is that at the moment rules (in the 'root' table) can >have priorities [0, 1000]. So nothing prevents one to write a >rule >with priority 0. However, due to how nwfilters works right now >th

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread David Stevens
-Matthias Bolte wrote: ->>Well, you miss the point that nwfilters is meant as a general>firewall>interface. ebtables/iptables just happens to be an implementation of>this interface. Using ebtables/iptables specific shell scripts would>replace the generic interface with something specific t

[libvirt] [PATCH 2/3] Remove vir_ prefix from default signal handler

2011-10-19 Thread Marc-André Lureau
Let's keep the signal and default signal handler name in sync. gobject signals are generally not namespaced this way, removing this prefix makes things look a bit nicer. --- libvirt-gobject/libvirt-gobject-connection.c |8 libvirt-gobject/libvirt-gobject-connection.h |8

[libvirt] [PATCH 3/3] Add gvir_domain_resume()

2011-10-19 Thread Marc-André Lureau
A binding for virDomainResume(). --- libvirt-gobject/libvirt-gobject-domain.c | 21 + libvirt-gobject/libvirt-gobject-domain.h |2 ++ libvirt-gobject/libvirt-gobject.sym |1 + 3 files changed, 24 insertions(+), 0 deletions(-) diff --git a/libvirt-gobject/libvirt

[libvirt] [PATCH 1/3] Add vapi bindings generation

2011-10-19 Thread Marc-André Lureau
--- Makefile.am |2 +- configure.ac| 19 +++ vapi/Makefile.am| 37 + vapi/libvirt-gobject-1.0.deps |1 + vapi/libvirt-gobject-1.0.metada |2 ++ 5 files changed, 60 insertio

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread David Stevens
-Stefan Berger wrote: -    >  >The problem is that at the moment rules (in the 'root' table) can>have priorities [0, 1000]. So nothing prevents one to write a>rule>with priority 0. However, due to how nwfilters works right now>the>jumps into the protocol-specific tables

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-19 Thread Serge E. Hallyn
Quoting Eric Blake (ebl...@redhat.com): > >+VIR_FORCE_CLOSE(*ttymaster); > >+VIR_FREE(*ttyName) > > How did this ever pass compile-testing without that semicolon? It didn't. So I fixed it. Then apparently did not do a new git format-patch before sending. Grr. ... > ACK to the

Re: [libvirt] [PATCH 1/1] lxc: use our own hand-rolled code in place of unlockpt and grantpt (v2)

2011-10-19 Thread Eric Blake
On 10/18/2011 07:39 PM, Serge E. Hallyn wrote: New version, compile-tested only tonight. I followed the suggestion about using posix_openpt(), though its manpage worries me - does libvirt need to compile on any platforms that don't have that fn? (In which case we can add the trivial define if w

[libvirt] [PATCH] build: ignore test executable

2011-10-19 Thread Eric Blake
* .gitignore: Add exemption. --- Pushing under the trivial rule (I almost did a 'git add' of the test binary). .gitignore |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/.gitignore b/.gitignore index 41fa50f..b04db58 100644 --- a/.gitignore +++ b/.gitignore @@ -74,6 +74,

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread Stefan Berger
On 10/19/2011 03:02 PM, David Stevens wrote: Stefan, Can't you achieve the same thing by reserving an early block of priorities (and a late one, for system stuff that should be done late)? The problem is that at the moment rules (in the 'root' table) can have priorities [0, 1000]. S

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread Matthias Bolte
2011/10/19 David Stevens : > I also think that nwfilters ought to reflect the underlying > filter > mechanisms as much as possible. Really, I'd prefer they were simply > parameterized shell scripts of ebtables/iptables commands run at significant > events (start-up, shutdown, migrate)

Re: [libvirt] [PATCHv2 05/13] snapshot: indent domain xml when nesting

2011-10-19 Thread Peter Krempa
Dňa 29.9.2011 18:22, Eric Blake wrote / napísal(a): is the first public instance of being used as a sub-element, although we have two other private uses (runtime state, and migration cookie). Although indentation has no effect on XML parsing, using it makes the output more consistent. This u

Re: [libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread David Stevens
Stefan, Can't you achieve the same thing by reserving an early blockof priorities (and a late one, for system stuff that should be done late)? If you use negative numbers, then you lose the capability ofever extending priorities to interpret the negative number as "from the

Re: [libvirt] [PATCHv2 04/13] virbuf: add auto-indentation support

2011-10-19 Thread Peter Krempa
On 09/29/2011 06:22 PM, Eric Blake wrote: Rather than having to adjust all callers in a chain to deal with indentation, it is nicer to have virBuffer do auto-indentation. * src/util/buf.h (_virBuffer): Increase size. (virBufferAdjustIndent, virBufferGetIndent): New prototypes. * src/libvirt_priv

[libvirt] [PATCH V2 08/10] Extend rule priorities into negative numbers

2011-10-19 Thread Stefan Berger
So far rules' priorities have only been valid in the range [0,1000]. Now I am extending their priority into the range [-1000, 1000] for subsequently being able to sort rules and the access of (jumps into) chains following priorities. Signed-off-by: Stefan Berger --- src/conf/nwfilter_conf.c

[libvirt] [PATCH 2/4] Introduce virFileRewrite for safe file rewrite

2011-10-19 Thread Jiri Denemark
When saving config files we just overwrite old content of the file. In case something fails during that process (e.g. disk gets full) we lose both old and new content. This patch makes the process more robust by writing the new content into a separate file and only if that succeeds the original fil

[libvirt] [PATCH V2 01/10] Extend virHashTable with function to get hash tables keys

2011-10-19 Thread Stefan Berger
Add a function to the virHashTable for getting an array of the hash table's keys and have the keys (optionally) sorted. Signed-off-by: Stefan Berger --- src/libvirt_private.syms |3 + src/util/hash.c | 98 +++ src/util/hash.h |

[libvirt] [PATCH V2 04/10] Use scripting for cleaning and renaming of chains

2011-10-19 Thread Stefan Berger
Use scripts for the renaming and cleaning up of chains. This allows us to get rid of some of the code that is only capable of renaming and removing chains whose names are hardcoded. A shell function 'collect_chains' is introduced that is given the name of an ebtables chain and then recursively det

[libvirt] [PATCH V2 00/10] Make inner workings of nwfilters more flexible + extensions

2011-10-19 Thread Stefan Berger
The following series of patches re-does some of the inner workings of nwfilters with the goal to enable users to write filters that have other than the system-known chains supported right now ('root','arp','rarp','ipv4' and 'ipv6'). Ideally users should be able to provide a chain name in the chains

[libvirt] [PATCH V2 03/10] Make filter creation in root table more flexible

2011-10-19 Thread Stefan Berger
Use the previously introduced chain priorities to sort the chains for access from an interface's 'root' table and have them created in the proper order. This gets rid of a lot of code that was previously creating the chains in a more hardcoded way. To determine what protocol a filter is used for

[libvirt] [PATCH V2 10/10] Add test cases

2011-10-19 Thread Stefan Berger
Add test case for the chain names with known prefixes and the chain priority. Signed-off-by: Stefan Berger --- tests/nwfilterxml2xmlin/chain_prefixtest1.xml | 37 + tests/nwfilterxml2xmlout/chain_prefixtest1.xml | 21 ++ tests/nwfilterxml2xmltest.c

[libvirt] [PATCH 1/4] Introduce virFileSync

2011-10-19 Thread Jiri Denemark
It still needs to be enhanced to be fully portable and working even if fsync() implementation is insane (e.g., on OSX). --- Notes: Although ideally gnulib would provide us with a sane fsync() and fdatasync() replacements (it already does so for fsync on Win32) so this could probably be

[libvirt] [PATCH V2 02/10] Introduce an internal priority for chains

2011-10-19 Thread Stefan Berger
For better handling of the sorting of chains introduce an internally used priority. Use a lookup table to store the priorities. For now their actual values do not matter just that the values cause the chains to be properly sorted through changes in the following patches. However, the values are cho

[libvirt] [PATCH V2 07/10] Enable chains with names having a known prefix

2011-10-19 Thread Stefan Berger
This patch enables chains that have a known prefix in their name. Known prefixes are: 'ipv4', 'ipv6', 'arp', 'rarp'. All prefixes are also protocols that can be evaluated on the ebtables level. Following the prefix they will be automatically connected to an interface's 'root' chain and jumped into

[libvirt] [PATCH 0/4] Make rewriting XML files more robust

2011-10-19 Thread Jiri Denemark
Jiri Denemark (4): Introduce virFileSync Introduce virFileRewrite for safe file rewrite Introduce virXMLSaveFile as a wrapper for virFileRewrite Use virXMLSaveFile when writing XML config src/conf/domain_conf.c | 32 +--- src/conf/network_conf.c | 34 +--

[libvirt] [PATCH 3/4] Introduce virXMLSaveFile as a wrapper for virFileRewrite

2011-10-19 Thread Jiri Denemark
Every time we write XML into a file we call virEmitXMLWarning to write a warning that the file is automatically generated. virXMLSaveFile simplifies this into a single step and makes rewriting existing XML file safe by using virFileRewrite internally. --- src/conf/domain_conf.c | 25 ++

[libvirt] [PATCH V2 09/10] Interleave jumping into chains with filtering rules in root table

2011-10-19 Thread Stefan Berger
The previous patch extends the priority of filtering rules into negative numbers. We now use this possibility to interleave the jumping into chains with filtering rules to for example create the 'root' table of an interface with the following sequence of rules: Bridge chain: libvirt-I-vnet0, entri

[libvirt] [PATCH V2 06/10] Extend the filter XML to support priorities of chains

2011-10-19 Thread Stefan Berger
This patch extends the filter XML to support priorities of chains in the XML. An example would be: [...] The permitted values for priorities are [-1000, 1000]. By setting the pririty of a chain the order in which it is accessed from the interface root chain can be influenced. Signed-off-by: St

[libvirt] [PATCH V2 05/10] Use the actual names of chains in data structure

2011-10-19 Thread Stefan Berger
Use the name of the chain rather than its type index (enum). This pushes the later enablement of chains with user-given names into the XML parser. For now we still only allow those names that are well known ('root', 'arp', 'rarp', 'ipv4' and 'ipv6'). Signed-off-by: Stefan Berger --- src/conf/nw

[libvirt] [PATCH 4/4] Use virXMLSaveFile when writing XML config

2011-10-19 Thread Jiri Denemark
--- src/conf/domain_conf.c | 49 +--- src/conf/network_conf.c | 34 +- src/conf/nwfilter_conf.c | 68 +++--- src/conf/storage_conf.c | 37 +++-- src/qemu/qemu_domain.c | 19 +

[libvirt] [PATCH v3 1/4] conf: Introduce optional on_missing attribute for cdrom and floppy

2011-10-19 Thread Michal Privoznik
This attribute says what to do with cdrom (or floppy) if the source is missing. It accepts: - mandatory - fail if missing for any reason (the default) - requisite - fail if missing on boot up, drop if missing on migrate/restore/revert - optional - drop if missing at any start attempt

[libvirt] [PATCH v3 0/4] Allow to make disk optional on migration

2011-10-19 Thread Michal Privoznik
This is a 3rd version of patches [1]. Diff to v2 includes Daniel's review and some other improvements. The aim of these patches is to mark CDROM and floppy optional, thus they might get dropped during migration, domain startup, restore, etc. The granularity is set on disk level, so user can decide

[libvirt] [PATCH v3 3/4] qemu: implement on_missing

2011-10-19 Thread Michal Privoznik
This patch implements on_missing feature in qemu driver. Upon qemu startup process an accessibility of CDROMs and floppy disks is checked. The source might get dropped if unavailable and on_missing is set accordingly. No event is emit thought. Look for follow up patch. --- src/qemu/qemu_domain.c

[libvirt] [PATCH v3 2/4] util: Create virFileAccessibleAs function

2011-10-19 Thread Michal Privoznik
This function checks if a given path is accessible under given uid and gid. --- src/util/util.c | 76 +++ src/util/util.h |3 ++ 2 files changed, 79 insertions(+), 0 deletions(-) diff --git a/src/util/util.c b/src/util/util.c index dac616b

[libvirt] [PATCH v3 4/4] on_missing: Emit event on disk source dropping

2011-10-19 Thread Michal Privoznik
If a disk source gets dropped because it is not accessible, mgmt application might want to be informed about this. Therefore we need to emit an event. The event presented in this patch is however a bit superset of what written above. The reason is simple: an intention to be easily expanded, e.g. on

Re: [libvirt] [PATCH 2/2] qemu: Test name-space handling

2011-10-19 Thread Eric Blake
On 10/19/2011 01:44 AM, Daniel P. Berrange wrote: On Tue, Oct 18, 2011 at 09:16:01PM +0200, Philipp Hahn wrote: Add test cases for parsing the qemu-name-space. This is based on qemuxml2argv{test,data/}, but can not reside in qemuxml2argv{test,data/} because ... ACK Pushed. -- Eric Blake

Re: [libvirt] [PATCH] pci address conflict when virtio disk with drive type address

2011-10-19 Thread Eric Blake
On 10/18/2011 11:32 PM, Xu He Jie wrote: Hmm, you are right. domain_conf didn't separate with different layer. So I found another place that in the qemu layer for the fix. The patch as below: Signed-off-by: Xu He Jie --- src/qemu/qemu_command.c | 10 +++--- 1 files changed, 7 insertions(+),

Re: [libvirt] [PATCH 1/2] qemu: Fix name-space handling

2011-10-19 Thread Eric Blake
On 10/19/2011 01:44 AM, Daniel P. Berrange wrote: On Tue, Oct 18, 2011 at 06:22:49PM +0200, Philipp Hahn wrote: The XML parser for the qemu specific extensions expects the qemu name-space to be bound to the 'qemu' prefix. This is too strict, since the name of the name-space-prefix is only mend a

Re: [libvirt] [PATCH] qemu: Do not free the device from activePciHostdevs if it's in use

2011-10-19 Thread Osier Yang
于 2011年10月19日 20:30, Osier Yang 写道: > * src/qemu/qemu_hostdev.c (qemuDomainReAttachHostdevDevices): > pciDeviceListFree(pcidevs) at the end free()s the device even if > it's in use by other domain, this is complete wrong, and will > cause race. E.g. > > # sh test1.sh > Device pci__00_19_0 detta

Re: [libvirt] [PATCH] compile: fix undefined reference to gnutls_x509_crt_get_dn with gcc-4.6.1

2011-10-19 Thread Eric Blake
On 10/18/2011 08:06 PM, Xu He Jie wrote: More likely, the difference is not in gcc, but in ld policy - Ubuntu recently changed policy to no longer allow implicit link dependencies by default (that is, if A links against B, and B links against C, older distros allowed A to use symbols from C witho

Re: [libvirt] [PATCH] snapshot: use correct qmp monitor command

2011-10-19 Thread Eric Blake
On 10/19/2011 03:25 AM, lvroyce wrote: Tested by:lvroyce test with cmd snapshot-create domain --disk-only ,patch works when qmp or hmp monitor accessible, Got trace below when issue cmd "snapshot-delete domain --snapshotname name",no "delvm/savevm" in qmp, only "delvm/savevm" commands in hmp.Is

[libvirt] [PATCH] qemu: Do not free the device from activePciHostdevs if it's in use

2011-10-19 Thread Osier Yang
* src/qemu/qemu_hostdev.c (qemuDomainReAttachHostdevDevices): pciDeviceListFree(pcidevs) at the end free()s the device even if it's in use by other domain, this is complete wrong, and will cause race. E.g. # sh test1.sh Device pci__00_19_0 dettached Domain test started Device attached succes

Re: [libvirt] [PATCHv2 03/13] virbuf: more detailed error reporting

2011-10-19 Thread Peter Krempa
On 09/29/2011 06:22 PM, Eric Blake wrote: The next patch wants to add some sanity checking, which would be a different error than ENOMEM. Many existing callers blindly report OOM failure if virBuf reports an error, and this will be wrong in the (unlikely) case that they actually had a usage erro

Re: [libvirt] [PATCHv2 02/13] virbuf: improve testsuite reporting

2011-10-19 Thread Peter Krempa
On 09/29/2011 06:22 PM, Eric Blake wrote: * tests/testutils.c (virtTestDifference): Make it easier to diagnose test failures. ACK, Peter -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCHv2 01/13] virbuf: fix const-correctness

2011-10-19 Thread Peter Krempa
On 09/29/2011 06:22 PM, Eric Blake wrote: Although the compiler wasn't complaining (since it was the pointer, rather than what was being pointed to, that was actually const), it looks quite suspicious to call a function with an argument labeled const when the nature of the pointer (virBufferPtr)

Re: [libvirt] [PATCH] compile: fix undefined reference to gnutls_x509_crt_get_dn with gcc-4.6.1

2011-10-19 Thread ShaoHe Feng
Today, the same error encounters on my Ubuntu 11.10. After apply this patch, I can make Libvirt successfully. , Xu He Jie wrote: 于 2011年10月18日 22:45, Eric Blake 写道: On 10/18/2011 02:06 AM, Xu He Jie wrote: From: soulxu When I compile libvirt with gcc-4.6.1 in ubuntu 11.10, got error as belo

Re: [libvirt] [PATCH] snapshot: use correct qmp monitor command

2011-10-19 Thread lvroyce
Tested by:lvroyce test with cmd snapshot-create domain --disk-only ,patch works when qmp or hmp monitor accessible, Got trace below when issue cmd "snapshot-delete domain --snapshotname name",no "delvm/savevm" in qmp, only "delvm/savevm" commands in hmp.Is this for future compability? 2011-

Re: [libvirt] [PATCH] documentation: trivial spelling fix

2011-10-19 Thread Peter Krempa
On 10/18/2011 04:53 PM, Philipp Hahn wrote: Signed-off-by: Philipp Hahn --- ACK and pushed. Peter -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list

[libvirt] [PATCH] Replace virBufferAdd with virBufferAddLit for const string

2011-10-19 Thread Daniel P. Berrange
From: "Daniel P. Berrange" The statement virBufferAdd(buf, "''", 2); triggers a syntax-check warning * src/util/buf.c: Replace virBufferAdd with virBufferAddLit --- src/util/buf.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Pushed as a build-breaker fix diff --git a/

Re: [libvirt] [libvirt PATCH] support continue/return targets in nwfilter

2011-10-19 Thread Daniel P. Berrange
On Tue, Oct 18, 2011 at 12:55:25PM -0700, David L Stevens wrote: > > > This patch adds support for "continue" and "return" actions > in filter rules. > > Signed-off-by: David L Stevens > > diff --git a/src/conf/nwfilter_conf.c b/src/conf/nwfilter_conf.c > index 04bfa22..3e28806 100644 >

Re: [libvirt] [PATCH 2/2] qemu: Test name-space handling

2011-10-19 Thread Daniel P. Berrange
On Tue, Oct 18, 2011 at 09:16:01PM +0200, Philipp Hahn wrote: > Add test cases for parsing the qemu-name-space. > This is based on qemuxml2argv{test,data/}, but can not reside in > qemuxml2argv{test,data/} because ... > > 1. qemuxmlns-qemu-ns-domain.xml is not schema-valid and breaks > domainschem

Re: [libvirt] [PATCH 1/2] qemu: Fix name-space handling

2011-10-19 Thread Daniel P. Berrange
On Tue, Oct 18, 2011 at 06:22:49PM +0200, Philipp Hahn wrote: > The XML parser for the qemu specific extensions expects the qemu name-space > to be bound to the 'qemu' prefix. This is too strict, since the name of the > name-space-prefix is only mend as an internal lookup key. Only the associated >

Re: [libvirt] [PATCH 1/3] virBufferEscapeShell: Emit quotes for the empty string

2011-10-19 Thread Guido Günther
On Tue, Oct 18, 2011 at 02:09:55PM -0600, Eric Blake wrote: > On 10/18/2011 01:35 PM, Guido Günther wrote: > >Make the empty string return '' to match cmdEcho's behavior. > >--- > > src/util/buf.c | 15 ++- > > 1 files changed, 10 insertions(+), 5 deletions(-) > > ACK. Pushed the wh