devices, vmm: Move Gpio to new restore design

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-11-25 17:17:53 +01:00
committed by Rob Bradford
parent 9fbf52b998
commit 81862e8ed3
2 changed files with 34 additions and 27 deletions

View File

@@ -1664,6 +1664,8 @@ impl DeviceManager {
let gpio_device = Arc::new(Mutex::new(devices::legacy::Gpio::new(
id.clone(),
interrupt_group,
versioned_state_from_id(self.snapshot.as_ref(), id.as_str())
.map_err(DeviceManagerError::RestoreGetState)?,
)));
self.bus_devices