[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [for-2.11 PATCH 17/26] spapr_pci: introduce drc_id property
From: |
Greg Kurz |
Subject: |
[Qemu-devel] [for-2.11 PATCH 17/26] spapr_pci: introduce drc_id property |
Date: |
Tue, 25 Jul 2017 20:01:38 +0200 |
User-agent: |
StGit/0.17.1-20-gc0b1b-dirty |
With the addition of PHB hotplug, we have a static number of DRCs
that can be used to handle hotplug/unplug operations on our PHBs,
and need a consistent way to map PHBs to these connectors, and
assign a unique identifiers for the connectors.
This patch adds a drc_id property for that purpose.
Signed-off-by: Greg Kurz <address@hidden>
---
hw/ppc/spapr_pci.c | 1 +
include/hw/pci-host/spapr.h | 2 ++
2 files changed, 3 insertions(+)
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 994d2f36105f..54533d8a3841 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1878,6 +1878,7 @@ static Property spapr_phb_properties[] = {
pre_2_8_migration, false),
DEFINE_PROP_BOOL("pcie-extended-configuration-space", sPAPRPHBState,
pcie_ecs, true),
+ DEFINE_PROP_UINT32("drc_id", sPAPRPHBState, drc_id, -1),
DEFINE_PROP_END_OF_LIST(),
};
diff --git a/include/hw/pci-host/spapr.h b/include/hw/pci-host/spapr.h
index 5a4e9686d562..31bae68167f2 100644
--- a/include/hw/pci-host/spapr.h
+++ b/include/hw/pci-host/spapr.h
@@ -82,6 +82,8 @@ struct sPAPRPHBState {
bool pcie_ecs; /* Allow access to PCIe extended config space? */
+ uint32_t drc_id;
+
/* Fields for migration compatibility hacks */
bool pre_2_8_migration;
uint32_t mig_liobn;
- Re: [Qemu-devel] [for-2.11 PATCH 13/26] qdev: store DeviceState's canonical path to use when unparenting, (continued)
[Qemu-devel] [for-2.11 PATCH 14/26] spapr_pci: add PHB unrealize, Greg Kurz, 2017/07/25
[Qemu-devel] [for-2.11 PATCH 15/26] spapr: add pseries-2.11 machine type, Greg Kurz, 2017/07/25
[Qemu-devel] [for-2.11 PATCH 16/26] spapr: enable PHB hotplug for pseries-2.11, Greg Kurz, 2017/07/25
[Qemu-devel] [for-2.11 PATCH 17/26] spapr_pci: introduce drc_id property,
Greg Kurz <=
[Qemu-devel] [for-2.11 PATCH 18/26] spapr: create DR connectors for PHBs, Greg Kurz, 2017/07/25
[Qemu-devel] [for-2.11 PATCH 19/26] spapr: populate PHB DRC entries for root DT node, Greg Kurz, 2017/07/25