cpu_map: Add support for arch-capabilities feature

The feature was added to QEMU in 3.1.0 and it is currently blocking
migration, which is expected to change in the future. Luckily 3.1.0 is
new enough to give us migratability hints on each feature via
query-cpu-model-expension, which means we don't need to use the
"migratable" attribute on the CPU map XML.

The kernel calls this feature arch_capabilities and RHEL/CentOS 7.* use
arch-facilities. Apparently some CPU test files were gathered with the
RHEL version of QEMU. Let's update the test files to avoid possible
confusion about the correct naming.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Jiri Denemark 2019-01-10 14:35:07 +01:00
parent 2ebcff3a74
commit 511df17aec
5 changed files with 7 additions and 4 deletions

View File

@ -326,6 +326,9 @@
<feature name='stibp'> <feature name='stibp'>
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x08000000'/> <cpuid eax_in='0x07' ecx_in='0x00' edx='0x08000000'/>
</feature> </feature>
<feature name='arch-capabilities'> <!-- arch_capabilities, arch-facilities -->
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x20000000'/>
</feature>
<feature name='ssbd'> <feature name='ssbd'>
<cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/> <cpuid eax_in='0x07' ecx_in='0x00' edx='0x80000000'/>
</feature> </feature>

View File

@ -232,7 +232,7 @@
"avx512vbmi": false, "avx512vbmi": false,
"kvm-asyncpf": true, "kvm-asyncpf": true,
"spec-ctrl": false, "spec-ctrl": false,
"arch-facilities": false, "arch-capabilities": false,
"model": 1, "model": 1,
"node-id": -1 "node-id": -1
} }

View File

@ -232,7 +232,7 @@
"avx512vbmi": false, "avx512vbmi": false,
"kvm-asyncpf": true, "kvm-asyncpf": true,
"spec-ctrl": true, "spec-ctrl": true,
"arch-facilities": false, "arch-capabilities": false,
"model": 63, "model": 63,
"node-id": -1 "node-id": -1
} }

View File

@ -232,7 +232,7 @@
"avx512vbmi": false, "avx512vbmi": false,
"kvm-asyncpf": true, "kvm-asyncpf": true,
"spec-ctrl": true, "spec-ctrl": true,
"arch-facilities": false, "arch-capabilities": false,
"model": 79, "model": 79,
"node-id": -1 "node-id": -1
} }

View File

@ -232,7 +232,7 @@
"avx512vbmi": false, "avx512vbmi": false,
"kvm-asyncpf": true, "kvm-asyncpf": true,
"spec-ctrl": true, "spec-ctrl": true,
"arch-facilities": false, "arch-capabilities": false,
"model": 85, "model": 85,
"node-id": -1 "node-id": -1
} }