Re: [libvirt] [PATCH v2 3/4] hostdev: Use actual device when reattaching

2016-03-22 Thread John Ferlan
On 03/18/2016 01:03 PM, Andrea Bolognani wrote: > 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 >

[libvirt] [PATCH v2 3/4] hostdev: Use actual device when reattaching

2016-03-19 Thread Andrea Bolognani
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