[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH v6 1/4] xen/arm: allow PCI host bridge to have private data


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Date: Thu, 12 Jun 2025 11:16:20 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TzXvj2JuD24fqznd8IDEh0oZUbY/zpRj9p3MFbrJ02s=; b=SHHxg3E8WDfmtPOVbwwRU4D5mXsFRuad6d/lCNVNQkd7yZOfRsfTy6dGgNfHeOqzN+q3kcTW753Fdf1IZevwmJsAqmgNG929C9X3kzagtpfsTWs/62TIgoxzWCqZ1jmw99I2S1GkfJ1rwjc4bFS7+TEZfo0HPCVrVg7kJXoLyepu+Ng1yjZ1Xw7HVwJH6s6gUbYF76YHqqD5lIWT6WP5aSnY6dYatwgKbIFMF6H+H4TUXMoo3sgi2G6avAacXIOQQN5hULfGlBHw0I2M/gDjdtlLYVkpDIPmIDJKvuLb4QdaAXrmB7+aI8MWQWiypigda352OR+ooBQBNuJp0VpIVg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ADAuQgNA5rxQJyf6nz96YsB7UH2GLqcCiYOM/0PaXWsE3xoKe5otAbeynLz548HCVximD0dUKkiA5pdsq74bcNtF+vtCb2UUYwmM5W2QehEjGqUmJWpYTzV8052bEQ3ed59mRF4q9is+MGxns17w/dICS/UFbxogj9JaiGbXTMV0PKSaZVaewYvZAsxF6RD5WMtj+DhSBt+6RAuQNutb9x9q11uUvL8mnPAj2h3RYyu3FP4agUaO71YWwfnMXyGyBn991WzKUlbipeB9IEGtGWBR+YKBZ+VbTCQs9PRkiW5RRvneFDjWBRobNw57zbHB/hjc8dkLsZy+YepAdLhMGQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=epam.com;
  • Cc: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Mykyta Poturai <Mykyta_Poturai@xxxxxxxx>
  • Delivery-date: Thu, 12 Jun 2025 11:16:49 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHb24ts9Pkj/p3l80mPyHDDabUuhA==
  • Thread-topic: [PATCH v6 1/4] xen/arm: allow PCI host bridge to have private data

From: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>

Some of the PCI host bridges require private data. Add priv field
to struct pci_host_bridge, so such bridges may populate it with
their private data.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@xxxxxxxx>
Signed-off-by: Mykyta Poturai <mykyta_poturai@xxxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
v5->v6:
* no change

v4->v5:
* no change

v3->v4:
* Added Stefano's RB

v2->v3:
* removed priv allocation from common code

v1->v2:
* no change
---
 xen/arch/arm/include/asm/pci.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/arch/arm/include/asm/pci.h b/xen/arch/arm/include/asm/pci.h
index 1605ec660d..b7b2dc7832 100644
--- a/xen/arch/arm/include/asm/pci.h
+++ b/xen/arch/arm/include/asm/pci.h
@@ -66,6 +66,7 @@ struct pci_host_bridge {
     uint16_t segment;                /* Segment number */
     struct pci_config_window* cfg;   /* Pointer to the bridge config window */
     const struct pci_ops *ops;
+    void *priv;                      /* Private data of the bridge. */
 };
 
 struct pci_ops {
-- 
2.34.1



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.