-
When a guest can reassign BARs, kvmtool needs to maintain the vfio_region consistent with their corresponding BARs. Take the new updated addresses from the PCI header read back from the vfio driver. Also, to modify the BARs, it is expected that guests will disable IO/Memory response in the PCI command. Support this by mapping/unmapping regions when the corresponding response gets enabled/disabled. Signed-off-by: Julien Thierry <julien.thierry@arm.com> [Fixed BAR selection] Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
6d0f8798