OSDN Git Service

vhost-user-gpu: abstract vg_cleanup_mapping_iov
authorLi Qiang <liq3ea@163.com>
Sun, 16 May 2021 03:04:03 +0000 (20:04 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 27 May 2021 09:55:59 +0000 (11:55 +0200)
commit3ea32d1355d446057c17458238db2749c52ee8f0
tree9165fd0daa7b6cf4dd0b84da96b2f485fb5555a4
parent9f22893adcb02580aee5968f32baa2cd109b3ec2
vhost-user-gpu: abstract vg_cleanup_mapping_iov

Currently in vhost-user-gpu, we free resource directly in
the cleanup case of resource. If we change the cleanup logic
we need to change several places, also abstruct a
'vg_create_mapping_iov' can be symmetry with the
'vg_create_mapping_iov'. This is like what virtio-gpu does,
no function changed.

Signed-off-by: Li Qiang <liq3ea@163.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20210516030403.107723-9-liq3ea@163.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
contrib/vhost-user-gpu/vhost-user-gpu.c
contrib/vhost-user-gpu/virgl.c
contrib/vhost-user-gpu/vugpu.h