vhost: retranslate vring addr when memory table changes
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 8 May 2018 07:10:44 +0000 (15:10 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 May 2018 21:31:50 +0000 (22:31 +0100)
commitd5022533c20aed365d513663806a999459037015
tree9dd3801866e823c1abfe0f39d83363e2e3b46f10
parent95d7e115be89f071d672d9cfd5c0eb1b23fce5fc
vhost: retranslate vring addr when memory table changes

When the vhost-user master sends memory updates using
VHOST_USER_SET_MEM request, the user backends unmap and then
mmap again the memory regions in its address space.

If the ring addresses have already been translated, it needs to
be translated again as they point to unmapped memory.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c