mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
AddressManager::move_bar() acquires the device_tree mutex. The function is called from PciConfigIo::config_space_write()/ PciConfigMmio::config_space_write() while the pci_bus mutex is acquired. The functions DeviceManager::pci_resources()/eject_device() acquire these mutexes in reverse order, which leads to a deadlock. Fixes: #6775 Signed-off-by: Alexandru Matei <alexandru.matei@uipath.com>