Re: [dpdk-dev] [PATCH v6 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-21 Thread Maxime Coquelin
On 7/19/21 10:10 AM, Cheng Jiang wrote: > 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. > > To accomplish that, we need to do these changes in the vhost sample: > 1. add inflight p

[dpdk-dev] [PATCH v6 4/5] examples/vhost: handle memory hotplug for async vhost

2021-07-19 Thread Cheng Jiang
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. To accomplish that, we need to do these changes in the vhost sample: 1. add inflight packets count. 2. add vring_state_changed() callback. 3.