OSDN Git Service

pci: Split pcie_host_mmcfg_map()
authorAlexander Graf <agraf@suse.de>
Tue, 6 Jan 2015 16:03:08 +0000 (17:03 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Jan 2015 18:25:52 +0000 (20:25 +0200)
commit27fb9688f9162515901ebf29e3879788fd326ea7
treefd594b554a76cc56605b7d426e19f1fbfb2bcc05
parent7828d75045380ac659f2ad85fb5fec9bbb0746ac
pci: Split pcie_host_mmcfg_map()

The mmcfg space is a memory region that allows access to PCI config space
in the PCIe world. To maintain abstraction layers, I would like to expose
the mmcfg space as a sysbus mmio region rather than have it mapped straight
into the system's memory address space though.

So this patch splits the initialization of the mmcfg space from the actual
mapping, allowing us to only have an mmfg memory region without the map.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
hw/pci/pcie_host.c
include/hw/pci/pcie_host.h