mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-23 04:55:18 +00:00
qemu_process: Use consistent name for stop process function
s/qemuProcessQMPAbort/qemuProcessQMPStop/ applied to change function name used to stop QEMU processes in process code moved from qemu_capabilities. No functionality change. The new name, qemuProcessQMPStop, is consistent with the existing function qemuProcessStop used to stop Domain processes. Signed-off-by: Chris Venteicher <cventeic@redhat.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
3dcdd18b6b
commit
468841eabd
@ -4379,7 +4379,7 @@ virQEMUCapsInitQMP(virQEMUCapsPtr qemuCaps,
|
||||
goto cleanup;
|
||||
|
||||
if (virQEMUCapsGet(qemuCaps, QEMU_CAPS_KVM)) {
|
||||
qemuProcessQMPAbort(proc);
|
||||
qemuProcessQMPStop(proc);
|
||||
if ((rc = qemuProcessQMPRun(proc, true)) != 0) {
|
||||
if (rc == 1)
|
||||
ret = 0;
|
||||
|
@ -8330,7 +8330,7 @@ qemuProcessQMPFree(qemuProcessQMPPtr proc)
|
||||
if (!proc)
|
||||
return;
|
||||
|
||||
qemuProcessQMPAbort(proc);
|
||||
qemuProcessQMPStop(proc);
|
||||
VIR_FREE(proc->binary);
|
||||
VIR_FREE(proc->monpath);
|
||||
VIR_FREE(proc->monarg);
|
||||
@ -8474,7 +8474,7 @@ qemuProcessQMPRun(qemuProcessQMPPtr proc,
|
||||
|
||||
cleanup:
|
||||
if (!proc->mon)
|
||||
qemuProcessQMPAbort(proc);
|
||||
qemuProcessQMPStop(proc);
|
||||
virObjectUnref(xmlopt);
|
||||
|
||||
return ret;
|
||||
@ -8486,7 +8486,7 @@ qemuProcessQMPRun(qemuProcessQMPPtr proc,
|
||||
|
||||
|
||||
void
|
||||
qemuProcessQMPAbort(qemuProcessQMPPtr proc)
|
||||
qemuProcessQMPStop(qemuProcessQMPPtr proc)
|
||||
{
|
||||
if (proc->mon)
|
||||
virObjectUnlock(proc->mon);
|
||||
|
@ -242,6 +242,6 @@ void qemuProcessQMPFree(qemuProcessQMPPtr proc);
|
||||
int qemuProcessQMPRun(qemuProcessQMPPtr proc,
|
||||
bool forceTCG);
|
||||
|
||||
void qemuProcessQMPAbort(qemuProcessQMPPtr proc);
|
||||
void qemuProcessQMPStop(qemuProcessQMPPtr proc);
|
||||
|
||||
#endif /* LIBVIRT_QEMU_PROCESS_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user