[dpdk-dev] [PATCH v6 4/5] examples/vhost: handle memory hotplug for async vhost
Maxime Coquelin
maxime.coquelin at redhat.com
Wed Jul 21 16:37:22 CEST 2021
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.jiang at intel.com>
> ---
> examples/vhost/main.c | 55 +++++++++++++++++++++++++++++++++++++++++--
> examples/vhost/main.h | 1 +
> 2 files changed, 54 insertions(+), 2 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin at redhat.com>
Thanks,
Maxime
More information about the dev
mailing list