mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 20:53:46 +00:00
Project ACRN hypervisor
Unlike kqueue/kevent of BSD, the epoll of Linux could be add/del by using different API on the fly. This patch drops the notify used by mevent_add/del and call epoll_ctl to add/delete target fd. Only keeps global_head to track mevent added and makes the code logic in mevent_dispatch() a littel bit simpler. Another thing is related with epoll_ctl. If the target fd is regular fd which doesn't support epoll, epoll_ctl will return -1. When DM is start by systemd, the STDIO is not mapped to terminal, epoll_ctl on STDIO could return -1. Which block UOS boot. We only call mevent_add after confirm STDIO is mapped to terminal. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Zhao Yakui <yakui.zhao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> |
||
---|---|---|
.travis-dockerfiles | ||
core | ||
hw | ||
include | ||
samples | ||
tools | ||
.gitignore | ||
.travis.yml | ||
license_header | ||
MAINTAINERS | ||
Makefile | ||
README.rst |
ACRN Device Model ################# Introduction ============ The ACRN Device Model provides **device sharing** capabilities between the Service OS and Guest OSs. It is a component that is used in conjunction with the `ACRN Hypervisor`_ and this is installed within the Service OS. You can find out more about Project ACRN on the `Project ACRN documentation`_ website. Building the Device Model ========================= Build dependencies ****************** * For Clear Linux .. code-block:: console sudo swupd bundle-add os-clr-on-clr \ os-utils-gui-dev * For CentOS .. code-block:: console sudo yum install gcc \ libuuid-devel \ openssl-devel \ libpciaccess-devel * For Fedora 27 .. code-block:: console sudo dnf install gcc \ libuuid-devel \ openssl-devel \ libpciaccess-devel Build ***** To build the Device Model .. code-block:: console make To clean the build artefacts .. code-block:: console make clean Runtime dependencies ******************** * On CentOS .. code-block:: console sudo yum install openssl-libs \ zlib \ libpciaccess \ libuuid * On Fedora 27 .. code-block:: console sudo dnf install openssl-libs \ zlib \ libpciaccess \ libuuid .. _`ACRN Hypervisor`: https://github.com/projectacrn/acrn-hypervisor .. _`Project ACRN documentation`: https://projectacrn.github.io/