migration: failover: continue to wait card unplug on error
authorLaurent Vivier <lvivier@redhat.com>
Tue, 29 Jun 2021 15:50:07 +0000 (17:50 +0200)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 5 Jul 2021 09:51:26 +0000 (10:51 +0100)
commit944bc528421aa848ca218ee535ea923a4147a525
tree6a0817ba6ac399acdc092cc92b4ba60d2e594c83
parentfde93d99d9c208c07e2dcc24cd04e824d2b65b35
migration: failover: continue to wait card unplug on error

If the user cancels the migration in the unplug-wait state,
QEMU will try to plug back the card and this fails because the card
is partially unplugged.
To avoid the problem, continue to wait the card unplug, but to
allow the migration to be canceled if the card never finishes to unplug
use a timeout.

Bug: https://bugzilla.redhat.com/show_bug.cgi?id=1976852
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20210629155007.629086-3-lvivier@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/migration.c