Skip to content

Commit cb1b8ea

Browse files
committed
test: Remove "ibpb_exit_to_user" if not Amazon Linux
Our test ubuntu host kernel hasn't backported the patch for VMScape [1]. Remove "ibpb_exit_to_user" from the host-minus-guest feature list only on Intel Cascade Lake that is the one where we run tests for Ubuntu. [1]: torvalds/linux@2f8f173 Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 99365ff commit cb1b8ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/integration_tests/functional/test_cpu_features_host_vs_guest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,12 @@ def test_host_vs_guest_cpu_features(uvm_plain_any):
186186
expected_host_minus_guest = INTEL_HOST_ONLY_FEATS
187187
expected_guest_minus_host = INTEL_GUEST_ONLY_FEATS
188188

189+
# Ubuntu hasn't backported the patch for VMScape yet.
190+
# This is only requried for Intel Cascade Lake since we only run
191+
# tests on Intel Cascade Lake for Ubuntu.
192+
if "amzn" not in global_props.host_os:
193+
expected_host_minus_guest -= {"ibpb_exit_to_user"}
194+
189195
# Linux kernel v6.4+ passes through the CPUID bit for "flush_l1d" to guests.
190196
# https://github.com/torvalds/linux/commit/45cf86f26148e549c5ba4a8ab32a390e4bde216e
191197
#

0 commit comments

Comments
 (0)