Skip to content

Commit a6ebc9a

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 a6ebc9a

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
@@ -2,11 +2,13 @@
22
# SPDX-License-Identifier: Apache-2.0
33
"""Tests for ensuring correctness of CPU and cache topology in the guest."""
44

5+
from packaging import version
56
import platform
67
import subprocess
78

89
import pytest
910

11+
from framework.utils import get_kernel_version
1012
import framework.utils_cpuid as utils
1113
from framework.properties import global_props
1214

@@ -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)