From: Igor Mammedov Date: Tue, 30 Apr 2013 13:41:24 +0000 (+0200) Subject: Add hot_add_cpu hook to QEMUMachine X-Git-Tag: qemu-xen-4.3.0~1^2~3 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b8e1c9837aef6297a2899fb2115c0b179250732;p=qemu-upstream-4.3-testing.git Add hot_add_cpu hook to QEMUMachine Hook should be set by machines that implement CPU hot-add via cpu-add QMP command. Signed-off-by: Igor Mammedov Reviewed-by: Eduardo Habkost Signed-off-by: Andreas Färber (cherry picked from QEMU commit b4fc7b4326112538e0dbdc7fd019652ba8cc3281) Signed-off-by: Anthony PERARD --- diff --git a/hw/boards.h b/hw/boards.h index 813d0e510..64931bcb6 100644 --- a/hw/boards.h +++ b/hw/boards.h @@ -18,6 +18,8 @@ typedef void QEMUMachineInitFunc(QEMUMachineInitArgs *args); typedef void QEMUMachineResetFunc(void); +typedef void QEMUMachineHotAddCPUFunc(const int64_t id, Error **errp); + typedef struct QEMUMachine { const char *name; const char *alias; @@ -25,6 +27,7 @@ typedef struct QEMUMachine { QEMUMachineInitFunc *init; QEMUMachineResetFunc *reset; int use_scsi; + QEMUMachineHotAddCPUFunc *hot_add_cpu; int max_cpus; unsigned int no_serial:1, no_parallel:1,