vhost: handle memory hotplug for async vhost
authorJiayu Hu <jiayu.hu@intel.com>
Fri, 23 Jul 2021 08:09:36 +0000 (08:09 +0000)
committerChenbo Xia <chenbo.xia@intel.com>
Fri, 23 Jul 2021 08:58:53 +0000 (10:58 +0200)
commit259caa21d70181d7bc986f9921c813abdac90793
tree0f7e3c802a47def5b87d952f6a2225d25eb259d9
parentb737fd613969df722ddaa1cbcfd83aaad2441dbe
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.

This patch is to notify the vhost application of stopping DMA
transfers.

Signed-off-by: Jiayu Hu <jiayu.hu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/vhost/vhost_user.c