virtio-devices: Remove unused update_memory() from VirtioDevice trait

Now that virtio devices can be updated with add_memory_region(), there's
no need to keep update_memory() around.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2021-03-05 14:45:16 +01:00
parent 00873e5f84
commit ec9e6edcd0
4 changed files with 0 additions and 16 deletions

View File

@@ -139,10 +139,6 @@ pub trait VirtioDevice: Send {
/// after a shutdown() can lead to unpredictable results.
fn shutdown(&mut self) {}
fn update_memory(&mut self, _mem: &GuestMemoryMmap) -> std::result::Result<(), Error> {
Ok(())
}
fn add_memory_region(
&mut self,
_region: &Arc<GuestRegionMmap>,