summaryrefslogtreecommitdiffstats
path: root/hw/s390x/css-bridge.c
diff options
context:
space:
mode:
authorPierre Morel2017-11-30 13:55:30 +0100
committerCornelia Huck2017-12-14 17:56:54 +0100
commit4f6482bfe3da1e6b51ad4722a0c22f22f0d54a3b (patch)
treec5323b78ed639240453f4fb17328305c1b59fe5c /hw/s390x/css-bridge.c
parents390x/pci: move the memory region write from pcistg (diff)
downloadqemu-4f6482bfe3da1e6b51ad4722a0c22f22f0d54a3b.tar.gz
qemu-4f6482bfe3da1e6b51ad4722a0c22f22f0d54a3b.tar.xz
qemu-4f6482bfe3da1e6b51ad4722a0c22f22f0d54a3b.zip
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 <pmorel@linux.vnet.ibm.com> Reviewed-by: Yi Min Zhao <zyimin@linux.vnet.ibm.com> Message-Id: <1512046530-17773-8-git-send-email-pmorel@linux.vnet.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'hw/s390x/css-bridge.c')
0 files changed, 0 insertions, 0 deletions