]> Git Repo - qemu.git/commit - hw/s390x/s390-pci-inst.c
s390x/pci: search for subregion inside the BARs
authorPierre Morel <[email protected]>
Thu, 30 Nov 2017 12:55:30 +0000 (13:55 +0100)
committerCornelia Huck <[email protected]>
Thu, 14 Dec 2017 16:56:54 +0000 (17:56 +0100)
commit4f6482bfe3da1e6b51ad4722a0c22f22f0d54a3b
treec5323b78ed639240453f4fb17328305c1b59fe5c
parent8af27a9eab16f92990ce9b562719bdb485ffaf1b
s390x/pci: search for subregion inside the BARs

When dispatching memory access to PCI BAR region, we must
look for possible subregions, used by the PCI device to map
different memory areas inside the same PCI BAR.

Since the data offset we received is calculated starting at the
region start address we need to adjust the offset for the subregion.

The data offset inside the subregion is calculated by substracting
the subregion's starting address from the data offset in the region.

The access to the MSIX region is now handled in a generic way,
we do not need the specific trap_msix() function anymore.

Signed-off-by: Pierre Morel <[email protected]>
Reviewed-by: Yi Min Zhao <[email protected]>
Message-Id: <1512046530[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/s390x/s390-pci-inst.c
This page took 0.021429 seconds and 4 git commands to generate.