[libvirt] [PATCH v2 6/7] qemu: switch QEMU capabilities to use virFileCache
Jiri Denemark
jdenemar at redhat.com
Wed Jul 26 13:24:27 UTC 2017
On Fri, Jul 21, 2017 at 15:30:14 +0200, Pavel Hrdina wrote:
> The switch contains considerable amount of changes:
>
> virQEMUCapsRememberCached() is removed because this is now handled
> by virFileCacheSave().
>
> virQEMUCapsInitCached() is removed because this is now handled by
> virFileCacheLoad().
>
> virQEMUCapsNewForBinary() is split into two functions,
> virQEMUCapsNewData() which creates new data if there is nothing
> cached and virQEMUCapsLoadFile() which loads the cached data.
> This is now handled by virFileCacheNewData().
>
> virQEMUCapsCacheValidate() is removed because this is now handled by
> virFileCacheValidate().
>
> virQEMUCapsCacheFree() is removed because it's no longer required.
>
> Add virCapsPtr into virQEMUCapsCachePriv because for each call of
> virFileCacheLookup*() we need to use current virCapsPtr.
>
> Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
> ---
>
> Notes:
> Changes in v2:
> - removed the need to set/unset virCaps before calling virFileCacheLookup*
Reviewed-by: Jiri Denemark <jdenemar at redhat.com>
More information about the libvir-list
mailing list