crosvm/common
David Stevens b5aea72eb7 balloon: add failable balloon adjustment
Add a flag to the adjust command that allows the command to fail. When
this flag is set, a reply is sent with the balloon size at the end of
adjustment.

The flag also changes the semantics of inflation somewhat.  By default,
the balloon driver will indefinitely retry if it fails to allocate pages
during inflation. When the flag is set, the device reacts to puff
failure notifications on the event queue by setting the target num_pages
to the current balloon size, to abort and fail the inflation attempt.

BUG=b:213962590
TEST=manual testing with crrev.com/c/3394436
TEST=check ARCVM balloon still works

Change-Id: Idd606b90550c544ce5bea085f62ac35979679d71
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3394442
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: David Stevens <stevensd@chromium.org>
2022-03-02 01:07:00 +00:00
..
assertions Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
audio_streams Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
balloon_control balloon: add failable balloon adjustment 2022-03-02 01:07:00 +00:00
base base: allow creating Arena from base::MemoryMapping 2022-02-28 19:16:39 +00:00
cros-fuzz Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
cros_async balloon: add event queue 2022-03-02 01:06:58 +00:00
cros_asyncv2 Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
data_model Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
io_uring Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
p9 Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
sync Enable windows tests for a few crates 2022-02-18 03:18:58 +00:00
sys_util Move os independent errno under a new crate sys_util_core 2022-02-22 23:18:38 +00:00
sys_util_core Move os independent errno under a new crate sys_util_core 2022-02-22 23:18:38 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +00:00

Crosvm General Purpose Libraries

The crates in this folder are general purpose libraries used by other projects in ChromeOS as well.

To make them accessible independendly of crosvm, each of these crates is excluded from the crosvm workspace.

List of libraries

  • cros-fuzz: Support crate for fuzzing rust code in ChromeOS
  • p9: Server implementation of the 9p file system protocol