vdpa net: allow VHOST_F_LOG_ALL
authorEugenio Pérez <eperezma@redhat.com>
Fri, 3 Mar 2023 17:24:44 +0000 (18:24 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:38:59 +0000 (12:38 -0500)
commit609ab4c3ed8d6b6a4d94930fb9185412b2ba0d0c
tree4d71dc016f8f5101ce2b4190f1c8beada120cb0b
parent57ac831865e370012496fb581a38d261cb72c5d0
vdpa net: allow VHOST_F_LOG_ALL

Since some actions move to the start function instead of init, the
device features may not be the parent vdpa device's, but the one
returned by vhost backend.  If transition to SVQ is supported, the vhost
backend will return _F_LOG_ALL to signal the device is migratable.

Add VHOST_F_LOG_ALL.  HW dirty page tracking can be added on top of this
change if the device supports it in the future.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230303172445.1089785-14-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/vhost-vdpa.c