qemu-caps: Get host model directly from Qemu when available

When qmp query-cpu-model-expansion is available probe Qemu for its view of the
host model. In kvm environments this can provide a more complete view of the
host model because features supported by Qemu and Kvm can be considered.

Signed-off-by: Collin L. Walling <walling@linux.vnet.ibm.com>
Signed-off-by: Jason J. Herne <jjherne@linux.vnet.ibm.com>
This commit is contained in:
Jiri Denemark
2017-01-06 08:52:22 +01:00
parent fab9d6e1a9
commit 5d513d4659
4 changed files with 245 additions and 8 deletions

View File

@@ -13021,6 +13021,32 @@
"id": "libvirt-47"
}
{
"return": {
"model": {
"name": "zEC12.2-base",
"props": {
"aefsi": true,
"msa5": true,
"msa4": true,
"msa3": true,
"msa2": true,
"msa1": true,
"sthyi": true,
"edat": true,
"ri": true,
"edat2": true,
"ipter": true,
"esop": true,
"cte": true,
"te": true,
"cmm": true
}
}
},
"id": "libvirt-48"
}
{
"return": {
},

View File

@@ -133,6 +133,23 @@
<kvmVersion>0</kvmVersion>
<package></package>
<arch>s390x</arch>
<hostCPU model='zEC12.2-base'>
<feature name='aefsi' supported='yes'/>
<feature name='msa5' supported='yes'/>
<feature name='msa4' supported='yes'/>
<feature name='msa3' supported='yes'/>
<feature name='msa2' supported='yes'/>
<feature name='msa1' supported='yes'/>
<feature name='sthyi' supported='yes'/>
<feature name='edat' supported='yes'/>
<feature name='ri' supported='yes'/>
<feature name='edat2' supported='yes'/>
<feature name='ipter' supported='yes'/>
<feature name='esop' supported='yes'/>
<feature name='cte' supported='yes'/>
<feature name='te' supported='yes'/>
<feature name='cmm' supported='yes'/>
</hostCPU>
<cpu type='kvm' name='z10EC-base'/>
<cpu type='kvm' name='z9EC-base'/>
<cpu type='kvm' name='z196.2-base'/>