cloud-hypervisor/vm-virtio
Sebastien Boeuf baec27698e vm-virtio: Don't break from epoll loop on EINTR
The existing code taking care of the epoll loop was too restrictive as
it was propagating the error returned from the epoll_wait() syscall, no
matter what was the error. This causes the epoll loop to be broken,
leading to a non-functional virtio device.

This patch enforces the parsing of the returned error and prevent from
the error propagation in case it is EINTR, which stands for Interrupted.
In case the epoll loop is interrupted, it is appropriate to retry.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2019-08-02 08:37:34 +01:00
..
src vm-virtio: Don't break from epoll loop on EINTR 2019-08-02 08:37:34 +01:00
Cargo.toml vm-virtio: Add vhost-user-fs support 2019-06-27 21:46:00 +02:00