]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: Extract preparation of hostdev specific data to a separate function
authorPeter Krempa <pkrempa@redhat.com>
Thu, 10 Sep 2020 10:32:04 +0000 (12:32 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 15 Sep 2020 13:20:23 +0000 (15:20 +0200)
commit3673bdbe13898d0f03fdbf50db6d2b1cc5554597
tree3a9cdd671d9a1de0ac56c9955b3b562decf09e76
parent82b60ec8cec231443bed716ecd854eee6c770b12
qemu: domain: Extract preparation of hostdev specific data to a separate function

Historically we've prepared secrets for all objects in one place. This
doesn't make much sense and it's semantically more appealing to prepare
everything for a single device type in one place.

Move the setup of the (iSCSI|SCSI) hostdev secrets into a new function
which will be used to setup other things as well in the future.

This is a similar approach we do for disks.

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