numam-dpdk/lib/librte_ivshmem
Sergio Gonzalez Monroy cd10c42eb5 mem: fix ivshmem freeing
There is no sync between host and guest to allow removal of memzones,
and freeing them result in undefined behavior.

In the guest, we identify IVSHMEM memsegs/memzones by having
ioremap_addr != 0. In the host, nothing is done to the memzone, meaning
ioremap_addr == 0.

As a solution, mark memzones being added to IVSHMEM in the host, by
setting ioremap_addr, then return an error whenever we try to free an
IVSHMEM memzone.

Fixes: ff909fe21f ("mem: introduce memzone freeing")

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2015-08-09 19:45:25 +02:00
..
Makefile mk: add library version extension 2015-02-03 16:56:58 +01:00
rte_ivshmem_version.map lib: provide initial versioning 2015-02-03 16:56:58 +01:00
rte_ivshmem.c mem: fix ivshmem freeing 2015-08-09 19:45:25 +02:00
rte_ivshmem.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00