From: Igor Mammedov Date: Tue, 30 Apr 2013 13:41:24 +0000 (+0200) Subject: Add hot_add_cpu hook to QEMUMachine X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~900^2~59^2~148^2~8 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4fc7b4326112538e0dbdc7fd019652ba8cc3281;p=sdk%2Femulator%2Fqemu.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 --- diff --git a/include/hw/boards.h b/include/hw/boards.h index 425bdc74a8..fb7c6f1243 100644 --- a/include/hw/boards.h +++ b/include/hw/boards.h @@ -22,12 +22,15 @@ 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; const char *desc; QEMUMachineInitFunc *init; QEMUMachineResetFunc *reset; + QEMUMachineHotAddCPUFunc *hot_add_cpu; BlockInterfaceType block_default_type; int max_cpus; unsigned int no_serial:1,