]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Fix QEMU driver custom domain status XML extensions
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 18 Jan 2010 16:24:25 +0000 (16:24 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 20 Jan 2010 16:33:02 +0000 (16:33 +0000)
commited00e45dba56d25f7231283ccfe8e6890b3b88dd
treed5c1390ef409ae565bae3447daa8ca73dce965b6
parent704bd732b5c05ed917dc857d578f3ec61f5ad4ff
Fix QEMU driver custom domain status XML extensions

Invoking the virConnectGetCapabilities() method causes the QEMU
driver to rebuild its internal capabilities object. Unfortunately
it was forgetting to register the custom domain status XML hooks
again.

To avoid this kind of error in the future, the code which builds
capabilities is refactored into one single method, which can be
called from all locations, ensuring reliable rebuilds.

* src/qemu/qemu_driver.c: Fix rebuilding of capabilities XML and
  guarentee it is always consistent
src/qemu/qemu_driver.c