]> git.proxmox.com Git - qemu.git/commitdiff
Add hot_add_cpu hook to QEMUMachine
authorIgor Mammedov <imammedo@redhat.com>
Tue, 30 Apr 2013 13:41:24 +0000 (15:41 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 1 May 2013 11:06:07 +0000 (13:06 +0200)
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>
include/hw/boards.h

index 425bdc74a810dd7bdc88b7fd3b5505577f47bb78..fb7c6f12431786c48ec79702ef5be95bbf77d6a4 100644 (file)
@@ -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,