]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Regenerate auth/enc secret aliases when restoring status XML
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 May 2018 16:24:13 +0000 (18:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:57 +0000 (08:13 +0200)
commit7c6b00b8fe268d6c3d0f7fb137593381c5d6a2be
tree93d3d453183529b86c42eef12f880d348bf14046
parentecd785dd84bfa3a1a558fdf99c9a6f2097feea45
qemu: domain: Regenerate auth/enc secret aliases when restoring status XML

Previously we did not store the aliases but rather re-generated them
when unplug was necessary. This is very cumbersome since the knowledge
when and which alias to use needs to be stored in the hotplug code as
well.

While this patch will not strictly improve this situation since there
still will be two places containing this code it at least will allow to
remove the mess from the disk-unplug code and will prevent introducing
more mess when adding blockdev support.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
tests/qemustatusxml2xmldata/disk-secinfo-upgrade-out.xml