]> xenbits.xensource.com Git - libvirt.git/commit
qemu: domain: Don't re-allocate qemuCaps in post parse callbacks
authorPeter Krempa <pkrempa@redhat.com>
Tue, 15 Aug 2017 13:25:23 +0000 (15:25 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 18 Aug 2017 13:07:44 +0000 (15:07 +0200)
commit18a8c366104429ff6823eafca8e621c4754f4086
treeafc0811bfd1c28df6ee1c928fb643ab6d379fe9d
parente168bc8a72ce884027adeb755f8d891e353363dd
qemu: domain: Don't re-allocate qemuCaps in post parse callbacks

The domain post parse callback, domain address callback and the domain
device callback (for every single device) would each grab qemuCaps for
the current emulator. This is quite wasteful. Use the new callback to do
this just once.
src/qemu/qemu_domain.c