]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: stop creating capabilities at driver startup
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 2 Dec 2019 13:04:26 +0000 (13:04 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 9 Dec 2019 10:17:27 +0000 (10:17 +0000)
commit3dd91af01f30c5bda6328454ef49f3afece755d6
tree9ca6fffc00b4876991f908699743788e49fbe42a
parent7be5fe66cd024b9ffba7c52cdbf5effedeac2c0d
qemu: stop creating capabilities at driver startup

Now that nearly all internal APIs use the QEMU capabilities or other
QEMU driver data directly, there's no compelling benefit to create
virCapsPtr at driver startup.

Skipping this means we don't probe capabilities for all 30 system
emulator targets at startup, only those emulators which are referenced
by an XML doc. This massively improves libvirtd startup time when the
capabilities cache is not populated. It even improves startup time
when the cache is up to date, as we don't bother to load files from
the cache until we need them.

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_conf.c
src/qemu/qemu_driver.c