mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
s390x/cpumodel: default enable mepoch for z14 and later
Latest systems and host kernels support mepoch, which is a feature that was meant to be supported for z14 GA1 from the get-go. Let's copy it to the z14 GA1 default CPU model. Machines s390-ccw-virtio-3.1 and older will retain the old CPU models and will not provide this bit nor the extended PTFF functions in the default model. Signed-off-by: Collin Walling <walling@linux.ibm.com> Message-Id: <20190212011657.18324-2-walling@linux.ibm.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
This commit is contained in:
parent
ddf5d18af3
commit
84176c7906
4 changed files with 30 additions and 1 deletions
|
@ -117,6 +117,30 @@ void s390_cpudef_featoff_greater(uint8_t gen, uint8_t ec_ga, S390Feat feat)
|
|||
}
|
||||
}
|
||||
|
||||
void s390_cpudef_group_featoff_greater(uint8_t gen, uint8_t ec_ga,
|
||||
S390FeatGroup group)
|
||||
{
|
||||
const S390FeatGroupDef *group_def = s390_feat_group_def(group);
|
||||
S390FeatBitmap group_def_off;
|
||||
int i;
|
||||
|
||||
bitmap_complement(group_def_off, group_def->feat, S390_FEAT_MAX);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(s390_cpu_defs); i++) {
|
||||
const S390CPUDef *cpu_def = &s390_cpu_defs[i];
|
||||
|
||||
if (cpu_def->gen < gen) {
|
||||
continue;
|
||||
}
|
||||
if (cpu_def->gen == gen && cpu_def->ec_ga < ec_ga) {
|
||||
continue;
|
||||
}
|
||||
|
||||
bitmap_and((unsigned long *)&cpu_def->default_feat,
|
||||
cpu_def->default_feat, group_def_off, S390_FEAT_MAX);
|
||||
}
|
||||
}
|
||||
|
||||
uint32_t s390_get_hmfai(void)
|
||||
{
|
||||
static S390CPU *cpu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue