summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2026-09-30 10:36:26 -0700
committerSean Christopherson <seanjc@google.com>2026-09-30 14:23:46 -0700
commitfaa4f010187c5d4cc4ddb3adecb9943ff87472f5 (patch)
tree6a832c67f41b05f5a396146b30eccca9e1bc70ce /include/linux
parentdf1613249f6f65cebd6fff8782852013ca76b936 (diff)
KVM: selftests: Allow +/- 1 tolerance if expected TSC frequency is <100
Massage the nested TSC scaling test's checker to allow for validating an expected TSC frequency of 1Hz, which is achievable for L2 since L1 can use a completely arbitrary fractional ratio. To do so, set the minimum tolerance to 1, and make the thresholds inclusive, i.e. for an expected frequency of 1, allow the actual frequency to be in the range of [0,2]. Because scaling L2's frequency down to a single Hz makes the virtual TSC run soooo comically slow, and because all of the math is done with basic integer arithmetic, it's very easy for the test to observe what appears to be a frequency of 0. Link: https://patch.msgid.link/20260930173635.3362655-13-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions