diff options
| author | Ilias Stamatis <[email protected]> | 2021-05-26 19:44:14 +0100 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2021-06-17 13:09:29 -0400 |
| commit | 83150f2932ec4712e2630009ac4a585d4aba7a9e (patch) | |
| tree | ba42c0ea93773743d40a0838151496eace71a8f2 /tools/perf/scripts/python | |
| parent | 307a94c721fed1aaaeee68115df6f7fb8193b23f (diff) | |
KVM: X86: Add functions that calculate the nested TSC fields
When L2 is entered we need to "merge" the TSC multiplier and TSC offset
values of 01 and 12 together.
The merging is done using the following equations:
offset_02 = ((offset_01 * mult_12) >> shift_bits) + offset_12
mult_02 = (mult_01 * mult_12) >> shift_bits
Where shift_bits is kvm_tsc_scaling_ratio_frac_bits.
Signed-off-by: Ilias Stamatis <[email protected]>
Reviewed-by: Maxim Levitsky <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions