]> git.ipfire.org Git - thirdparty/libvirt.git/commit
hostdev: Use actual device when reattaching
authorAndrea Bolognani <abologna@redhat.com>
Fri, 18 Mar 2016 17:03:52 +0000 (18:03 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 23 Mar 2016 10:38:20 +0000 (11:38 +0100)
commitee4cfb56436b50345b072c706b87aff82e06d760
treee2bcdb80ca6238c0be5a83071e5266ac84402f65
parentc3e2f6e37df218606b22720a83a613fafa55a5bf
hostdev: Use actual device when reattaching

Instead of forcing the values for the unbind_from_stub, remove_slot
and reprobe properties, look up the actual device and use that when
calling virPCIDeviceReattach().

This ensures the device is restored to its original state after
reattach: for example, if it was not bound to any driver before
detach, it will not be bound forcefully during reattach.
src/util/virhostdev.c