public inbox for qemu-devel@nongnu.org
 help / color / mirror / Atom feed
* [PATCH v1] hw/pci-host/xilinx-pcie: Set explicit bus name for Root Port
@ 2026-03-17  7:20 gaochengbo
  0 siblings, 0 replies; only message in thread
From: gaochengbo @ 2026-03-17  7:20 UTC (permalink / raw)
  To: paulburton, arikalo; +Cc: qemu-devel, gaochengbo

Assign the name "xdma-pcie" to the PCI bridge bus in xilinx_pcie_root_realize().
This makes it easier to identify the Xilinx PCIe host bridge in QEMU monitor
commands (e.g., 'info qtree', 'info mtree') and debugging logs, distinguishing
it from generic pci-bridge instances.

Signed-off-by: Chengbo Gao <gaochengbo@bosc.ac.cn>
---
 hw/pci-host/xilinx-pcie.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/pci-host/xilinx-pcie.c b/hw/pci-host/xilinx-pcie.c
index 40f625b61d..2949c5385e 100644
--- a/hw/pci-host/xilinx-pcie.c
+++ b/hw/pci-host/xilinx-pcie.c
@@ -271,7 +271,9 @@ static void xilinx_pcie_root_realize(PCIDevice *pci_dev, Error **errp)
 {
     BusState *bus = qdev_get_parent_bus(DEVICE(pci_dev));
     XilinxPCIEHost *s = XILINX_PCIE_HOST(bus->parent);
+    PCIBridge *br = PCI_BRIDGE(pci_dev);
 
+    br->bus_name  = "xdma-pcie";
     pci_set_word(pci_dev->config + PCI_COMMAND,
                  PCI_COMMAND_MEMORY | PCI_COMMAND_MASTER);
     pci_set_word(pci_dev->config + PCI_MEMORY_BASE, s->mmio_base >> 16);
-- 
2.43.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-03-17 12:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-17  7:20 [PATCH v1] hw/pci-host/xilinx-pcie: Set explicit bus name for Root Port gaochengbo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox