qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [RFC PATCH V2 09/10] Qemu/VFIO: Add SRIOV VF migration


From: Lan, Tianyu
Subject: Re: [Qemu-devel] [RFC PATCH V2 09/10] Qemu/VFIO: Add SRIOV VF migration support
Date: Wed, 25 Nov 2015 23:32:23 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


On 11/25/2015 5:03 AM, Michael S. Tsirkin wrote:
>+void vfio_migration_cap_handle(PCIDevice *pdev, uint32_t addr,
>+                                  uint32_t val, int len)
>+{
>+    VFIOPCIDevice *vdev = DO_UPCAST(VFIOPCIDevice, pdev, pdev);
>+
>+    if (addr == vdev->migration_cap + PCI_VF_MIGRATION_VF_STATUS
>+        && val == PCI_VF_READY_FOR_MIGRATION) {
>+        qemu_event_set(&migration_event);
This would wake migration so it can proceed -
except it needs QEMU lock to run, and that's
taken by the migration thread.

Sorry, I seem to miss something.
Which lock may cause dead lock when calling vfio_migration_cap_handle()
and run migration?
The function is called when VF accesses faked PCI capability.


It seems unlikely that this ever worked - how
did you test this?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]