mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
d1612ed53c
for ease of initial implementation the number of WSS bins was hard-coded to 4, however the WSS spec and kernel driver permit any number of bins between 2-16. this patchset introduces a crosvm run flag which allows to override the default 4 bins. the protobuf-encoded WSS report will scale the number of bins correctly in the return value, however the C crosvm_control_* API will always use an array of 16 buckets, with a `num_bins` parameter that indicates how many of them are actually valid. this has been done to preserve safety across the ffi boundary. this patchset also removes the sending of an initial WSS config. the coordinating program (e.g. concierge et al.) is responsible for sending the config to the guest after boot via the crosvm_control_* API. this is largely due to the fact there may be various desirable configs for varying scenarios and it does not make sense to have a baked-in default config anymore. BUG=b/278118696 TEST=https://x20.corp.google.com/users/dr/drmasquatch/socket-pinger-variable-bins Change-Id: Ifaef2933a13a59d8d2580b5a9e283568fe6e86cf Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4577421 Commit-Queue: maciek swiech <drmasquatch@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
build.rs | ||
Cargo.toml |