]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Split out initialization of secrets for 'iscsi' hostdevs
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Mar 2020 06:31:53 +0000 (07:31 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 16 Mar 2020 14:51:44 +0000 (15:51 +0100)
commit740dd1a4e5ce81e5b0be855dd413dd7eec81ccd3
tree668e39b2fa535ab6911b988783937d2558b5fa04
parent95a8c4332dd42ab6a558117a07134a7fdb2ce8f4
qemu: Split out initialization of secrets for 'iscsi' hostdevs

Currently we don't have infrastructure to remember the secret aliases
for hostdevs. Since an upcoming patch is going to change aliases for
the disks, initialize the iscsi hostdevs separately so that we can keep
the alias. At the same time let's use qemuAliasForSecret instead of
qemuDomainGetSecretAESAlias when unplugging the iscsi hostdev.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c