vduse: Support set_vq_affinity callback
authorXie Yongji <xieyongji@bytedance.com>
Thu, 23 Mar 2023 05:30:37 +0000 (13:30 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 21 Apr 2023 07:02:32 +0000 (03:02 -0400)
commit28f6288eb63d5979fa6758e64f52e4d55cf184a8
tree73458f7a93fe491ebc05fd9cbdc1b06924e81f58
parent78885597b9ccf68d4ce554aec98db01ee3c2d3fc
vduse: Support set_vq_affinity callback

Since virtio-vdpa bus driver already support interrupt
affinity spreading mechanism, let's implement the
set_vq_affinity callback to bring it to vduse device.
After we get the virtqueue's affinity, we can spread
IRQs between CPUs in the affinity mask, in a round-robin
manner, to run the irq callback.

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