[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [qemu-upstream-unstable] Add hot_add_cpu hook to QEMUMachine



commit 4b8e1c9837aef6297a2899fb2115c0b179250732
Author:     Igor Mammedov <imammedo@xxxxxxxxxx>
AuthorDate: Tue Apr 30 15:41:24 2013 +0200
Commit:     Anthony PERARD <anthony.perard@xxxxxxxxxx>
CommitDate: Mon Jun 17 12:31:11 2013 +0100

    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@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 files changed, 3 insertions(+), 0 deletions(-)

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,
--
generated by git-patchbot for /home/xen/git/qemu-upstream-unstable.git

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.