提交 4734a422 编写于 作者: D Daniel P. Berrange

Rename qemudMonitorSendCont to qemuMonitorStartCPUs

* 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
上级 3aee2615
...@@ -1262,7 +1262,7 @@ qemudInitCpus(virConnectPtr conn, ...@@ -1262,7 +1262,7 @@ qemudInitCpus(virConnectPtr conn,
if (migrateFrom == NULL) { if (migrateFrom == NULL) {
/* Allow the CPUS to start executing */ /* Allow the CPUS to start executing */
if (qemudMonitorSendCont(conn, vm) < 0) { if (qemuMonitorStartCPUs(conn, vm) < 0) {
if (virGetLastError() == NULL) if (virGetLastError() == NULL)
qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, qemudReportError(conn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
"%s", _("resume operation failed")); "%s", _("resume operation failed"));
...@@ -1275,7 +1275,7 @@ qemudInitCpus(virConnectPtr conn, ...@@ -1275,7 +1275,7 @@ qemudInitCpus(virConnectPtr conn,
static int static int
qemudInitPasswords(struct qemud_driver *driver, qemuInitPasswords(struct qemud_driver *driver,
virDomainObjPtr vm) { virDomainObjPtr vm) {
int ret = 0; int ret = 0;
...@@ -2136,7 +2136,7 @@ static int qemudStartVMDaemon(virConnectPtr conn, ...@@ -2136,7 +2136,7 @@ static int qemudStartVMDaemon(virConnectPtr conn,
if ((qemudWaitForMonitor(conn, driver, vm, pos) < 0) || if ((qemudWaitForMonitor(conn, driver, vm, pos) < 0) ||
(qemuDetectVcpuPIDs(conn, vm) < 0) || (qemuDetectVcpuPIDs(conn, vm) < 0) ||
(qemudInitCpus(conn, vm, migrateFrom) < 0) || (qemudInitCpus(conn, vm, migrateFrom) < 0) ||
(qemudInitPasswords(driver, vm) < 0) || (qemuInitPasswords(driver, vm) < 0) ||
(qemudDomainSetMemoryBalloon(conn, vm, vm->def->memory) < 0) || (qemudDomainSetMemoryBalloon(conn, vm, vm->def->memory) < 0) ||
(virDomainSaveStatus(conn, driver->stateDir, vm) < 0)) { (virDomainSaveStatus(conn, driver->stateDir, vm) < 0)) {
qemudShutdownVMDaemon(conn, driver, vm); qemudShutdownVMDaemon(conn, driver, vm);
...@@ -2819,7 +2819,7 @@ static int qemudDomainResume(virDomainPtr dom) { ...@@ -2819,7 +2819,7 @@ static int qemudDomainResume(virDomainPtr dom) {
goto cleanup; goto cleanup;
} }
if (vm->state == VIR_DOMAIN_PAUSED) { if (vm->state == VIR_DOMAIN_PAUSED) {
if (qemudMonitorSendCont(dom->conn, vm) < 0) { if (qemuMonitorStartCPUs(dom->conn, vm) < 0) {
if (virGetLastError() == NULL) if (virGetLastError() == NULL)
qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED, qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
"%s", _("resume operation failed")); "%s", _("resume operation failed"));
...@@ -3579,7 +3579,7 @@ cleanup: ...@@ -3579,7 +3579,7 @@ cleanup:
will support synchronous operations so we always get here after will support synchronous operations so we always get here after
the migration is complete. */ the migration is complete. */
if (resume && paused) { if (resume && paused) {
if (qemudMonitorSendCont(dom->conn, vm) < 0) { if (qemuMonitorStartCPUs(dom->conn, vm) < 0) {
if (virGetLastError() == NULL) if (virGetLastError() == NULL)
qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED, qemudReportError(dom->conn, dom, NULL, VIR_ERR_OPERATION_FAILED,
"%s", _("resuming after dump failed")); "%s", _("resuming after dump failed"));
...@@ -4095,7 +4095,7 @@ static int qemudDomainRestore(virConnectPtr conn, ...@@ -4095,7 +4095,7 @@ static int qemudDomainRestore(virConnectPtr conn,
/* If it was running before, resume it now. */ /* If it was running before, resume it now. */
if (header.was_running) { if (header.was_running) {
if (qemudMonitorSendCont(conn, vm) < 0) { if (qemuMonitorStartCPUs(conn, vm) < 0) {
if (virGetLastError() == NULL) if (virGetLastError() == NULL)
qemudReportError(conn, NULL, NULL, VIR_ERR_OPERATION_FAILED, qemudReportError(conn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
"%s", _("failed to resume domain")); "%s", _("failed to resume domain"));
...@@ -6828,7 +6828,7 @@ qemudDomainMigratePerform (virDomainPtr dom, ...@@ -6828,7 +6828,7 @@ qemudDomainMigratePerform (virDomainPtr dom,
cleanup: cleanup:
if (paused) { if (paused) {
/* we got here through some sort of failure; start the domain again */ /* 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 /* Hm, we already know we are in error here. We don't want to
* overwrite the previous error, though, so we just throw something * overwrite the previous error, though, so we just throw something
* to the logs and hope for the best * to the logs and hope for the best
...@@ -6884,7 +6884,7 @@ qemudDomainMigrateFinish2 (virConnectPtr dconn, ...@@ -6884,7 +6884,7 @@ qemudDomainMigrateFinish2 (virConnectPtr dconn,
* >= 0.10.6 to work properly. This isn't strictly necessary on * >= 0.10.6 to work properly. This isn't strictly necessary on
* older qemu's, but it also doesn't hurt anything there * older qemu's, but it also doesn't hurt anything there
*/ */
if (qemudMonitorSendCont(dconn, vm) < 0) { if (qemuMonitorStartCPUs(dconn, vm) < 0) {
if (virGetLastError() == NULL) if (virGetLastError() == NULL)
qemudReportError(dconn, NULL, NULL, VIR_ERR_INTERNAL_ERROR, qemudReportError(dconn, NULL, NULL, VIR_ERR_INTERNAL_ERROR,
"%s", _("resume operation failed")); "%s", _("resume operation failed"));
......
...@@ -424,7 +424,7 @@ qemudMonitorSendVolumePassphrase(const virDomainObjPtr vm, ...@@ -424,7 +424,7 @@ qemudMonitorSendVolumePassphrase(const virDomainObjPtr vm,
} }
int int
qemudMonitorSendCont(virConnectPtr conn, qemuMonitorStartCPUs(virConnectPtr conn,
const virDomainObjPtr vm) { const virDomainObjPtr vm) {
char *reply; char *reply;
......
...@@ -65,7 +65,7 @@ int qemudMonitorCommandExtra(const virDomainObjPtr vm, ...@@ -65,7 +65,7 @@ int qemudMonitorCommandExtra(const virDomainObjPtr vm,
/* Formal APIs for each required monitor command */ /* Formal APIs for each required monitor command */
int qemudMonitorSendCont(virConnectPtr conn, int qemuMonitorStartCPUs(virConnectPtr conn,
const virDomainObjPtr vm); const virDomainObjPtr vm);
int qemuMonitorGetCPUInfo(const virDomainObjPtr vm, int qemuMonitorGetCPUInfo(const virDomainObjPtr vm,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册