mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
If a resource bridge becomes closed for some reason, it will always get signaled as ready and will make the poll call return immediately, only to make us handle an error and go back to the same loop indefinitely. This results in lots of error messages in the host's log and one CPU core very busy doing nothing. Fix this by making `process_resource_bridge()` return a `Result` and removing the faulty bridge when it returns an error. BUG=b:161774071 TEST=Make the video process exit after establishing the bridge, notice that the bridge is properly removed on the GPU process side and the latter does not flood the host's logs with the same error. Change-Id: I19767d779a44caccf0870faf422c7234c4232818 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3310341 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_serial | ||
Cargo.toml |