]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Introduce qemuIsSharedHostdev
authorJohn Ferlan <jferlan@redhat.com>
Tue, 16 Jun 2015 17:33:37 +0000 (13:33 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 8 Jul 2015 19:07:22 +0000 (15:07 -0400)
commit8c43258ed5fca8b285400135948300fa6f58f402
treedd74bbbae863033ceef8e08da2b6b3a432bc231e
parent4f4ac3913a379ad7d3880c57cfe7304c4a22cc22
qemu: Introduce qemuIsSharedHostdev

Add a single boolean function to handle whether the hostdev is shared or not.

Use the new function for the qemu{Add|Remove}SharedHostdev calls as well
as qemuSetUnprivSGIO. NB: This third usage fixes a possible bug where
if this feature is enabled at some time in the future and the shareable flag
wasn't set, the sgio would have been erroneously set.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/qemu/qemu_conf.c