]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_domain: Move internals of qemuDomainPrepareHostdev() into a separate function
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Apr 2023 08:51:52 +0000 (10:51 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 25 Apr 2023 10:36:30 +0000 (12:36 +0200)
commit6e60e8cb9fa4306f2caaeb7f25cd712a2bc0ab26
tree25ec1447c3aec7d43cfbbd3f266496234674b0c7
parent3f7039f9e8fae8f43b69f83b80c58866f0507b89
qemu_domain: Move internals of qemuDomainPrepareHostdev() into a separate function

So far, qemuDomainPrepareHostdev() is a NOP for anything but a
SCSI hostdev. This will change soon. Therefore, move the SCSI
hostdev preparation into a separate function
(qemuDomainPrepareHostdevSCSI()) and make
qemuDomainPrepareHostdev() call function corresponding to the
hostdev type (or nothing if the type doesn't need any
preparation).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_domain.c