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 packets count. > 2. add vring_state_changed() callback. > 3. add inflight packets clear process in destroy_device() and > vring_state_changed(). > > Signed-off-by: Cheng Jiang <cheng1.ji...@intel.com> > --- > examples/vhost/main.c | 55 +++++++++++++++++++++++++++++++++++++++++-- > examples/vhost/main.h | 1 + > 2 files changed, 54 insertions(+), 2 deletions(-) > Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com> Thanks, Maxime
- [dpdk-dev] [PATCH v6 0/5] vhost: handle memory hotplug for... Cheng Jiang
- [dpdk-dev] [PATCH v6 1/5] vhost: fix async vhost ops ... Cheng Jiang
- Re: [dpdk-dev] [PATCH v6 1/5] vhost: fix async vh... Maxime Coquelin
- [dpdk-dev] [PATCH v6 2/5] vhost: add unsafe API to cl... Cheng Jiang
- Re: [dpdk-dev] [PATCH v6 2/5] vhost: add unsafe A... Maxime Coquelin
- [dpdk-dev] [PATCH v6 3/5] vhost: handle memory hotplu... Cheng Jiang
- Re: [dpdk-dev] [PATCH v6 3/5] vhost: handle memor... Maxime Coquelin
- [dpdk-dev] [PATCH v6 4/5] examples/vhost: handle memo... Cheng Jiang
- Re: [dpdk-dev] [PATCH v6 4/5] examples/vhost: han... Maxime Coquelin
- [dpdk-dev] [PATCH v6 5/5] doc: update doc for infligh... Cheng Jiang
- Re: [dpdk-dev] [PATCH v6 5/5] doc: update doc for... Maxime Coquelin