OSDN Git Service

s390: move memory calculation into the sclp device
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 29 May 2015 11:53:08 +0000 (13:53 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 7 Sep 2015 14:10:44 +0000 (16:10 +0200)
commit1cf065fb87e8787e3e9cebcdb4713b81e4e61422
treef5c3feb5ce68e96ddd4263a8b5f98525d45cf4c8
parentb02ef3d92b19ad304a84433d3817f0903296ebc7
s390: move memory calculation into the sclp device

The restrictions for memory calculation belong to the sclp device.

Let's move the calculation to that point, so we are able to unify it for
both s390 machines. The sclp device is the first device to be initialized.
It performs the calculation and safely stores it in the machine, where
other parts of the system can access an reuse it.

The memory hotplug device is now only created when it is really needed.

Reviewed-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-ccw.c
hw/s390x/s390-virtio.c
hw/s390x/sclp.c