Skip to content

Commit 6836276

Browse files
committed
virtio: mem: Implement device reset
The virtio-mem device does not have any backend specific state that needs resetting so implement the method by simply returning true. Plugged memory regions remain intact. Signed-off-by: Ilias Stamatis <ilstam@amazon.com>
1 parent 0ff974b commit 6836276

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,10 @@ impl VirtioDevice for VirtioMem {
660660
self.device_state = DeviceState::Inactive;
661661
}
662662

663+
fn _reset(&mut self) -> bool {
664+
true
665+
}
666+
663667
fn activate(
664668
&mut self,
665669
mem: GuestMemoryMmap,

0 commit comments

Comments
 (0)