mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
We want to be able to share the same DeviceTree across multiple threads, particularly to handle the use case where PCI BAR reprogramming might need to update the tree while from another thread a new device is being added to the tree. That's why this patch moves the DeviceTree instance into an Arc<Mutex<>> so that we can later share a reference of the same mutable tree with the AddressManager responsible for handling PCI BAR reprogramming. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>