OSDN Git Service

KVM: s390: implement CPU model only facilities
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 9 Feb 2018 16:26:29 +0000 (16:26 +0000)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 9 Mar 2018 09:44:17 +0000 (09:44 +0000)
commitc3b9e3e1ea1c1d1524b56b6734711db2a6fc2163
tree42cc07d5944c40ba229de7270008ed4483e2cd1d
parentf07afa0462b76a5b9c4f3a43d5ac24fdb86a90c2
KVM: s390: implement CPU model only facilities

Some facilities should only be provided to the guest, if they are
enabled by a CPU model. This allows us to avoid capabilities and
to simply fall back to the cpumodel for deciding about a facility
without enabling it for older QEMUs or QEMUs without a CPU
model.

Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/tools/gen_facilities.c