x86: move cpu hotplug from pc to x86
commit0cca1a918b858b37484c571a9a989e2d06eeccae
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Sep 2020 12:09:03 +0000 (15 14:09 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 17 Sep 2020 12:16:19 +0000 (17 14:16 +0200)
tree8c93b3f1f99e936dd1442c2c69a3a60416fc2c2b
parent50aef1318166c2a5551d43fb99c5a517f54fcf3c
x86: move cpu hotplug from pc to x86

The cpu hotplug code handles the initialization of coldplugged cpus
too, so it is needed even in case cpu hotplug is not supported.

Move the code from pc to x86, so microvm can use it.

Move both plug and unplug to keep everything in one place, even
though microvm needs plug only.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-id: 20200915120909.20838-16-kraxel@redhat.com
hw/i386/pc.c
hw/i386/x86.c
include/hw/i386/x86.h