vduse: Refactor allocation for vduse virtqueues
authorXie Yongji <xieyongji@bytedance.com>
Thu, 23 Mar 2023 05:30:36 +0000 (13:30 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:31 +0000 (03:02 -0400)
commit78885597b9ccf68d4ce554aec98db01ee3c2d3fc
treeba9a921315beae417139525633c648d7ac0ebfc6
parent3dad56823b5332ffdbe1867b2d7b50fbacea124a
vduse: Refactor allocation for vduse virtqueues

Allocate memory for vduse virtqueues one by one instead of
doing one allocation for all of them.

This is a preparation for adding sysfs interface for virtqueues.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230323053043.35-5-xieyongji@bytedance.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c