mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-03-07 01:14:02 +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> (cherry picked from commit e1c09b66baa722fcccf1a1aa84a9573ae2e7d6c6) Signed-off-by: Rob Bradford <robert.bradford@intel.com>