Skip to content

Commit 8b09bdd

Browse files
committed
test: Skip CPUID.(EAX=1FH,ECX=2) in test_cpu_config_dump_vs_actual
CPUID leaf 1FH is a preferred superset to CPUID leaf 0BH. For the same reason as CPUID leaf 0BH, the subleaf 2 should be skipped if guest userspace cpuid command enumerates it. Signed-off-by: Takahiro Itazuri <[email protected]>
1 parent 30e857b commit 8b09bdd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/integration_tests/functional/test_cpu_template_helper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,10 @@ def build_cpu_config_dict(cpu_config_path):
133133
# support it, the userspace cpuid command in ubuntu 22 reports not only
134134
# the subleaf 0 but also the subleaf 1.
135135
(0x1B, 0x1),
136+
# CPUID.1Fh is a preferred superset to CPUID.0Bh. For the same reason as
137+
# CPUID.Bh, the subleaf 2 should be skipped when the guest userspace cpuid
138+
# enumerates it.
139+
(0x1F, 0x2),
136140
# CPUID.20000000h is not documented in Intel SDM and AMD APM. KVM doesn't
137141
# report it, but the userspace cpuid command in ubuntu 22 does.
138142
(0x20000000, 0x0),

0 commit comments

Comments
 (0)