mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-28 17:44:10 +00:00
895c90c5f2
ARM supports paravirtual clocks or "stolen time" accounting by allocating a page of memory in the guest memory map for a pvtime structure and then sharing that address with the guest and updating it in the host to tell the guest about how much time has been stolen from the guest because the guest hasn't been running. Read all about it here[1]. Add support to crosvm to allocate this page (for now a 64K size chunk of memory that all VCPUs share access to) and then set the address of the page in each VCPU when starting up. [1] https://www.kernel.org/doc/html/latest/virt/kvm/arm/pvtime.html#stolen-time BUG=chromium:1130828, b:169094241 TEST=emerge-trogdor crosvm && cros deploy $DUT crosvm && \ tast run $DUT crostini.Basic.buster_stable; dmesg | grep pv # in the guest shows "steal time" Change-Id: Ie3497bb22fb0e38eeff8ebac14b4213824bb6ca6 Disallow-Recycled-Builds: test-failures Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2871394 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Stephen Boyd <swboyd@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |