s390x/cpumodel: implement QMP interface "query-cpu-model-expansion"
commit137974cea30120a80fc8e41c7a64afb0d4d6c2f6
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 5 Sep 2016 08:52:42 +0000 (5 10:52 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 6 Sep 2016 15:06:51 +0000 (6 17:06 +0200)
treee22dcec3f852b1d5126fdcb2d1bf9cfd321cca1a
parentb18b6043341dfad46cbda7804424a1604cea065b
s390x/cpumodel: implement QMP interface "query-cpu-model-expansion"

In order to expand CPU models, we create temporary cpus that handle the
feature/group parsing. Only CPU feature properties are expanded.

When converting the data structure back, we always fall back to the
static base CPU model, which is by definition migration-safe.

Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Message-Id: <20160905085244.99980-29-dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
qapi-schema.json
target-s390x/cpu_models.c