Patchwork [1/4] add hot_add_cpu hook to QEMUMachine

login
register
mail settings
Submitter Igor Mammedov
Date April 30, 2013, 6:34 a.m.
Message ID <1367303643-16036-2-git-send-email-imammedo@redhat.com>
Download mbox | patch
Permalink /patch/240554/
State New
Headers show

Comments

Igor Mammedov - April 30, 2013, 6:34 a.m.
hot_add_cpu hook should be overriden by target that implements
cpu hot-add via cpu-add QMP command.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
---
Note:
  hook will be used in next patch for target-i386 cp-add implementation.
---
 include/hw/boards.h | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/include/hw/boards.h b/include/hw/boards.h
index 425bdc7..75cd127 100644
--- a/include/hw/boards.h
+++ b/include/hw/boards.h
@@ -43,6 +43,7 @@  typedef struct QEMUMachine {
     GlobalProperty *compat_props;
     struct QEMUMachine *next;
     const char *hw_version;
+    void (*hot_add_cpu)(const int64_t id, Error **errp);
 } QEMUMachine;
 
 int qemu_register_machine(QEMUMachine *m);