]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hostdev: Streamline device ownership tracking
authorAndrea Bolognani <abologna@redhat.com>
Fri, 18 Mar 2016 17:03:50 +0000 (18:03 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 23 Mar 2016 10:38:14 +0000 (11:38 +0100)
commit811286090f7ca2d02f915f3c72b8c756e39e2dac
treeded47f689cd5942f1a3e3e9b73239ed2ebc206e6
parent6da6bf2f30b4d8a8004a026e7762d3aa086fa58b
hostdev: Streamline device ownership tracking

After this patch, ownership of virPCIDevice instances is very easy
to keep track of: for each host PCI device, the only instance that
actually matters is the one inside one of the bookkeeping list.

Whenever some operation needs to be performed on a PCI device, the
actual device is looked up first; when this is not the case, a
comment explains the reason.
src/util/virhostdev.c