OSDN Git Service

cpr: relax vhost migration blockers
authorSteve Sistare <steven.sistare@oracle.com>
Wed, 25 Oct 2023 19:44:27 +0000 (12:44 -0700)
committerJuan Quintela <quintela@redhat.com>
Wed, 1 Nov 2023 15:13:59 +0000 (16:13 +0100)
commit89415796f688036faa88e6dc9ae2f3acfcdc39c8
tree23a19949b678b2d93af0ce249e142c6142cef601
parente0ee3a8ff74a47ae8ca147d8192e2c0745dfb51d
cpr: relax vhost migration blockers

vhost blocks migration if logging is not supported to track dirty
memory, and vhost-user blocks it if the log cannot be saved to a shm fd.

vhost-vdpa blocks migration if both hosts do not support all the device's
features using a shadow VQ, for tracking requests and dirty memory.

vhost-scsi blocks migration if storage cannot be shared across hosts,
or if state cannot be migrated.

None of these conditions apply if the old and new qemu processes do
not run concurrently, and if new qemu starts on the same host as old,
which is the case for cpr.

Narrow the scope of these blockers so they only apply to normal mode.
They will not block cpr modes when they are added in subsequent patches.

No functional change until a new mode is added.

Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <1698263069-406971-5-git-send-email-steven.sistare@oracle.com>
hw/scsi/vhost-scsi.c
hw/virtio/vhost.c