Skip to content

Commit 7f68758

Browse files
committed
undo sending transport_reset event on snapshot creation
Signed-off-by: Amory Hoste <[email protected]>
1 parent 53ba44f commit 7f68758

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/devices/src/virtio/block/persist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct BlockState {
5757
)]
5858
cache_type: CacheTypeState,
5959
root_device: bool,
60-
pub disk_path: String,
60+
disk_path: String,
6161
virtio_state: VirtioDeviceState,
6262
rate_limiter_state: RateLimiterState,
6363
}

src/vmm/src/device_manager/persist.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,11 +239,12 @@ impl<'a> Persist<'a> for MMIODeviceManager {
239239

240240
// Send Transport event to reset connections if device
241241
// is activated.
242-
if vsock.is_activated() {
242+
// TODO: temporarily disabled to avoid FC agent becoming unavailable when restoring snapshots
243+
/*if vsock.is_activated() {
243244
vsock.send_transport_reset_event().unwrap_or_else(|e| {
244245
error!("Failed to send reset transport event: {:?}", e);
245246
});
246-
}
247+
}*/
247248

248249
states.vsock_device = Some(ConnectedVsockState {
249250
device_id: devid.clone(),

0 commit comments

Comments
 (0)