mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-06-06 17:21:22 +00:00
Teardown callback is provided when mevent_add is called. A ref_count is added to virtio_console data structure. Teardown callback needs to free the resources of the backend and when the ref_count of the virtio_console is zero the whole virtio-console is freed. Tracked-On: #1877 Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Acked-by: Yin Fengwei <fengwei.yin@intel.com>