vhost: convert poll work to be vq based
authorMike Christie <michael.christie@oracle.com>
Mon, 26 Jun 2023 23:22:57 +0000 (18:22 -0500)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 Jul 2023 16:15:13 +0000 (12:15 -0400)
commit493b94bf5ae0f6d67bd3728e8c723800d99a13ad
tree4799428db9083896dfd6d00a0d48dbefee02dbea
parenta6fc04739be7cd8a744658fd2734906a6a0eb400
vhost: convert poll work to be vq based

This has the drivers pass in their poll to vq mapping and then converts
the core poll code to use the vq based helpers. In the next patches we
will allow vqs to be handled by different workers, so to allow drivers
to execute operations like queue, stop, flush, etc on specific polls/vqs
we need to know the mappings.

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