ivshmem: add hostmem backend
commitd9453c93fea0c9c67f9c63bfa79a87631317d746
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 29 Jun 2015 22:10:16 +0000 (30 00:10 +0200)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 26 Oct 2015 09:19:53 +0000 (26 10:19 +0100)
tree6dccddca15ec4d8416471f2378a4cd2f1e28c1d2
parent2c04752cc8e37b15be4643570b49abb3128a8a46
ivshmem: add hostmem backend

Instead of handling allocation, teach ivshmem to use a memory backend.
This allows to use hugetlbfs backed memory now.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/misc/ivshmem.c
tests/ivshmem-test.c