[libvirt] [PATCH v3 02/20] Switch over to use cache for building QEMU capabilities
Eric Blake
eblake at redhat.com
Tue Sep 25 23:56:33 UTC 2012
On 09/25/2012 11:59 AM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> When building up a virCapsPtr instance, the QEMU driver
> was copying the list of machine types across from the
> previous virCapsPtr instance, if the QEMU binary had not
> changed. Replace this ad-hoc caching of data with use
> of the new qemuCapsCache global cache.
>
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
> src/conf/capabilities.h | 1 -
> src/qemu/qemu_capabilities.c | 228 +++++++++++++------------------------------
> src/qemu/qemu_capabilities.h | 7 +-
> src/qemu/qemu_conf.h | 2 +
> src/qemu/qemu_driver.c | 15 +--
> 5 files changed, 84 insertions(+), 169 deletions(-)
>
ACK. Nice to see twice as many lines deleted.
--
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/8ebd5905/attachment-0001.sig>
More information about the libvir-list
mailing list