s390x/sclp: mark sclp-cpu-hotplug as non-usercreatable
commit7aa4d85d2962a072931657bee964113727ebf0c8
authorCornelia Huck <cohuck@redhat.com>
Wed, 4 Oct 2017 15:34:23 +0000 (4 17:34 +0200)
committerCornelia Huck <cohuck@redhat.com>
Fri, 6 Oct 2017 08:53:02 +0000 (6 10:53 +0200)
treeb0bcc290ce81accbfe99c971e339f1efb14f350a
parente6cb60bf158fe7ea4505d760fdbb7abe4dbf4362
s390x/sclp: mark sclp-cpu-hotplug as non-usercreatable

A TYPE_SCLP_CPU_HOTPLUG device for handling cpu hotplug events
is already created by the sclp event facility. Adding a second
TYPE_SCLP_CPU_HOTPLUG device via -device sclp-cpu-hotplug creates
an ambiguity in raise_irq_cpu_hotplug(), leading to a crash once
a cpu is hotplugged.

To fix this, disallow creating a sclp-cpu-hotplug device manually.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/sclpcpu.c