]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add infrastructure for disk source private data XML
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Dec 2017 16:55:03 +0000 (17:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 14 Dec 2017 09:24:36 +0000 (10:24 +0100)
commitaed3d038a6565f3b0e916bdb004ca90b302b200d
treeb1caef01af0190ab0d3a744de8bdb9632704e4bf
parent7db2515900d0bfb36e1fa04fe22c5eded63eab58
conf: Add infrastructure for disk source private data XML

VM drivers may need to store additional private data to the status XML
so that it can be restored after libvirtd restart. Since not everything
is needed add a callback infrastructure, where VM drivers can add only
stuff they need.

Note that the private data is formatted as a <privateData> sub-element
of the <disk> or <backingStore> <source> sub-element. This is done since
storing it out of band (in the VM private data) would require a complex
matching process to allow to put the data into correct place.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/conf/snapshot_conf.c
src/network/bridge_driver.c
src/qemu/qemu_domain.c
tests/qemublocktest.c
tests/virstoragetest.c