[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v28 07/17] vfio: Register SaveVMHandlers for VFIO device
From: |
Cornelia Huck |
Subject: |
Re: [PATCH v28 07/17] vfio: Register SaveVMHandlers for VFIO device |
Date: |
Fri, 23 Oct 2020 14:18:13 +0200 |
On Fri, 23 Oct 2020 16:10:33 +0530
Kirti Wankhede <kwankhede@nvidia.com> wrote:
> Define flags to be used as delimiter in migration stream for VFIO devices.
> Added .save_setup and .save_cleanup functions. Map & unmap migration
> region from these functions at source during saving or pre-copy phase.
>
> Set VFIO device state depending on VM's state. During live migration, VM is
> running when .save_setup is called, _SAVING | _RUNNING state is set for VFIO
> device. During save-restore, VM is paused, _SAVING state is set for VFIO
> device.
>
> Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
> Reviewed-by: Neo Jia <cjia@nvidia.com>
> ---
> hw/vfio/migration.c | 102
> +++++++++++++++++++++++++++++++++++++++++++++++++++
> hw/vfio/trace-events | 2 +
> 2 files changed, 104 insertions(+)
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
- Re: [PATCH v28 04/17] vfio: Add migration region initialization and finalize function, (continued)
[PATCH v28 05/17] vfio: Add VM state change handler to know state of VM, Kirti Wankhede, 2020/10/23
[PATCH v28 06/17] vfio: Add migration state change notifier, Kirti Wankhede, 2020/10/23
[PATCH v28 07/17] vfio: Register SaveVMHandlers for VFIO device, Kirti Wankhede, 2020/10/23
[PATCH v28 08/17] vfio: Add save state functions to SaveVMHandlers, Kirti Wankhede, 2020/10/23
[PATCH v28 09/17] vfio: Add load state functions to SaveVMHandlers, Kirti Wankhede, 2020/10/23
[PATCH v28 10/17] memory: Set DIRTY_MEMORY_MIGRATION when IOMMU is enabled, Kirti Wankhede, 2020/10/23
[PATCH v28 11/17] vfio: Get migration capability flags for container, Kirti Wankhede, 2020/10/23
[PATCH v28 12/17] vfio: Add function to start and stop dirty pages tracking, Kirti Wankhede, 2020/10/23