From 4b8e1c9837aef6297a2899fb2115c0b179250732 Mon Sep 17 00:00:00 2001 From: Igor Mammedov Date: Tue, 30 Apr 2013 15:41:24 +0200 Subject: [PATCH] Add hot_add_cpu hook to QEMUMachine MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 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 (cherry picked from QEMU commit b4fc7b4326112538e0dbdc7fd019652ba8cc3281) Signed-off-by: Anthony PERARD --- hw/boards.h | 3 +++ 1 file changed, 3 insertions(+) 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, -- 2.39.5