OSDN Git Service

vdpa: Add device migration blocker
authorEugenio Pérez <eperezma@redhat.com>
Wed, 20 Jul 2022 06:59:45 +0000 (08:59 +0200)
committerJason Wang <jasowang@redhat.com>
Wed, 20 Jul 2022 08:58:08 +0000 (16:58 +0800)
commitc156d5bf2b142dcc06808ccee06882144f230aec
tree26b26f6d15704d4eca3d7ff49387ecc3d6513242
parent8170ab3f43989680491d00f1017f60b25d346114
vdpa: Add device migration blocker

Since the vhost-vdpa device is exposing _F_LOG, adding a migration blocker if
it uses CVQ.

However, qemu is able to migrate simple devices with no CVQ as long as
they use SVQ. To allow it, add a placeholder error to vhost_vdpa, and
only add to vhost_dev when used. vhost_dev machinery place the migration
blocker if needed.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h