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 <>
Reviewed-by: Andre Przywara <>
Signed-off-by: Will Deacon <>
2 files changed