mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-23 20:02:23 +00:00
The way to get the BAR size is by writing all 1's to the BAR register in the PCI config space. The mechanism was in place but the parameters were swapped. The data buffer was provided with the actual offset, while the offset was provided with the actual all 1's dword. We were effectively trying to write the real offset at the offset 0xffffffff, which was failing and resulting in the size being wrong. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>