mirror of https://gitee.com/openkylin/libvirt.git
qemu: Perform full expansion on ARM
The ARM implementation of query-cpu-model-expansion only supports full expansion, so we have to make sure we're using that expansion mode if we want to obtain any useful data. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Tested-by: Andrew Jones <drjones@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
62e7d1fdc4
commit
25c52cb32f
|
@ -2559,10 +2559,13 @@ virQEMUCapsProbeQMPHostCPU(virQEMUCapsPtr qemuCaps,
|
|||
* the initial static expansion to get all variants of feature names.
|
||||
*/
|
||||
if (ARCH_IS_X86(qemuCaps->arch) &&
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CANONICAL_CPU_FEATURES))
|
||||
!virQEMUCapsGet(qemuCaps, QEMU_CAPS_CANONICAL_CPU_FEATURES)) {
|
||||
type = QEMU_MONITOR_CPU_MODEL_EXPANSION_STATIC_FULL;
|
||||
else
|
||||
} else if (ARCH_IS_ARM(qemuCaps->arch)) {
|
||||
type = QEMU_MONITOR_CPU_MODEL_EXPANSION_FULL;
|
||||
} else {
|
||||
type = QEMU_MONITOR_CPU_MODEL_EXPANSION_STATIC;
|
||||
}
|
||||
|
||||
/* Older s390 models do not report a feature set */
|
||||
if (ARCH_IS_S390(qemuCaps->arch))
|
||||
|
|
|
@ -21228,7 +21228,7 @@
|
|||
{
|
||||
"execute": "query-cpu-model-expansion",
|
||||
"arguments": {
|
||||
"type": "static",
|
||||
"type": "full",
|
||||
"model": {
|
||||
"name": "host"
|
||||
}
|
||||
|
@ -21237,10 +21237,54 @@
|
|||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-42",
|
||||
"return": {
|
||||
"model": {
|
||||
"name": "host",
|
||||
"props": {
|
||||
"sve768": false,
|
||||
"sve128": true,
|
||||
"sve1024": false,
|
||||
"sve1280": false,
|
||||
"sve896": false,
|
||||
"sve256": true,
|
||||
"sve1536": false,
|
||||
"sve1792": false,
|
||||
"sve384": false,
|
||||
"sve": true,
|
||||
"sve2048": false,
|
||||
"sve512": true,
|
||||
"aarch64": true,
|
||||
"pmu": true,
|
||||
"sve1920": false,
|
||||
"sve1152": false,
|
||||
"sve640": false,
|
||||
"sve1408": false,
|
||||
"sve1664": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "libvirt-42"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-cpu-model-expansion",
|
||||
"arguments": {
|
||||
"type": "full",
|
||||
"model": {
|
||||
"name": "host",
|
||||
"props": {
|
||||
"migratable": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "libvirt-43"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-43",
|
||||
"error": {
|
||||
"class": "GenericError",
|
||||
"desc": "The requested expansion type is not supported"
|
||||
"desc": "Parameter 'migratable' is unexpected"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -21454,7 +21498,7 @@
|
|||
{
|
||||
"execute": "query-cpu-model-expansion",
|
||||
"arguments": {
|
||||
"type": "static",
|
||||
"type": "full",
|
||||
"model": {
|
||||
"name": "max"
|
||||
}
|
||||
|
@ -21463,9 +21507,53 @@
|
|||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-3",
|
||||
"return": {
|
||||
"model": {
|
||||
"name": "max",
|
||||
"props": {
|
||||
"sve768": true,
|
||||
"sve128": true,
|
||||
"sve1024": true,
|
||||
"sve1280": true,
|
||||
"sve896": true,
|
||||
"sve256": true,
|
||||
"sve1536": true,
|
||||
"sve1792": true,
|
||||
"sve384": true,
|
||||
"sve": true,
|
||||
"sve2048": true,
|
||||
"sve512": true,
|
||||
"aarch64": true,
|
||||
"pmu": true,
|
||||
"sve1920": true,
|
||||
"sve1152": true,
|
||||
"sve640": true,
|
||||
"sve1408": true,
|
||||
"sve1664": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "libvirt-3"
|
||||
}
|
||||
|
||||
{
|
||||
"execute": "query-cpu-model-expansion",
|
||||
"arguments": {
|
||||
"type": "full",
|
||||
"model": {
|
||||
"name": "max",
|
||||
"props": {
|
||||
"migratable": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": "libvirt-4"
|
||||
}
|
||||
|
||||
{
|
||||
"id": "libvirt-4",
|
||||
"error": {
|
||||
"class": "GenericError",
|
||||
"desc": "The requested expansion type is not supported"
|
||||
"desc": "Parameter 'migratable' is unexpected"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -175,6 +175,48 @@
|
|||
<microcodeVersion>61700242</microcodeVersion>
|
||||
<package>v4.1.0-2221-g36609b4fa3</package>
|
||||
<arch>aarch64</arch>
|
||||
<hostCPU type='kvm' model='host' migratability='no'>
|
||||
<property name='sve768' type='boolean' value='false'/>
|
||||
<property name='sve128' type='boolean' value='true'/>
|
||||
<property name='sve1024' type='boolean' value='false'/>
|
||||
<property name='sve1280' type='boolean' value='false'/>
|
||||
<property name='sve896' type='boolean' value='false'/>
|
||||
<property name='sve256' type='boolean' value='true'/>
|
||||
<property name='sve1536' type='boolean' value='false'/>
|
||||
<property name='sve1792' type='boolean' value='false'/>
|
||||
<property name='sve384' type='boolean' value='false'/>
|
||||
<property name='sve' type='boolean' value='true'/>
|
||||
<property name='sve2048' type='boolean' value='false'/>
|
||||
<property name='sve512' type='boolean' value='true'/>
|
||||
<property name='aarch64' type='boolean' value='true'/>
|
||||
<property name='pmu' type='boolean' value='true'/>
|
||||
<property name='sve1920' type='boolean' value='false'/>
|
||||
<property name='sve1152' type='boolean' value='false'/>
|
||||
<property name='sve640' type='boolean' value='false'/>
|
||||
<property name='sve1408' type='boolean' value='false'/>
|
||||
<property name='sve1664' type='boolean' value='false'/>
|
||||
</hostCPU>
|
||||
<hostCPU type='tcg' model='max' migratability='no'>
|
||||
<property name='sve768' type='boolean' value='true'/>
|
||||
<property name='sve128' type='boolean' value='true'/>
|
||||
<property name='sve1024' type='boolean' value='true'/>
|
||||
<property name='sve1280' type='boolean' value='true'/>
|
||||
<property name='sve896' type='boolean' value='true'/>
|
||||
<property name='sve256' type='boolean' value='true'/>
|
||||
<property name='sve1536' type='boolean' value='true'/>
|
||||
<property name='sve1792' type='boolean' value='true'/>
|
||||
<property name='sve384' type='boolean' value='true'/>
|
||||
<property name='sve' type='boolean' value='true'/>
|
||||
<property name='sve2048' type='boolean' value='true'/>
|
||||
<property name='sve512' type='boolean' value='true'/>
|
||||
<property name='aarch64' type='boolean' value='true'/>
|
||||
<property name='pmu' type='boolean' value='true'/>
|
||||
<property name='sve1920' type='boolean' value='true'/>
|
||||
<property name='sve1152' type='boolean' value='true'/>
|
||||
<property name='sve640' type='boolean' value='true'/>
|
||||
<property name='sve1408' type='boolean' value='true'/>
|
||||
<property name='sve1664' type='boolean' value='true'/>
|
||||
</hostCPU>
|
||||
<cpu type='kvm' name='pxa262'/>
|
||||
<cpu type='kvm' name='pxa270-a0'/>
|
||||
<cpu type='kvm' name='arm1136'/>
|
||||
|
|
Loading…
Reference in New Issue