]> Git Repo - qemu.git/commit - hw/s390x/sclp.c
s390/sclp: ignore memory hotplug operations if it is disabled
authorDavid Hildenbrand <[email protected]>
Fri, 29 May 2015 12:06:39 +0000 (14:06 +0200)
committerCornelia Huck <[email protected]>
Mon, 7 Sep 2015 14:10:44 +0000 (16:10 +0200)
commitb02ef3d92b19ad304a84433d3817f0903296ebc7
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 <[email protected]>
Signed-off-by: David Hildenbrand <[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/sclp.c
This page took 0.025133 seconds and 4 git commands to generate.