Re: [libvirt] [PATCH] qemu: Fix race between device rebind and kvm cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]