s390x/cpumodel: let the CPU model handle feature checks
commit7c72ac49ae9f38fa0125296e05988655157decb5
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 5 Sep 2016 08:52:25 +0000 (5 10:52 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 6 Sep 2016 15:06:50 +0000 (6 17:06 +0200)
treece2386176bfa5eb51d1e96c76f4ba49c65f1d155
parent0754f6042995c77ef8843d34df873461353febcd
s390x/cpumodel: let the CPU model handle feature checks

If we have certain features enabled, we have to migrate additional state
(e.g. vector registers or runtime-instrumentation registers). Let the
CPU model control that unless we have no "host" CPU model in the KVM
case. This will later on be the case for compatibility machines, so
migration from QEMU versions without the CPU model will still work.

Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Message-Id: <20160905085244.99980-12-dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target-s390x/cpu_models.c
target-s390x/cpu_models.h
target-s390x/kvm.c
target-s390x/machine.c