crosvm/devices
Daniel Verkamp 4f06b28a94 devices: vhost-user frontend: fix backend_req on Linux
On Linux, we don't need to monitor anything special to get close
notifications; the Token::ReqHandlerRead event will be generated when
the fd closes (with is_hungup = true) and the closure will be handled
inline.

Adding the same backend_req_handler.get_read_notifier() to the wait_ctx
again causes an error, since that fd was already added in a previous
call.

BUG=None
TEST=`crosvm device block` + `crosvm run`

Fixes: 8de3640c01 ("devices: vhost-user frontend: rewrite worker as non-async")
Change-Id: I1318c5395670476bdc333a2bae1e8c8aba2c658e
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5937871
Reviewed-by: Frederick Mayle <fmayle@google.com>
Commit-Queue: Daniel Verkamp <dverkamp@chromium.org>
2024-10-17 04:04:23 +00:00
..
src devices: vhost-user frontend: fix backend_req on Linux 2024-10-17 04:04:23 +00:00
tests/irqchip hypervisor: pass IoOperation data as slices 2024-10-15 20:21:19 +00:00
Cargo.toml device: fs: Setup UID-GID mapping between guest and host without user-namespace. 2024-10-11 06:34:30 +00:00