[libvirt] [PATCH v3 01/20] Add a qemu capabilities cache manager
Eric Blake
eblake at redhat.com
Tue Sep 25 19:43:30 UTC 2012
On 09/25/2012 11:59 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> Introduce a qemuCapsCachePtr object to provide a global cache
> of capabilities for QEMU binaries. The cache auto-populates
> on first request for capabilities about a binary, and will
> auto-refresh if the binary has changed since a previous cache
> was populated
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/qemu/qemu_capabilities.c | 99 ++++++++++++++++++++++++++++++++++++++++++++
> src/qemu/qemu_capabilities.h | 9 ++++
> 2 files changed, 108 insertions(+)
>
> @@ -1940,6 +1945,10 @@ qemuCapsPtr qemuCapsNewForBinary(const char *binary)
> tmp = strstr(binary, QEMU_SYSTEM_PREFIX);
> if (tmp) {
> tmp += strlen(QEMU_SYSTEM_PREFIX);
> +
> + /* For historical compat we uses 'itanium' as arch name */
> + if (STREQ(tmp, "ia64"))
> + tmp = "itanium";
This hunk looks like it may have been rebased to the wrong patch, as
omitting it makes no difference to the new caching code.
ACK with that fixed.
--
Eric Blake eblake at redhat.com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 617 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120925/c1b0ce73/attachment-0001.sig>
More information about the libvir-list
mailing list