cloud-hypervisor/pci
Sebastien Boeuf df71aaee3f pci: Make the device ID allocation smarter
In order to handle the case where devices are very often plugged and
unplugged from a VM, we need to handle the PCI device ID allocation
better.

Any PCI device could be removed, which means we cannot simply rely on
the vector size to give the next available PCI device ID.

That's why this patch stores in memory the information about the 32
slots availability. Based on this information, whenever a new slot is
needed, the code can correctly provide an available ID, or simply return
an error because all slots are taken.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
2020-03-10 17:05:06 +00:00
..
src pci: Make the device ID allocation smarter 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