On 01/22/2010 12:01 PM, Daniel Veillard wrote:
On Fri, Jan 22, 2010 at 11:40:38AM -0500, Chris Lalancette wrote:
> Certain hypervisors (like qemu/kvm) map the PCI bar(s) on
> the host when doing device passthrough. This can lead to a race
> condition where the hypervisor is still cleaning up the device while
> libvirt is trying to re-attach it to the host device driver. To avoid
> this situation, we look through /proc/iomem, and if the hypervisor is
> still holding onto the bar (denoted by the string in the matcher variable),
> then we can wait around a bit for that to clear up.
>
> v2: Thanks to review by DV, make sure we wait the full timeout per-device
>
<snip>
ACK,
Thanks, pushed.
--
Chris Lalancette