numam-dpdk/examples
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
..
bbdev_app examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
bond examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
bpf examples: remove old build system references 2020-09-07 23:51:57 +02:00
cmdline examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
distributor examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ethtool examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
eventdev_pipeline examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
fips_validation examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
flow_classify examples/flow_classify: fix NUMA check of port and core 2021-05-12 21:46:05 +02:00
flow_filtering examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
helloworld examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ioat examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ip_fragmentation examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ip_pipeline examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ip_reassembly examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ipsec-secgw examples/ipsec-secgw: support inline UDP encapsulation 2021-07-20 10:32:05 +02:00
ipv4_multicast examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
kni examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l2fwd examples/l2fwd: remove mac-updating option 2021-07-05 15:11:23 +02:00
l2fwd-cat examples/l2fwd-cat: fix NUMA check of port and core 2021-05-12 21:46:05 +02:00
l2fwd-crypto examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l2fwd-event examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l2fwd-jobstats examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l2fwd-keepalive examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l3fwd examples/l3fwd: remove useless reloads in EM main loop 2021-07-07 11:54:21 +02:00
l3fwd-acl examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l3fwd-graph examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
l3fwd-power examples/l3fwd-power: add baseline PMD management mode 2021-07-10 08:43:13 +02:00
link_status_interrupt examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
multi_process examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
ntb examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
packet_ordering examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
performance-thread examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
pipeline examples/pipeline: fix out of bounds array access 2021-07-21 13:51:17 +02:00
ptpclient examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
qos_meter examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
qos_sched examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
rxtx_callbacks examples/rxtx_callbacks: fix port ID format specifier 2021-05-12 21:46:05 +02:00
server_node_efd examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
service_cores examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
skeleton examples/skeleton: fix NUMA check of port and core 2021-05-12 21:46:05 +02:00
timer examples/timer: fix time interval 2021-05-12 16:52:20 +02:00
vdpa examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vhost examples/vhost: handle memory hotplug for async vhost 2021-07-23 10:58:53 +02:00
vhost_blk examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vhost_crypto examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vm_power_manager examples/vm_power: remove VM channel number check 2021-05-05 23:43:22 +02:00
vmdq examples: fix pkg-config override 2021-05-05 22:20:24 +02:00
vmdq_dcb 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