[libvirt] [PATCH] Perform feature flag compat checking in QEMU migration cookies
Eric Blake
eblake at redhat.com
Mon May 23 16:17:18 UTC 2011
On 05/19/2011 05:21 AM, Daniel P. Berrange wrote:
> To allow new mandatory migration cookie data to be introduced,
> add support for checking supported feature flags when parsing
> migration cookie.
>
> * src/qemu/qemu_migration.c: Feature flag checking in migration
> cookie parsing
> ---
> src/qemu/qemu_migration.c | 56 ++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 55 insertions(+), 1 deletions(-)
ACK with one nit:
> @@ -296,6 +309,12 @@ static void qemuMigrationCookieXMLFormat(virBufferPtr buf,
> virBufferEscapeString(buf, " <hostname>%s</hostname>\n", mig->hostname);
> virBufferAsprintf(buf, " <hostuuid>%s</hostuuid>\n", hostuuidstr);
>
> + for (i = 0 ; i < QEMU_MIGRATION_COOKIE_FLAG_LAST ; i++) {
> + if (mig->flagsMandatory & (1 << i))
> + virBufferAsprintf(buf, " <feature name='%s'/>",
Need a newline in this output, unless you like:
<feature name='abc'/> <feature name='def'/>
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20110523/dda62ffa/attachment-0001.sig>
More information about the libvir-list
mailing list