]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostdev: Introduce and use virHostdevIsVFIODevice
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Aug 2019 14:25:12 +0000 (16:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Oct 2019 11:50:23 +0000 (13:50 +0200)
commit82a2486236a1949936b818d00b474b305d6604e6
treea3bcd54503bf79a3d3470c08a7c51675c34affdd
parent72cbc1800bc5c07c2859685f5d6067111b4a22b7
virhostdev: Introduce and use virHostdevIsVFIODevice

In some places we need to check if a hostdev has VFIO backend.
Because of how complicated virDomainHostdevDef structure is, the
check consists of three lines. Move them to a function and
replace all checks with the function call.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/conf/domain_conf.c
src/libvirt_private.syms
src/qemu/qemu_cgroup.c
src/qemu/qemu_domain.c
src/qemu/qemu_hotplug.c
src/util/virhostdev.c
src/util/virhostdev.h