89445218 | 09-Jan-2024 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vduse: enable Virtio-net device type
This patch adds Virtio-net device type to the supported devices types.
Initialization fails if the device does not support VIRTIO_F_VERSION_1 feature, in order
vduse: enable Virtio-net device type
This patch adds Virtio-net device type to the supported devices types.
Initialization fails if the device does not support VIRTIO_F_VERSION_1 feature, in order to guarantee the configuration space is read-only. It also fails with -EPERM if the CAP_NET_ADMIN is missing.
Acked-by: Jason Wang <jasowang@redhat.com> Reviewed-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Message-Id: <20240109111025.1320976-4-maxime.coquelin@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
show more ...
|
56e71885 | 09-Jan-2024 |
Maxime Coquelin <maxime.coquelin@redhat.com> |
vduse: Temporarily fail if control queue feature requested
Virtio-net driver control queue implementation is not safe when used with VDUSE. If the VDUSE application does not reply to control queue m
vduse: Temporarily fail if control queue feature requested
Virtio-net driver control queue implementation is not safe when used with VDUSE. If the VDUSE application does not reply to control queue messages, it currently ends up hanging the kernel thread sending this command.
Some work is on-going to make the control queue implementation robust with VDUSE. Until it is completed, let's fail features check if control-queue feature is requested.
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Message-Id: <20240109111025.1320976-3-maxime.coquelin@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com>
show more ...
|
b774f93d | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
vduse: Support specifying bounce buffer size via sysfs
As discussed in [1], this adds sysfs interface to support specifying bounce buffer size in virtio-vdpa case. It would be a performance tuning p
vduse: Support specifying bounce buffer size via sysfs
As discussed in [1], this adds sysfs interface to support specifying bounce buffer size in virtio-vdpa case. It would be a performance tuning parameter for high throughput workloads.
[1] https://lore.kernel.org/netdev/e8f25a35-9d45-69f9-795d-bdbbb90337a3@redhat.com/
Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230323053043.35-12-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
d4438d23 | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
vduse: Delay iova domain creation
Delay creating iova domain until the vduse device is registered to vdpa bus.
This is a preparation for adding sysfs interface to support specifying bounce buffer s
vduse: Delay iova domain creation
Delay creating iova domain until the vduse device is registered to vdpa bus.
This is a preparation for adding sysfs interface to support specifying bounce buffer size for the iova domain.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230323053043.35-11-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
e38632dd | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
vduse: Signal vq trigger eventfd directly if possible
Now the vdpa callback will associate an trigger eventfd in some cases. For performance reasons, VDUSE can signal it directly during irq injectio
vduse: Signal vq trigger eventfd directly if possible
Now the vdpa callback will associate an trigger eventfd in some cases. For performance reasons, VDUSE can signal it directly during irq injection.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20230323053043.35-10-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
66640f4a | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
vduse: Add sysfs interface for irq callback affinity
Add sysfs interface for each vduse virtqueue to get/set the affinity for irq callback. This might be useful for performance tuning when the irq c
vduse: Add sysfs interface for irq callback affinity
Add sysfs interface for each vduse virtqueue to get/set the affinity for irq callback. This might be useful for performance tuning when the irq callback affinity mask contains more than one CPU.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Message-Id: <20230323053043.35-8-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
show more ...
|
bfae1648 | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
vduse: Support get_vq_affinity callback
This implements get_vq_affinity callback so that the virtio-blk driver can build the blk-mq queues based on the irq callback affinity.
Signed-off-by: Xie Yon
vduse: Support get_vq_affinity callback
This implements get_vq_affinity callback so that the virtio-blk driver can build the blk-mq queues based on the irq callback affinity.
Signed-off-by: Xie Yongji <xieyongji@bytedance.com> Message-Id: <20230323053043.35-7-xieyongji@bytedance.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
show more ...
|
28f6288e | 23-Mar-2023 |
Xie Yongji <xieyongji@bytedance.com> |
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.
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>
show more ...
|