mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 18:45:16 +00:00
qemu: Implement virDomainAbortJobFlags
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
57762f8527
commit
fb50e56569
@ -12788,7 +12788,9 @@ qemuDomainAbortJobMigration(virDomainObj *vm)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static int qemuDomainAbortJob(virDomainPtr dom)
|
static int
|
||||||
|
qemuDomainAbortJobFlags(virDomainPtr dom,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
virQEMUDriver *driver = dom->conn->privateData;
|
virQEMUDriver *driver = dom->conn->privateData;
|
||||||
virDomainObj *vm;
|
virDomainObj *vm;
|
||||||
@ -12796,10 +12798,14 @@ static int qemuDomainAbortJob(virDomainPtr dom)
|
|||||||
qemuDomainObjPrivate *priv;
|
qemuDomainObjPrivate *priv;
|
||||||
int reason;
|
int reason;
|
||||||
|
|
||||||
|
VIR_DEBUG("flags=0x%x", flags);
|
||||||
|
|
||||||
|
virCheckFlags(0, -1);
|
||||||
|
|
||||||
if (!(vm = qemuDomainObjFromDomain(dom)))
|
if (!(vm = qemuDomainObjFromDomain(dom)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (virDomainAbortJobEnsureACL(dom->conn, vm->def) < 0)
|
if (virDomainAbortJobFlagsEnsureACL(dom->conn, vm->def) < 0)
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
|
|
||||||
if (qemuDomainObjBeginJob(driver, vm, VIR_JOB_ABORT) < 0)
|
if (qemuDomainObjBeginJob(driver, vm, VIR_JOB_ABORT) < 0)
|
||||||
@ -12878,6 +12884,13 @@ static int qemuDomainAbortJob(virDomainPtr dom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static int
|
||||||
|
qemuDomainAbortJob(virDomainPtr dom)
|
||||||
|
{
|
||||||
|
return qemuDomainAbortJobFlags(dom, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static int
|
static int
|
||||||
qemuDomainMigrateSetMaxDowntime(virDomainPtr dom,
|
qemuDomainMigrateSetMaxDowntime(virDomainPtr dom,
|
||||||
unsigned long long downtime,
|
unsigned long long downtime,
|
||||||
@ -21042,6 +21055,7 @@ static virHypervisorDriver qemuHypervisorDriver = {
|
|||||||
.domainGetJobInfo = qemuDomainGetJobInfo, /* 0.7.7 */
|
.domainGetJobInfo = qemuDomainGetJobInfo, /* 0.7.7 */
|
||||||
.domainGetJobStats = qemuDomainGetJobStats, /* 1.0.3 */
|
.domainGetJobStats = qemuDomainGetJobStats, /* 1.0.3 */
|
||||||
.domainAbortJob = qemuDomainAbortJob, /* 0.7.7 */
|
.domainAbortJob = qemuDomainAbortJob, /* 0.7.7 */
|
||||||
|
.domainAbortJobFlags = qemuDomainAbortJobFlags, /* 8.5.0 */
|
||||||
.domainMigrateGetMaxDowntime = qemuDomainMigrateGetMaxDowntime, /* 3.7.0 */
|
.domainMigrateGetMaxDowntime = qemuDomainMigrateGetMaxDowntime, /* 3.7.0 */
|
||||||
.domainMigrateSetMaxDowntime = qemuDomainMigrateSetMaxDowntime, /* 0.8.0 */
|
.domainMigrateSetMaxDowntime = qemuDomainMigrateSetMaxDowntime, /* 0.8.0 */
|
||||||
.domainMigrateGetCompressionCache = qemuDomainMigrateGetCompressionCache, /* 1.0.3 */
|
.domainMigrateGetCompressionCache = qemuDomainMigrateGetCompressionCache, /* 1.0.3 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user