[PATCH v2] example: vdpa: support run in nested virtualization environment

2022-10-24 Thread Hao Chen
related to the opening of the vIOMMU. This patch add option '--iommu-support' to use guest vIOMMU to protect vhost, then the ping test in vm-L2 is OK. This option is required in a nested virtualization environment. Signed-off-by: Hao Chen --- v2: *fprintf all string including the eal on

[PATCH v3] examples/vdpa: support running in nested virtualization environment

2022-10-24 Thread Hao Chen
related to the opening of the vIOMMU. This patch add option '--iommu-support' to use guest vIOMMU to protect vhost, then the ping test in vm-L2 is OK. This option is required in a nested virtualization environment. Signed-off-by: Hao Chen --- v3: *Modify mail title. v2: *fprintf

Re: [PATCH v3] examples/vdpa: support running in nested virtualization environment

2022-10-25 Thread Hao Chen
On 2022/10/26 14:10, Maxime Coquelin wrote: Hi Hao On 10/25/22 08:19, Hao Chen wrote: When we run dpdk vdpa in the nested virtual machine vm-L1 and ping test in vm-L2, the ping is NG. The reason for troubleshooting is NG == not good? Please don't use abbreviations. Yes, I wil

[PATCH] vhost: fix vdpa driver multi-queue initialization failure

2023-01-27 Thread Hao Chen
ich will cause 'vdpa_dev->ops->dev_conf' to obtain QEMU vring addr information from 'vhost_devices->virtqueue[i]' failed. Here, nr_ving is modified to dev->nr_vring, so that multiple queues can obtain the corresponding 'vhost_devices->virtqueue[i]'. Si

[PATCH] vhost: fix vdpa driver multi-queue initialization failure

2023-01-27 Thread Hao Chen
ich will cause 'vdpa_dev->ops->dev_conf' to obtain QEMU vring addr information from 'vhost_devices->virtqueue[i]' failed. Here, nr_ving is modified to dev->nr_vring, so that multiple queues can obtain the corresponding 'vhost_devices->virtqueue[i]'. Si

Re: [PATCH] vhost: fix vdpa driver multi-queue initialization failure

2023-02-08 Thread Hao Chen
On 2023/2/3 18:38, Maxime Coquelin wrote: On 1/28/23 04:06, Hao Chen wrote: When 'virtio_is_Ready' returns 1, 'vdpa_dev->ops->dev_conf' will be called, and the vdpa driver called 'rte_vhost_get_vhost_vring' to get the vring addr info from 'vhost

[PATCH] vhost: fix deadlock during software live migration of VDPA in a nested virtualization environment

2024-01-18 Thread Hao Chen
messages to dpdk-vdpa. Dpdk vdpa will call vhost_user_iotlb_msg-> vhost_user_iotlb_cache_insert, here, will obtain the write lock `iotlb_lock`, but the read lock `iotlb_lock` has not been released and will block here. This patch add lock and unlock function to fix the deadlock. Signed-off-by

Re: [PATCH] vhost: fix deadlock during software live migration of VDPA in a nested virtualization environment

2024-01-18 Thread Hao Chen
在 2024/1/18 22:46, David Marchand 写道: Hello, On Thu, Jan 18, 2024 at 11:34 AM Hao Chen wrote: In a nested virtualization environment, running dpdk vdpa in QEMU-L1 for software live migration will result in a deadlock between dpdke-vdpa and QEMU-L2 processes. rte_vdpa_relay_vring_used

[PATCH v2] vhost: fix deadlock during software live migration of VDPA in a nested virtualization environment

2024-01-21 Thread Hao Chen
as not been released and will block here. This patch add lock and unlock function to fix the deadlock. Fixes: b13ad2decc83 ("vhost: provide helpers for virtio ring relay") Cc: sta...@dpdk.org Signed-off-by: Hao Chen --- Changes v1 ... v2: - protect the vhost_alloc_copy_ind_table() call too.

[PATCH] vhost: enable CONFIG feature

2022-09-13 Thread Hao Chen
Enable this feature, so that libvirt or qemu can call vdpa vendor driver's ops '.get_config' through 'vhost_net_get_config' to get the mac address of the vdpa hardware without manual configuration. Signed-off-by: Hao Chen --- lib/vhost/vhost_user.h | 3 ++- 1 file ch

Re: [PATCH] vhost: enable CONFIG feature

2022-10-08 Thread Hao Chen
On 2022/9/26 15:26, Xia, Chenbo wrote: -Original Message- From: Hao Chen Sent: Tuesday, September 13, 2022 5:55 PM To: maxime.coque...@redhat.com; Xia, Chenbo Cc: dev@dpdk.org; ho...@yusur.tech; z...@yusur.tech; Hao Chen Subject: [PATCH] vhost: enable CONFIG feature Enable this

[PATCH v2] vhost: enable CONFIG feature for vdpa

2022-10-10 Thread Hao Chen
ROTOCOL_FEATURES to function 'rte_vhost_driver_get_protocol_features'. Signed-off-by: Hao Chen --- lib/vhost/socket.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/vhost/socket.c b/lib/vhost/socket.c index a8df2d484a..df8f26a5bd 100644 --- a/lib/vhost/socket.c +++

[PATCH] example: vdpa: support run in nested virtualization environment

2022-10-10 Thread Hao Chen
related to the opening of the vIOMMU. This patch add option '--iommu-support' to use guest vIOMMU to protect vhost, then the ping test in vm-L2 is OK. This option is required in a nested virtualization environment. Signed-off-by: Hao Chen --- examples/vdpa/main.c | 19 ++---

[PATCH v4] examples/vdpa: support running in nested virtualization environment

2022-11-13 Thread Hao Chen
, and the kernel parameter is added with 'intel_iommu=on iommu=pt'. VM-L1's xml add viommu and virtio device adds iommu='on' ats='on'. VM-L2's xml enables viommu, and adds parameters 'intel_iommu=on iommu=pt' to kernel. Then the ping test in vm-L2

[dpdk-dev] which 40G card support DPDK or DPDK 2.0

2015-01-23 Thread Jim Hao Chen
Hello: I am sorry if this question has been asked before, or this is not right list to ask, I searched the list archive, did not see any answer. Any one can share information about which Mellanox 40G NIC on the mark can/will support DPDK or DPDK 2.0? The DPDK supported NIC page only lis