virtio/pci: Get emulated region address from BARs
The struct virtio_pci fields port_addr, mmio_addr and msix_io_block
represent the same addresses that are written in the corresponding BARs.
Remove this duplication of information and always use the address from the
BAR. This will make our life a lot easier when we add support for
reassignable BARs, because we won't have to update the fields on each BAR
No functional changes.
Signed-off-by: Alexandru Elisei <firstname.lastname@example.org>
Reviewed-by: Andre Przywara <email@example.com>
Signed-off-by: Will Deacon <firstname.lastname@example.org>
2 files changed