[libvirt PATCH 21/80] qemu: Fetch paused migration stats

Jiri Denemark posted 80 patches 3 years, 9 months ago
There is a newer version of this series
[libvirt PATCH 21/80] qemu: Fetch paused migration stats
Posted by Jiri Denemark 3 years, 9 months ago
Even though a migration is paused, we still want to see the amount of
data transferred so far and that the migration is indeed not progressing
any further.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
---
 src/qemu/qemu_driver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 85ccc446d7..9e6cf26001 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -12513,6 +12513,7 @@ qemuDomainGetJobInfoMigrationStats(virQEMUDriver *driver,
     case VIR_DOMAIN_JOB_STATUS_MIGRATING:
     case VIR_DOMAIN_JOB_STATUS_HYPERVISOR_COMPLETED:
     case VIR_DOMAIN_JOB_STATUS_POSTCOPY:
+    case VIR_DOMAIN_JOB_STATUS_PAUSED:
         if (events &&
             jobData->status != VIR_DOMAIN_JOB_STATUS_ACTIVE &&
             qemuMigrationAnyFetchStats(driver, vm, VIR_ASYNC_JOB_NONE,
@@ -12531,7 +12532,6 @@ qemuDomainGetJobInfoMigrationStats(virQEMUDriver *driver,
         break;
 
     case VIR_DOMAIN_JOB_STATUS_NONE:
-    case VIR_DOMAIN_JOB_STATUS_PAUSED:
     case VIR_DOMAIN_JOB_STATUS_COMPLETED:
     case VIR_DOMAIN_JOB_STATUS_FAILED:
     case VIR_DOMAIN_JOB_STATUS_CANCELED:
-- 
2.35.1
Re: [libvirt PATCH 21/80] qemu: Fetch paused migration stats
Posted by Peter Krempa 3 years, 9 months ago
On Tue, May 10, 2022 at 17:20:42 +0200, Jiri Denemark wrote:
> Even though a migration is paused, we still want to see the amount of
> data transferred so far and that the migration is indeed not progressing
> any further.
> 
> Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
> ---
>  src/qemu/qemu_driver.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Peter Krempa <pkrempa@redhat.com>