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

[PATCH v1 0/3] vPCI capabilities filtering


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>
  • Date: Thu, 10 Aug 2023 15:12:56 -0400
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=vRNrOjRzH+p+vR5qGxvK+DfrbcxqF7sGm8KJMpyIBfM=; b=XCkv/7gIz46NiFAIM+btP5A+A/LD/O56mafsEHJqfFjh8jk3zQURb2oeWTf5iBT6H7dOcAlaozNLXU9PtvSuu1Plga2KHfCgvs8CPHuXRYvXs69VV+dZ8dO/B65Cgt9w9k9t8anZLXRyRx59LsQuleUOfPKoZ7CWrWr3qco7pxGU8ncKdEB4HnDVJyrRkTNGYVzoX3dsfqq66hXkNbZISp1SfDPY9diL9iOnkF0DlI9xbkJ0GO1q6YD2VUdiYKjZQcWvXZ7UicJCW5cUDzji3XNkA2szIyGklVLeYh39Lm4ROTMYRVZ0vee19Tf3KQvo9G8z0zb7ImnDfidD5xtiag==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y08H5BOauLvq7pBlXvMs0+bChBLa2sexR/kI4Xx27Jo68wxoud+bL9MEtDdPGm18l7+rwlog9it5cLAYJc+gWIVXRGzCSzdrQqNoXU3xQKDojBIpQNSto3lD3ndVoXE598sOSRIv5ULC6SjBq/dByCKELOilyG7tdkZcZ4xZVYSHHZ55KETyGyPDsBfPrvrqBHhUi/Rtv+uKkISRXrQV4s6PooPyv+hlZJR+rcx+2QqDdR1bJ4+Cfz3Tek6MoZWc04ae/mEzc2UyUbii2UlJdV3N7z2CJyPVr9HtrNsXyZUTaBGOTAI/g7ogyCaF42EjWGivBMKpMj8VYU94rnYfwQ==
  • Cc: Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Delivery-date: Thu, 10 Aug 2023 19:13:42 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This small series enables vPCI to filter which PCI capabilites we expose to a
domU. This series adds vPCI register handlers within
xen/drivers/vpci/header.c:init_bars(), along with some supporting functions.

Note there are minor rebase conflicts with the in-progress vPCI series [1].
These conflicts fall into the category of functions and code being added
adjacent to one another, so are easily resolved. I did not identify any
dependency on the vPCI locking work, and the two series deal with different
aspects of emulating the PCI header.

Future work may involve adding handlers for more registers in the vPCI header,
such as STATUS, VID/DID, etc.

[1] https://lists.xenproject.org/archives/html/xen-devel/2023-07/msg01281.html

Stewart Hildebrand (3):
  xen/vpci: add vpci_hw_read8 helper
  xen/vpci: add vpci_read_val helper
  xen/vpci: header: filter PCI capabilities

 xen/drivers/vpci/header.c | 78 +++++++++++++++++++++++++++++++++++++++
 xen/drivers/vpci/vpci.c   | 12 ++++++
 xen/include/xen/vpci.h    |  5 +++
 3 files changed, 95 insertions(+)


base-commit: b70ffd23865e6c320fe2e8931f0d0366d7e03cac
-- 
2.41.0




 


Rackspace

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