Skip to content

Commit 2126f95

Browse files
authored
Merge branch 'main' into mmds_accept
2 parents effc2d4 + 7dfe276 commit 2126f95

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

tests/integration_tests/functional/test_cpu_features_host_vs_guest.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@
120120
"vgif",
121121
"vmcb_clean",
122122
"wdt",
123+
"npt",
124+
"nrip_save",
125+
"svm",
123126
}
124127

125128
AMD_GUEST_ONLY_FEATS = {
@@ -130,14 +133,7 @@
130133
}
131134

132135
AMD_MILAN_HOST_ONLY_FEATS_6_1 = AMD_MILAN_HOST_ONLY_FEATS - {
133-
"lbrv",
134-
"pausefilter",
135-
"pfthreshold",
136136
"sme",
137-
"tsc_scale",
138-
"v_vmsave_vmload",
139-
"vgif",
140-
"vmcb_clean",
141137
} | {"brs", "rapl", "v_spec_ctrl"}
142138

143139
AMD_GENOA_HOST_ONLY_FEATS = AMD_MILAN_HOST_ONLY_FEATS | {

tests/integration_tests/functional/test_cpu_template_helper.py

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

179179

180-
# List of MSR indices that should not be tested due to its mutability.
180+
# List of MSR indices that should not be tested due to its mutability or inavailablility
181+
# in the guest.
181182
MSR_EXCEPTION_LIST = [
182183
# MSR_KVM_WALL_CLOCK and MSR_KVM_SYSTEM_TIME depend on the elapsed time.
183184
0x11,
@@ -232,6 +233,10 @@ def build_cpu_config_dict(cpu_config_path):
232233
# MSR_AMD64_VIRT_SPEC_CTRL is R/W and can be modified by OS to control
233234
# security features for speculative attacks.
234235
0xC001011F,
236+
# Not available in the guest
237+
# MSR_TSC_RATE is a Time Stamp Counter Ratio which allows the hypervisor
238+
# to control the guest's view of the Time Stamp Counter.
239+
0xC0000104,
235240
]
236241

237242

0 commit comments

Comments
 (0)