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

[PATCH v3 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: Wed, 9 Apr 2025 13:29:27 +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=Mcb3OVAU2iS55vFkQoEajm7xT7k3icYGgVNKzOXMQDE=; b=LbNJz/abPNRWP+AAq86qC5oCgxqFouaSOAQvls14nSRHaxxzQWVVeUFNdvcOlJBbVwwuQW1/YoZoN4QkCWSY2QNx+CejsrQKmbNtJPX98rvXOo6dsAwBFcaWbEIgDXymf2q++VeQExp++ocivNUp0zFQ2VH7K8jSCO8LGy2rU+x+/GgbFolcoa6gpHfgf2QtN+HwuUhUjn/p8vGMs8UbLwC28Ih+GPCa201UEhV38w9QBGpLKskdr+ctTRc/kDSM3YA6S+rTQO1Oth56Incnv+9bbuIbVgyw6W76qdE+FqhZqfkuP4Sw70n2rNcJ+4U5BOU1jygssQDUNLZHSR4r1w==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=FGQkVyOlanR6clnxaAUDfiTGB1L6eKxWv63LtZThFfr7QCCLPqzeUVQoKRABU8jYqRL0cvEXACJdStgDSemkoOQfrya+oEVBjUD3NrWYopLK78A0doMFHvOjXeMGJB89oYCV18sq5GUO3fow2zSDlAhfiE4DL85ZST9K00Is9dI2YVVej9S27vpx18sxFVdf4/WjxB6MldSCGXtOGDkUvPb6OE9BW5cybaswqK6POt1zGMW0kDF/+ZDhNHJAGljMZVvRnMBrTTfv6G2YoM3wgP7ZUVIeFwUDA/w455saz+IDMSpOYa+jsd05D4STClUcaGQcedt4VQ66z2kqcAYYrQ==
  • 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: Wed, 09 Apr 2025 13:29:34 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHbqVNqGG2BsgJGTkebsT5cEBm3YA==
  • Thread-topic: [PATCH v3 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>
---
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 7f77226c9b..a87672d834 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®.