forked from rust-vmm/kvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add KVM_SET_TSC_KHZ KVM_GET_TSC_KHZ for x86
The KVM_GET_TSC_KHZ and KVM_SET_TSC_KHZ allows users to access and control the frequency of the Time Stamp Counter. This is useful in cases such as snapshotting, where resuming from a snapshot on a different CPU than on the original machine will lead to inconsitencies in applications which make use of the Time Stamp Counter. This commit: - implements vCPU wrappers: set_tsc_khz(), get_tsc_khz() - adds unit tests - tests for expected failures if KVM_CAP_TSC_CONTROL or KVM_CAP_GET_TSC_KHZ are missing Signed-off-by: Andrei Sandu <sandreim@amazon.com> Signed-off-by: George Pisaltu <gpl@amazon.com>
- Loading branch information
1 parent
9d0fd1f
commit 94cb91d
Showing
3 changed files
with
97 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"coverage_score": 91.2, | ||
"coverage_score": 91.4, | ||
"exclude_path": "", | ||
"crate_features": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters