From e0daa03a35135075f07dee43e5fc2fe9ef37da05 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Tue, 26 Nov 2019 18:26:30 +0100 Subject: [PATCH] qemu: driver: Allow cancellation of the backup job MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use the helper which cancels all blockjobs to perform the backup job cancellation in qemuDomainAbortJob. Signed-off-by: Peter Krempa Reviewed-by: Eric Blake Reviewed-by: Ján Tomko --- src/qemu/qemu_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 5d42a5e723..9197dffadd 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -14044,7 +14044,8 @@ static int qemuDomainAbortJob(virDomainPtr dom) break; case QEMU_ASYNC_JOB_BACKUP: - /* TODO: to be implemented later */ + qemuBackupJobCancelBlockjobs(vm, priv->backup, true); + ret = 0; break; case QEMU_ASYNC_JOB_LAST: