From e1b5da9a17a3c41e469122b76a760be28263a18e Mon Sep 17 00:00:00 2001 Message-Id: <e1b5da9a17a3c41e469122b76a760be28263a18e.1387298827.git.minovotn@redhat.com> In-Reply-To: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com> References: <3ed0fb61a3dc912ef036d7ef450bed192090709e.1387298827.git.minovotn@redhat.com> From: "Michael S. Tsirkin" <mst@redhat.com> Date: Tue, 17 Dec 2013 15:18:02 +0100 Subject: [PATCH 28/56] pcie_host: expose UNMAPPED macro RH-Author: Michael S. Tsirkin <mst@redhat.com> Message-id: <1387293161-4085-29-git-send-email-mst@redhat.com> Patchwork-id: 56334 O-Subject: [PATCH qemu-kvm RHEL7.0 v2 28/57] pcie_host: expose UNMAPPED macro Bugzilla: 1034876 RH-Acked-by: Igor Mammedov <imammedo@redhat.com> RH-Acked-by: Marcel Apfelbaum <marcel.a@redhat.com> RH-Acked-by: Laszlo Ersek <lersek@redhat.com> Make it possible to test unmapped status through QMP. Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> (cherry picked from commit 079e3e7012a0e3ff80b4786e67f5a5d4341dcd51) --- include/hw/pci/pcie_host.h | 3 +++ hw/pci/pcie_host.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) Signed-off-by: Michal Novotny <minovotn@redhat.com> --- hw/pci/pcie_host.c | 3 --- include/hw/pci/pcie_host.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/pci/pcie_host.c b/hw/pci/pcie_host.c index b2d942b..0a78a8f 100644 --- a/hw/pci/pcie_host.c +++ b/hw/pci/pcie_host.c @@ -104,9 +104,6 @@ static const MemoryRegionOps pcie_mmcfg_ops = { .endianness = DEVICE_NATIVE_ENDIAN, }; -/* pcie_host::base_addr == PCIE_BASE_ADDR_UNMAPPED when it isn't mapped. */ -#define PCIE_BASE_ADDR_UNMAPPED ((hwaddr)-1ULL) - int pcie_host_init(PCIExpressHost *e) { e->base_addr = PCIE_BASE_ADDR_UNMAPPED; diff --git a/include/hw/pci/pcie_host.h b/include/hw/pci/pcie_host.h index 1228e36..bac3c67 100644 --- a/include/hw/pci/pcie_host.h +++ b/include/hw/pci/pcie_host.h @@ -28,6 +28,9 @@ #define PCIE_HOST_BRIDGE(obj) \ OBJECT_CHECK(PCIExpressHost, (obj), TYPE_PCIE_HOST_BRIDGE) +/* pcie_host::base_addr == PCIE_BASE_ADDR_UNMAPPED when it isn't mapped. */ +#define PCIE_BASE_ADDR_UNMAPPED ((hwaddr)-1ULL) + struct PCIExpressHost { PCIHostState pci; -- 1.7.11.7