OSDN Git Service

vdpa: Expose VHOST_F_LOG_ALL on SVQ
authorEugenio Pérez <eperezma@redhat.com>
Mon, 14 Mar 2022 17:34:54 +0000 (18:34 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 15 Mar 2022 05:57:44 +0000 (13:57 +0800)
commit12a195fa343aae2ead1301ce04727bd0ae25eb15
tree7cf1dc82dd1bc5363f47fa09e4891cedd7d03417
parent773ebc952ee028e6c0dbeee15f1c36ab28325899
vdpa: Expose VHOST_F_LOG_ALL on SVQ

SVQ is able to log the dirty bits by itself, so let's use it to not
block migration.

Also, ignore set and clear of VHOST_F_LOG_ALL on set_features if SVQ is
enabled. Even if the device supports it, the reports would be nonsense
because SVQ memory is in the qemu region.

The log region is still allocated. Future changes might skip that, but
this series is already long enough.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-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