[dpdk-dev] [PATCH v7 0/5] vhost: handle memory hotplug for async vhost
Thomas Monjalon
thomas at monjalon.net
Thu Jul 22 18:12:51 CEST 2021
22/07/2021 07:07, Xia, Chenbo:
> From: Jiang, Cheng1 <cheng1.jiang at intel.com>
> > When the guest memory is hotplugged, the vhost application which
> > enables DMA acceleration must stop DMA transfers before the vhost
> > re-maps the guest memory.
> >
> > This patch set is to provide an unsafe API to drain inflight pkts
> > which are submitted to DMA engine in vhost async data path, and
> > notify the vhost application of stopping DMA transfers. And enable it
> > in vhost example.
>
> Series applied to next-virtio/main. Thanks
I cannot pull this series in main branch.
There is a compilation error seen on Arm cross-compilation:
examples/vhost/main.c:1493:51: error: assignment to 'int32_t (*)(int, uint16_t, struct rte_vhost_async_desc *, struct rte_vhost_async_status *, uint16_t)' {aka 'int (*)(int, short unsigned int, struct rte_vhost_async_desc *, struct rte_vhost_async_status *, short unsigned int)'} from incompatible pointer type 'uint32_t (*)(int, uint16_t, struct rte_vhost_async_desc *, struct rte_vhost_async_status *, uint16_t)' {aka 'unsigned int (*)(int, short unsigned int, struct rte_vhost_async_desc *, struct rte_vhost_async_status *, short unsigned int)'} [-Werror=incompatible-pointer-types]
1493 | channel_ops.transfer_data = ioat_transfer_data_cb;
| ^
Other comments about the last patch:
- it is updating doc out of the original patch doing the code changes
- there is not even a reference to the code patch (Fixes: line)
- the addition in the release notes is not sorted
Last question while at it, why having the API documentation
in the vhost guide (rst file)?
Doxygen is not enough to describe the functions?
More information about the dev
mailing list