Re: [PATCH] qemu: Do not free the device from activePciHostdevs if it's in use

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

 



于 2011年10月19日 20:30, Osier Yang 写道:
> * src/qemu/qemu_hostdev.c (qemuDomainReAttachHostdevDevices):
> pciDeviceListFree(pcidevs) at the end free()s the device even if
> it's in use by other domain, this is complete wrong, and will
> cause race. E.g.
>
> # sh test1.sh
> Device pci_0000_00_19_0 dettached
>
> Domain test started
>
> Device attached successfully
>
> error: Failed to start domain test2
> error: Requested operation is not valid: PCI device 0000:00:19.0 is in use by domain test
>
> [ -- 1th time --]
> Device pci_0000_00_19_0 re-attached
>
> [ -- 2th time --]
> Device pci_0000_00_19_0 re-attached
>
> [ -- 3th time --]
> Device pci_0000_00_19_0 re-attached
>
> [ -- 4th time --]
> Device pci_0000_00_19_0 re-attached
>
> [ -- 5th time --]
> Device pci_0000_00_19_0 re-attached
>
> clean up
> Domain test destroyed
>
> Device pci_0000_00_19_0 re-attached
>

Never mind the following duplicate texts. Will remove when pushing.

Osier

--
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]