vdpa: Move command buffers map to start of net device
commit7a7f87e94c4e75ca177564491595dd17b7e41a62
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:30:33 +0000 (23 20:30 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (2 10:22 +0800)
tree706e690cfc61ea4e56e667396f17a7671a43e90f
parentf8972b56eeace10a410990f032406250abe18d64
vdpa: Move command buffers map to start of net device

As this series will reuse them to restore the device state at the end of
a migration (or a device start), let's allocate only once at the device
start so we don't duplicate their map and unmap.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/vhost-vdpa.c