vdpa net: move iova tree creation from init to start
commit00ef422e9fbfef1fb40447b08826db0951d788dd
authorEugenio Pérez <eperezma@redhat.com>
Fri, 3 Mar 2023 17:24:32 +0000 (3 18:24 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Mar 2023 17:38:59 +0000 (7 12:38 -0500)
treef05b10e91402103e4cfbd0a543a01c7680250e94
parent2133e07c4ca1d0befa382e557d2f6b38c77ed689
vdpa net: move iova tree creation from init to start

Only create iova_tree if and when it is needed.

The cleanup keeps being responsible for the last VQ but this change
allows it to merge both cleanup functions.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230303172445.1089785-2-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