xen_machine_pv: do not create a dummy CPU in machine->init
commit58ee9b0ae05d81c74d6869a25ce4263fc22ed809
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Jun 2013 15:38:31 +0000 (3 15:38 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 3 Jun 2013 15:41:26 +0000 (3 15:41 +0000)
tree8ed8c65c4469777e8c772ce4967093b698f0acb0
parenta7d4207d378069a5bb3175a131e8fdedd39ef97d
xen_machine_pv: do not create a dummy CPU in machine->init

This fixes a regression introduced by:

commit 62fc403f11523169eb4264de31279745f48e3ecc
Author: Igor Mammedov <imammedo@redhat.com>
Date:   Mon Apr 29 18:54:13 2013 +0200

    target-i386: Attach ICC bus to CPU on its creation

    X86CPU should have parent bus so it could provide bus for child APIC.

The commit makes it mandatory to pass a valid ICC bus to cpu_x86_create,
but cpu_x86_init just passes NULL to it.
xen_machine_pv uses cpu_x86_init, therefore it has been broken.

This patch fixes the problem by removing the dummy CPU creation
altogether from xen_init_pv, relying on the fact that QEMU can now cope
with a machine without an emulated CPU.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Andreas Färber <afaerber@suse.de>
CC: imammedo@redhat.com
CC: qemu-stable@nongnu.org
hw/i386/xen_machine_pv.c