From 96b1a8bb55f1aeb72a943d1001841ff8b0687059 Mon Sep 17 00:00:00 2001 From: Matthew Rosato Date: Fri, 4 Mar 2016 12:34:34 -0500 Subject: s390x/cpu: Add error handling to cpu creation Check for and propogate errors during s390 cpu creation. Signed-off-by: Matthew Rosato Message-Id: <1457112875-5209-7-git-send-email-mjrosato@linux.vnet.ibm.com> Reviewed-by: David Hildenbrand Signed-off-by: Cornelia Huck --- hw/s390x/s390-virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/s390x/s390-virtio.c') diff --git a/hw/s390x/s390-virtio.c b/hw/s390x/s390-virtio.c index f00d6b4bae..4ea9040f3a 100644 --- a/hw/s390x/s390-virtio.c +++ b/hw/s390x/s390-virtio.c @@ -116,7 +116,7 @@ void s390_init_cpus(MachineState *machine) } for (i = 0; i < smp_cpus; i++) { - cpu_s390x_init(machine->cpu_model); + s390x_new_cpu(machine->cpu_model, i, &error_fatal); } } -- cgit v1.2.3