mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
52e0cbf40c
Update the pit to have get/set functions so it can be used as part of an irqchip. Some of this translation is imprecise because we use a rust Instant for storing the timer start time, where the PitState expects it in terms of the host's monotonic clock, but it shouldn't really matter because getting/setting the pit is only exposed as a plugin feature. This also required adding some convenience functions to the sys_util Clock. Bug: chromium:1077058 Test: cargo test -p devices Change-Id: I761747cd03ed123a2d2e685e0679a3d025a165ae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2265043 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Colin Downs-Razouk <colindr@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |