]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: domain: aggregate setup of disk drive options for -drive
authorPeter Krempa <pkrempa@redhat.com>
Tue, 29 May 2018 14:38:50 +0000 (16:38 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 5 Jun 2018 06:13:58 +0000 (08:13 +0200)
commit2e22a5618ca9b5ccaf7a1b93179a5e1c8173c9d5
tree33f58da6a0536e30508b0688786d762d0b8a4aa2
parent88860bb9d98ac00a31b335f843915c0401ee0d66
qemu: domain: aggregate setup of disk drive options for -drive

When using blockdev the approach to base aliases will change. Add a
helper function that will aggregate all code which needs to be called
with the disk alias for the -drive to setup internal data.

qemuDomainSecretDiskPrepare wrapper is no longer necessary as the
contents were moved to a function which is designed to use the old
aliases.

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