Skip to content

Commit

Permalink
remove 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 Nov 28, 2021
1 parent 53ba44f commit 9ea5ae5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/devices/src/virtio/vsock/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use std::sync::Arc;
use logger::{debug, error, warn, IncMetric, METRICS};
use utils::byte_order;
use utils::eventfd::EventFd;
use vm_memory::{Bytes, GuestMemoryMmap};
use vm_memory::{Bytes,GuestMemoryMmap};

use super::super::super::Error as DeviceError;
use super::super::{
Expand Down
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

0 comments on commit 9ea5ae5

Please sign in to comment.