mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-12 07:32:56 +00:00
virtio-devices: vdpa: Don't error out on resume if not paused
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
3a5e5364b9
commit
6cb76abbf1
@ -462,6 +462,10 @@ impl Pausable for Vdpa {
|
||||
}
|
||||
|
||||
fn resume(&mut self) -> std::result::Result<(), MigratableError> {
|
||||
if !self.common.paused.load(Ordering::SeqCst) {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if !self.migrating {
|
||||
Err(MigratableError::Resume(anyhow!(
|
||||
"Can't resume a vDPA device outside live migration"
|
||||
|
Loading…
x
Reference in New Issue
Block a user