s390/sclp: ignore memory hotplug operations if it is disabled
commitb02ef3d92b19ad304a84433d3817f0903296ebc7
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 29 May 2015 12:06:39 +0000 (29 14:06 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Mon, 7 Sep 2015 14:10:44 +0000 (7 16:10 +0200)
treed24d8fec7111517185b0902f4405d3dc650a9319
parent2998ffee245e3a141ce1b6fca127744c3e19dc63
s390/sclp: ignore memory hotplug operations if it is disabled

If no memory hotplug device was created, the sclp command facility is
not exposed (SCLP_FC_ASSIGN_ATTACH_READ_STOR). We therefore have no
memory hotplug and should correctly report SCLP_RC_INVALID_SCLP_COMMAND
if any such command is executed.

This gets rid of these ugly asserts that could have been triggered
for the s390-virtio machine.

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/sclp.c