vhost: handle memory hotplug with vDPA devices
authorMatan Azrad <matan@mellanox.com>
Mon, 29 Jun 2020 14:08:19 +0000 (14:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit127f9c6f7b78a47b73b3e1c39e021cc81a30b4c9
tree29384a9f89d4df39a1b2c8d214dfb3d07ae4c5b9
parentd0fcc38f5fa41778968b6f39777a61edb3aef813
vhost: handle memory hotplug with vDPA devices

Some vDPA drivers' basic configurations should be updated when the
guest memory is hotplugged.

Close vDPA device before hotplug operation and recreate it after the
hotplug operation is done.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/vhost_user.c