mbox series

[v4,0/3] vfio: Some fixes and optimizations for VFIO migration

Message ID 20210310030233.1133-1-lushenming@huawei.com
Headers show
Series vfio: Some fixes and optimizations for VFIO migration | expand

Message

Shenming Lu March 10, 2021, 3:02 a.m. UTC
This patch set includes two fixes and one optimization for VFIO migration
as blew:

Patch 1-2:
- Fix two ordering problems in migration.

Patch 3:
- Optimize the enabling process of the MSI-X vectors in migration.

History:

v3 -> v4
- Use msix_function_masked instead of msix_masked() in Patch 3.

v2 -> v3:
- Nit fixes.
- Set error in migration stream for migration to fail in Patch 1.
- Tested Patch 3 with a Windows guest.

Thanks,
Shenming


Shenming Lu (3):
  vfio: Move the saving of the config space to the right place in VFIO
    migration
  vfio: Set the priority of the VFIO VM state change handler explicitly
  vfio: Avoid disabling and enabling vectors repeatedly in VFIO
    migration

 hw/vfio/migration.c | 28 +++++++++++++++++-----------
 hw/vfio/pci.c       | 20 +++++++++++++++++---
 2 files changed, 34 insertions(+), 14 deletions(-)