mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-18 10:35:23 +00:00
42c0b4055a
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>