mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-24 08:51:17 +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
|
let saved_state = self
|
||||||
.vcpu
|
.vcpu
|
||||||
.state()
|
.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());
|
self.saved_state = Some(saved_state.clone());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user