]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_hostdev: Introduce qemuHostdevNeedsVFIO()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Sep 2019 07:33:28 +0000 (09:33 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 21 Oct 2019 11:50:24 +0000 (13:50 +0200)
commitf988128cc1352b258f6e4ae23e7b901ce2313bd0
treef10e0ff229995b2d4cac8f697d0cf2da8ce2dd0d
parent0dfc7c60594d689b4cf81dfa4234fa41d48c7708
qemu_hostdev: Introduce qemuHostdevNeedsVFIO()

There are two types of host devices that require /dev/vfio/vfio
access:

  1) PCI devices with VFIO backend
  2) Mediated devices

Introduce a simple helper that returns true if passed @hostdev
falls in either of the categories.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_hostdev.c
src/qemu/qemu_hostdev.h