mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
When restoring replace the internal value of the device tree rather than replacing the Arc<Mutex<DeviceTree>> itself. This is fixes an issue where the AddressManager has a copy of the the original Arc<Mutex<DeviceTree>> from when the DeviceManager was created. The original restore path only replaced the DeviceManager's version of the Arc<Mutex<DeviceTree>>. Instead replace the contents of the Arc<Mutex<DeviceTree>> so all users see the updated version. Signed-off-by: Rob Bradford <robert.bradford@intel.com>