]> xenbits.xensource.com Git - libvirt.git/commit
qemuPrepareNVRAM: Save domain after NVRAM path generation
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 25 Sep 2014 12:39:19 +0000 (14:39 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 26 Sep 2014 08:14:34 +0000 (10:14 +0200)
commit3a3c3780b478ccf137b434754c7c6b1ddbdf1ac2
tree7e1744051001d9ac765e7d8ab6746a11e6a468e4
parentf2729283107dc749037453e30b6e21ef3af8d468
qemuPrepareNVRAM: Save domain after NVRAM path generation

On a domain startup, the variable store path is generated if needed.
The path is intended to be generated only once. However, the updated
domain definition is not saved into config dir rather than state XML
only. So later, whenever the domain is destroyed and the daemon is
restarted, the generated path is forgotten and the file may be left
behind on virDomainUndefine() call.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c