Re: [dpdk-dev] [PATCH] vhost: restore IOTLB mempool allocation

2021-05-18 Thread Xia, Chenbo
> -Original Message- > From: David Marchand > Sent: Monday, May 17, 2021 5:00 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; Yigit, Ferruh ; Maxime > Coquelin ; Xia, Chenbo ; > Zhihong Wang ; Junjie Wan > > Subject: [PATCH] vhost: restore IOTLB mempool allocation > > As explained by Ch

Re: [dpdk-dev] [PATCH] vhost: restore IOTLB mempool allocation

2021-05-17 Thread Xia, Chenbo
> -Original Message- > From: David Marchand > Sent: Monday, May 17, 2021 5:00 PM > To: dev@dpdk.org > Cc: tho...@monjalon.net; Yigit, Ferruh ; Maxime > Coquelin ; Xia, Chenbo ; > Zhihong Wang ; Junjie Wan > > Subject: [PATCH] vhost: restore IOTLB mempool allocation > > As explained by Ch

[dpdk-dev] [PATCH] vhost: restore IOTLB mempool allocation

2021-05-17 Thread David Marchand
As explained by Chenbo, IOTLB messages will be sent when some queues are not enabled. If we initialize IOTLB in vhost_user_set_vring_num, it could happen that IOTLB update comes when IOTLB pool of disabled queues are not initialized. Fixes: 968bbc7e2e50 ("vhost: avoid IOTLB mempool allocation whil