mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-12 07:32:56 +00:00
ba4ec7fce2
There's a simple way to trigger PCI BAR reprogramming for a given device, by removing it and then hotplugging it back. The Linux kernel will simply choose to place the BARs at different location than the ones chosen by Cloud-Hypervisor. By doing so, and creating the snapshot after this hotplug operation, we can manage to validate that the resource are correctly restored for a given virtio-pci device. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>