Skip to content

Commit 3211563

Browse files
committed
fix(test): skip test_cpu_topology test on Ubuntu
On Aarch64 systems we do not normalize vCPUs, we let KVM configure them. This means that the CPU cache hierarchy exposed to the guest depends entirely on what the KVM decides it to be. We observed that when we're running tests on Ubuntu hosts with a 6.14 kernel the cache hierarchy is different than the one we expect on AL hosts. Until we decide how to deal with CPU hierarchy in a controled way (or not) skip the test on Ubuntu systems. The actual test checks that the host kernel version is greater or equal to 6.14. Signed-off-by: Babis Chalios <[email protected]>
1 parent d33011c commit 3211563

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/integration_tests/functional/test_topology.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
import subprocess
77

88
import pytest
9+
from packaging import version
910

1011
import framework.utils_cpuid as utils
1112
from framework.properties import global_props
13+
from framework.utils import get_kernel_version
1214

1315
TOPOLOGY_STR = {1: "0", 2: "0,1", 16: "0-15"}
1416
PLATFORM = platform.machine()
@@ -198,6 +200,12 @@ def test_cpu_topology(uvm_plain_any, num_vcpus, htt):
198200
"""
199201
if htt and PLATFORM == "aarch64":
200202
pytest.skip("SMT is configurable only on x86.")
203+
204+
# TODO:Remove (or adapt) this once we unify the way we expose the CPU cache hierarchy on
205+
# Aarch64 systems.
206+
if version.parse(get_kernel_version()) >= version.parse("6.14"):
207+
pytest.skip("Starting on 6.14 KVM exposes a different CPU cache hierarchy")
208+
201209
vm = uvm_plain_any
202210
vm.spawn()
203211
vm.basic_config(vcpu_count=num_vcpus, smt=htt)

0 commit comments

Comments
 (0)