vhost: replace single worker pointer with xarray
authorMike Christie <michael.christie@oracle.com>
Mon, 26 Jun 2023 23:23:04 +0000 (18:23 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2023 16:15:14 +0000 (12:15 -0400)
commit1cdaafa1b8b4ef6052869c86ba2b41c0cff05957
treef11c02f6ad2beec29a856a35379ccf13c2999c6d
parentcef25866f41c45a01a933adb032b0dcfb25b847a
vhost: replace single worker pointer with xarray

The next patch allows userspace to create multiple workers per device,
so this patch replaces the vhost_worker pointer with an xarray so we
can store mupltiple workers and look them up.

Signed-off-by: Mike Christie <michael.christie@oracle.com>
Message-Id: <20230626232307.97930-15-michael.christie@oracle.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c
drivers/vhost/vhost.h