]> xenbits.xensource.com Git - libvirt.git/commitdiff
Rename qemudMonitorSendCont to qemuMonitorStartCPUs
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 23 Sep 2009 11:10:58 +0000 (12:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 29 Sep 2009 10:49:52 +0000 (11:49 +0100)
* src/qemu/qemu_monitor.c, src/qemu/qemu_monitor.h: Rename
  Rename qemudMonitorSendCont to qemuMonitorStartCPUs
* src/qemu/qemu_driver.c: Update callers for new name

src/qemu/qemu_driver.c
src/qemu/qemu_monitor_text.c
src/qemu/qemu_monitor_text.h

index e0b7c844ab8bf292fbb493866ed8326e09d8406c..1717cbd08fd5b7294be278da2f31f75e6f89e5f4 100644 (file)
@@ -1262,7 +1262,7 @@ qemudInitCpus(virConnectPtr conn,
 
     if (migrateFrom == NULL) {
         /* Allow the CPUS to start executing */
-        if (qemudMonitorSendCont(conn, vm) < 0) {
+        if (qemuMonitorStartCPUs(conn, vm) < 0) {
             if (virGetLastError() == NULL)
                 qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
                                  "%s", _("resume operation failed"));
@@ -1275,8 +1275,8 @@ qemudInitCpus(virConnectPtr conn,
 
 
 static int
-qemudInitPasswords(struct qemud_driver *driver,
-                   virDomainObjPtr vm) {
+qemuInitPasswords(struct qemud_driver *driver,
+                  virDomainObjPtr vm) {
     int ret = 0;
 
     if ((vm->def->ngraphics == 1) &&
@@ -2136,7 +2136,7 @@ static int qemudStartVMDaemon(virConnectPtr conn,
     if ((qemudWaitForMonitor(conn, driver, vm, pos) < 0) ||
         (qemuDetectVcpuPIDs(conn, vm) < 0) ||
         (qemudInitCpus(conn, vm, migrateFrom) < 0) ||
-        (qemudInitPasswords(driver, vm) < 0) ||
+        (qemuInitPasswords(driver, vm) < 0) ||
         (qemudDomainSetMemoryBalloon(conn, vm, vm->def->memory) < 0) ||
         (virDomainSaveStatus(conn, driver->stateDir, vm) < 0)) {
         qemudShutdownVMDaemon(conn, driver, vm);
@@ -2819,7 +2819,7 @@ static int qemudDomainResume(virDomainPtr dom) {
         goto cleanup;
     }
     if (vm->state == VIR_DOMAIN_PAUSED) {
-        if (qemudMonitorSendCont(dom->conn, vm) < 0) {
+        if (qemuMonitorStartCPUs(dom->conn, vm) < 0) {
             if (virGetLastError() == NULL)
                 qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
                                  "%s", _("resume operation failed"));
@@ -3579,7 +3579,7 @@ cleanup:
        will support synchronous operations so we always get here after
        the migration is complete.  */
     if (resume && paused) {
-        if (qemudMonitorSendCont(dom->conn, vm) < 0) {
+        if (qemuMonitorStartCPUs(dom->conn, vm) < 0) {
             if (virGetLastError() == NULL)
                 qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
                                  "%s", _("resuming after dump failed"));
@@ -4095,7 +4095,7 @@ static int qemudDomainRestore(virConnectPtr conn,
 
     /* If it was running before, resume it now. */
     if (header.was_running) {
-        if (qemudMonitorSendCont(conn, vm) < 0) {
+        if (qemuMonitorStartCPUs(conn, vm) < 0) {
             if (virGetLastError() == NULL)
                 qemudReportError(conn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
                                  "%s", _("failed to resume domain"));
@@ -6828,7 +6828,7 @@ qemudDomainMigratePerform (virDomainPtr dom,
 cleanup:
     if (paused) {
         /* we got here through some sort of failure; start the domain again */
-        if (qemudMonitorSendCont(dom->conn, vm) < 0) {
+        if (qemuMonitorStartCPUs(dom->conn, vm) < 0) {
             /* Hm, we already know we are in error here.  We don't want to
              * overwrite the previous error, though, so we just throw something
              * to the logs and hope for the best
@@ -6884,7 +6884,7 @@ qemudDomainMigrateFinish2 (virConnectPtr dconn,
          * >= 0.10.6 to work properly.  This isn't strictly necessary on
          * older qemu's, but it also doesn't hurt anything there
          */
-        if (qemudMonitorSendCont(dconn, vm) < 0) {
+        if (qemuMonitorStartCPUs(dconn, vm) < 0) {
             if (virGetLastError() == NULL)
                 qemudReportError(dconn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
                                  "%s", _("resume operation failed"));
index 93762749cf0d802f0961b7ad5b52b1162193f2d8..1414e657ad35403d1fc7525fcb65b2b65b68816c 100644 (file)
@@ -424,7 +424,7 @@ qemudMonitorSendVolumePassphrase(const virDomainObjPtr vm,
 }
 
 int
-qemudMonitorSendCont(virConnectPtr conn,
+qemuMonitorStartCPUs(virConnectPtr conn,
                      const virDomainObjPtr vm) {
     char *reply;
 
index 8e432264b07911a443063ccbc71a16d1c4db783f..6c78ca8fc40dccadfbafde29023213298e2979c0 100644 (file)
@@ -65,7 +65,7 @@ int qemudMonitorCommandExtra(const virDomainObjPtr vm,
 
 /* Formal APIs for each required monitor command */
 
-int qemudMonitorSendCont(virConnectPtr conn,
+int qemuMonitorStartCPUs(virConnectPtr conn,
                          const virDomainObjPtr vm);
 
 int qemuMonitorGetCPUInfo(const virDomainObjPtr vm,