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