Skip to content

Commit f85d088

Browse files
ShadowCurseroypat
authored andcommitted
fix: add MSR_TSC_RATE to the MSR_EXCEPTION_LIST
Now this MSR is host only and not available in the guest. Check AMD reference manual at "SVM Revision and Feature Identification" section for more information. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent cf34eed commit f85d088

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/integration_tests/functional/test_cpu_template_helper.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ def build_cpu_config_dict(cpu_config_path):
173173
}
174174

175175

176-
# List of MSR indices that should not be tested due to its mutability.
176+
# List of MSR indices that should not be tested due to its mutability or inavailablility
177+
# in the guest.
177178
MSR_EXCEPTION_LIST = [
178179
# MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME depend on the elapsed time.
179180
0x11,
@@ -221,6 +222,10 @@ def build_cpu_config_dict(cpu_config_path):
221222
# MSR_AMD64_VIRT_SPEC_CTRL is R/W and can be modified by OS to control
222223
# security features for speculative attacks.
223224
0xC001011F,
225+
# Not available in the guest
226+
# MSR_TSC_RATE is a Time Stamp Counter Ratio which allows the hypervisor
227+
# to control the guest's view of the Time Stamp Counter.
228+
0xC0000104,
224229
]
225230

226231

0 commit comments

Comments
 (0)