s390x/cpumodel: add zpci, aen and ais facilities
commit3b00f702c236900cca403bdcbed48d59bfec0fba
authorYi Min Zhao <zyimin@linux.vnet.ibm.com>
Wed, 14 Jun 2017 05:25:58 +0000 (14 13:25 +0800)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 14 Jul 2017 10:29:49 +0000 (14 12:29 +0200)
treecede66702508caac3cbd3974135aadcc59e23a72
parent3720d3356d47aedf2f66b6586011661a7eeb0222
s390x/cpumodel: add zpci, aen and ais facilities

zPCI instructions and facilities are available since IBM zEnterprise
EC12. To support z/PCI in QEMU we enable zpci, aen and ais facilities
starting with zEC12 GA1. And we always set zpci and aen bits in max cpu
model. Later they might be switched off due to applied real cpu model.
For ais bit, we only provide it in the full cpu model beginning with
zEC12 and defer its enablement in the default cpu model to a later point
in time. At the same time, disable them for 2.9 and older machines.

Because of introducing AIS facility, we could check if it's enabled to
initialize flic->ais_supported with the real value.

Signed-off-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
hw/intc/s390_flic.c
hw/intc/s390_flic_kvm.c
hw/s390x/s390-virtio-ccw.c
target/s390x/cpu_features.c
target/s390x/cpu_features_def.h
target/s390x/gen-features.c
target/s390x/kvm.c