mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 18:20:34 +00:00
5404501966
Stale balloon stats results can be returned from a stats request for the following reasons: * The initial stats buffer from the guest is posted to the balloon_host_tube without a request. * Balloon stats requests can fail because the balloon device isn't completely set up yet; writing a stats request to the tube without reading the response. * Balloon stats requests can time out, returning an error. When the balloon stats are eventually computed, they will be queued to the tube without a read to consume them. Possibly other reasons too. This CL fixes this by adding an id to the balloon stats request. The id is then returned with the computed stats. When consuming stats results from the balloon_host_tube, we check that the ID is the one we expect, if not, we keep reading from the tube until we do. BUG=b:189282316 TEST=tast run dut multivm.Lifecycle.arc_host Change-Id: I08e50196a45383b30c9e510b3bacbe32888aef80 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3056310 Auto-Submit: Charles William Dick <cwd@google.com> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Charles William Dick <cwd@google.com> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org> Reviewed-by: Hikaru Nishida <hikalium@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |