From b4fc7b4326112538e0dbdc7fd019652ba8cc3281 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Tue, 30 Apr 2013 15:41:24 +0200 Subject: Add hot_add_cpu hook to QEMUMachine MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/hw/boards.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/hw/boards.h b/include/hw/boards.h index 425bdc7..fb7c6f1 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, -- cgit v1.1