cloud-hypervisor/vmm
Sebastien Boeuf 08604ac6a8 vmm: Store PCI devices as Any devices from DeviceManager
As we try to keep track of every PCI device related to the VM, we don't
want to have separate lists depending on the concrete type associated
with the PciDevice trait. Also, we want to be able to cast the actual
type into any trait or concrete type.

The most efficient way to solve all these issues is to store every
device as an Arc<dyn Any + Send + Sync>. This gives the ability to
downcast into the appropriate concrete type, and then to cast back into
any trait that we might need.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-03-10 17:05:06 +00:00
..
src vmm: Store PCI devices as Any devices from DeviceManager 2020-03-10 17:05:06 +00:00
Cargo.toml build: Bump linux-loader and vm-memory dependencies 2020-03-05 11:01:30 +01:00