|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 4/7] Add hot_add_cpu hook to QEMUMachine
From: Igor Mammedov <imammedo@xxxxxxxxxx>
Hook should be set by machines that implement CPU hot-add
via cpu-add QMP command.
Signed-off-by: Igor Mammedov <imammedo@xxxxxxxxxx>
Reviewed-by: Eduardo Habkost <ehabkost@xxxxxxxxxx>
Signed-off-by: Andreas FÃrber <afaerber@xxxxxxx>
(cherry picked from QEMU commit b4fc7b4326112538e0dbdc7fd019652ba8cc3281)
Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
---
hw/boards.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/boards.h b/hw/boards.h
index 813d0e5..64931bc 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,
--
Anthony PERARD
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |