Skip to content

Commit b5265f3

Browse files
committed
feat(virtio-mem): add kick impl
Overwrite default empty impl for the `kick` function so that device can process queue events sent just before the snapshot is taken. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent e20d20c commit b5265f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vmm/src/devices/virtio/mem/device.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,13 @@ impl VirtioDevice for VirtioMem {
687687

688688
Ok(())
689689
}
690+
691+
fn kick(&mut self) {
692+
if self.is_activated() {
693+
info!("kick mem {}.", self.id());
694+
self.process_virtio_queues();
695+
}
696+
}
690697
}
691698

692699
#[cfg(test)]

0 commit comments

Comments
 (0)