aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Mammedov <imammedo@redhat.com>2013-04-30 15:41:24 +0200
committerAndreas Färber <afaerber@suse.de>2013-05-01 13:06:07 +0200
commitb4fc7b4326112538e0dbdc7fd019652ba8cc3281 (patch)
tree7e8fd3c19a3f97c6d0e889138bf1dc1d5a5c8ce7
parent53a89e262bd3e97b2da3afec0a60e5466770ae8c (diff)
downloadqemu-b4fc7b4326112538e0dbdc7fd019652ba8cc3281.zip
qemu-b4fc7b4326112538e0dbdc7fd019652ba8cc3281.tar.gz
qemu-b4fc7b4326112538e0dbdc7fd019652ba8cc3281.tar.bz2
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 <imammedo@redhat.com> Reviewed-by: Eduardo Habkost <ehabkost@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
-rw-r--r--include/hw/boards.h3
1 files changed, 3 insertions, 0 deletions
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,