Skip to content

Commit

Permalink
undo sending transport_reset event on snapshot creation
Browse files Browse the repository at this point in the history
Signed-off-by: Amory Hoste <[email protected]>
  • Loading branch information
amohoste committed Apr 24, 2022
1 parent 398d6b9 commit 52890e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/vmm/src/device_manager/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,12 @@ impl<'a> Persist<'a> for MMIODeviceManager {

// Send Transport event to reset connections if device
// is activated.
if vsock.is_activated() {
// TODO: temporarily disabled to avoid FC agent becoming unavailable when restoring snapshots
/*if vsock.is_activated() {
vsock.send_transport_reset_event().unwrap_or_else(|e| {
error!("Failed to send reset transport event: {:?}", e);
});
}
}*/

states.vsock_device = Some(ConnectedVsockState {
device_id: devid.clone(),
Expand Down
2 changes: 1 addition & 1 deletion src/vmm/src/persist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ pub fn restore_from_snapshot(
if ! new_snapshot_path.eq("") {
let n = microvm_state.device_states.block_devices.len();
for i in 0..n {
if microvm_state.device_states.block_devices[i].device_state.disk_path.contains("fc-dev-thinpool-") {
if microvm_state.device_states.block_devices[i].device_state.disk_path.contains("thinpool-snap") {
microvm_state.device_states.block_devices[i].device_state.disk_path = new_snapshot_path.clone();
}
}
Expand Down

0 comments on commit 52890e5

Please sign in to comment.