]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: switch QEMU capabilities to use virFileCache
authorPavel Hrdina <phrdina@redhat.com>
Wed, 19 Jul 2017 15:01:56 +0000 (17:01 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 26 Jul 2017 13:36:21 +0000 (15:36 +0200)
commitd03de54e7e2b62f7f4f284410c5959bcd59f26d5
tree8a86760151e43ee8b2fdf26bf128241967dc2143
parentf366cfed62969ae3ebd34d866a40ecdb01c95519
qemu: switch QEMU capabilities to use virFileCache

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@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_capabilities.c
src/qemu/qemu_capabilities.h
src/qemu/qemu_capspriv.h
src/qemu/qemu_conf.h
src/qemu/qemu_driver.c
tests/testutilsqemu.c
tests/testutilsqemu.h