s390x: generate sclp cpu information from possible_cpus
commitbb535bb67e5d2271614a08593abf6aba30e598ba
authorDavid Hildenbrand <david@redhat.com>
Wed, 13 Sep 2017 13:24:16 +0000 (13 15:24 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 19 Sep 2017 16:31:32 +0000 (19 18:31 +0200)
tree3db5315b7d26cf65e53736e4f8d4f2cd819b7306
parent524d18d8bd463431b120eeb5f9f3d1064a1c19e4
s390x: generate sclp cpu information from possible_cpus

This is the first step to allow hot plugging of CPUs in a non-sequential
order. If a cpu is available ("plugged") can directly be decided by
looking at the cpu state pointer.

This makes sure, that really only cpus attached to the machine are
reported.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170913132417.24384-22-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/sclp.c