mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-05 10:10:41 +00:00
turbostat shows cpu freq/c-state/thermal statistics data by reading some related MSRs. Unfortunately some MSRs such as MSR_IA32_POWER_CTL are already emulated by KVM. The emulated value are not what we want to expose to Chrome OS guest. KVM_X86_SET_MSR_FILTER ioctl provides a way to skip KVM's emulation and let user space handle the MSR. We added two MSR actions "MsrPassthroughFilter" and "MsrEmulateFilter" to indicate the corresponding MSR needs to be filtered. BUG=b:229770963 TEST=Run "turbostat" in Chrome OS guest and show correct value. Change-Id: I5920ddba091589170dc326e10187aec66f75df79 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3641465 Reviewed-by: Junichi Uekawa <uekawa@chromium.org> Commit-Queue: Junichi Uekawa <uekawa@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> |
||
---|---|---|
.. | ||
src | ||
tests | ||
bindgen.sh | ||
Cargo.toml |