mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-03 11:25:20 +00:00
vmm: Return the right error from Vcpu::snapshot()
Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
db785e6969
commit
9abb12fd71
@ -427,7 +427,7 @@ impl Snapshottable for Vcpu {
|
||||
let saved_state = self
|
||||
.vcpu
|
||||
.state()
|
||||
.map_err(|e| MigratableError::Pause(anyhow!("Could not get vCPU state {:?}", e)))?;
|
||||
.map_err(|e| MigratableError::Snapshot(anyhow!("Could not get vCPU state {:?}", e)))?;
|
||||
|
||||
self.saved_state = Some(saved_state.clone());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user