vhost-user: unmap previously configured memory if necessary 37/2437/2
authorSteve Shin <jonshin@cisco.com>
Fri, 19 Aug 2016 00:34:52 +0000 (17:34 -0700)
committerDamjan Marion <dmarion.lists@gmail.com>
Fri, 19 Aug 2016 13:57:10 +0000 (13:57 +0000)
commit5e15c91b6c2b5fbd7f989c5dc4edde506d254926
treece1eea2b4d28951ae4da8f9f8024358bfde616e6
parent82a7af95e7553747dcebdb865a9c9a67826745d4
vhost-user: unmap previously configured memory if necessary

If there's any memory-mapped region configued previously,
it should be unmapped before setting up a new vhost memory table.
Otherwise, huge page leakage will happen.

Change-Id: I375f603ea303919f1502df44a26a7384ab2ea00e
Signed-off-by: Steve Shin <jonshin@cisco.com>
vnet/vnet/devices/dpdk/vhost_user.c