Skip to content

Commit 85ebde7

Browse files
ShadowCurseroypat
authored andcommitted
fix: update AMD host cpu features checks
Nested virtualization is now disabled and some cpu features/MSRs now should be marked as host only. These cpu features/MSRs are described the AMD reference manual at "SVM Revision and Feature Identification" section. Signed-off-by: Egor Lazarchuk <yegorlz@amazon.co.uk>
1 parent d990331 commit 85ebde7

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
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 | {

0 commit comments

Comments
 (0)