ivshmem: fix memory_region_del_eventfd assertion failure
We do not register ioeventfds unless the IVSHMEM_IOEVENTFD feature is set. The same feature must be checked before releasing the eventfds. Regression introduced by commit 563027cc (ivshmem: use EventNotifier and memory API, 2012-07-05). Reported-by: NCam Macdonnell <cam@cs.ualberta.ca> Tested-by: NCam Macdonnell <cam@cs.ualberta.ca> Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com> Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
Showing