• Sebastien Boeuf's avatar
    vhost-vdpa: uAPI to resume the device · 3b688d7a
    Sebastien Boeuf authored
    This new ioctl adds support for resuming the device from userspace.
    
    This is required when trying to restore the device in a functioning
    state after it's been suspended. It is already possible to reset a
    suspended device, but that means the device must be reconfigured and
    all the IOMMU/IOTLB mappings must be recreated. This new operation
    allows the device to be resumed without going through a full reset.
    
    This is particularly useful when trying to perform offline migration of
    a virtual machine (also known as snapshot/restore) as it allows the VMM
    to resume the virtual machine back to a running state after the snapshot
    is performed.
    Acked-by: default avatarJason Wang <jasowang@redhat.com>
    Signed-off-by: default avatarSebastien Boeuf <sebastien.boeuf@intel.com>
    Message-Id: <73b75fb87d25cff59768b4955a81fe7ffe5b4770.1672742878.git.sebastien.boeuf@intel.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Reviewed-by: default avatarStefano Garzarella <sgarzare@redhat.com>
    3b688d7a
vdpa.c 34.1 KB