numam-dpdk/examples/vhost
Cheng Jiang b9f23beee0 examples/vhost: handle memory hotplug for async vhost
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@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
2021-07-23 10:58:53 +02:00
..
ioat.c vhost: fix async callbacks return type 2021-07-23 10:58:53 +02:00
ioat.h vhost: fix async callbacks return type 2021-07-23 10:58:53 +02:00
main.c examples/vhost: handle memory hotplug for async vhost 2021-07-23 10:58:53 +02:00
main.h examples/vhost: handle memory hotplug for async vhost 2021-07-23 10:58:53 +02:00
Makefile examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
meson.build examples: reduce indentation in build files 2021-04-21 14:04:09 +02:00
virtio_net.c examples/vhost: check memory table query 2021-03-31 08:46:32 +02:00