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

[PATCH v6 00/8] Support hiding capability when its initialization fails


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jiqian Chen <Jiqian.Chen@xxxxxxx>
  • Date: Thu, 12 Jun 2025 17:29:34 +0800
  • 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 (0)
  • 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=Pkqn70ZAbRTvqLOKlzkzMDMievy0UdcX/JDLxlqXjys=; b=LAZcOxMezxc8PoCTSpgJoglOcpP3qaByiqp5JprEI5kh6qFo4WNFtSfb44ZWv4JbyIPaaw4kK7pxywHVMmJ2CpegJWpJWlHbYBeAn8ldkOe7xzr3+2+MJvAT+rZXnG1qxS7/kkFdjONUmHLBr4WeYds5CrIi4fwqVx/jbkEjGj8zuEOVLj3PTQvyaljFnVOAFuomXMC2u1Po9pqf0SP3Iv2J02xRnDw7Rw7NhtLkrOB/qqYCOkwuznBOv3sOn2indwPJyGMA53+IvIVC/UcxWBCRmV63/QFeAjv3sk19OrfKcNR3z3ZOl4JpTV+wnodxQym6aHbnAm1tihaOeMO/Xw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=uj6v3r9rsIcrQmWe7oj28hHMHcdDL1NQLdV8hWPTzVT8hRux9sFtJEKQNpE+fBHwPPbYxH1Hm3BW4YJ50I7kU0vy9wTPVbBTSH6TP/AprsfuOXtj6QJhtYctDd2niSxQMKqHhn0jrGdHel6BhyaRieXuAGU+vLwiY6AjQGkklCRLMSwQcZG18kFGTFB+fkqgd1UoXpnGv1SmjG3rLFeC/XSLR9EL1BbuyF842YQ77n7qtXXyWfw1B2bfm5yLvA7rNqKFg/HbDLj6Muohn8xYh1Ltt4ANgraa7R2sD9DiTfn8HggaTsWvc/SK+WfMcyZGKAHn4p6Ftolxtz1uBa5OWw==
  • Cc: Huang Rui <ray.huang@xxxxxxx>, Jiqian Chen <Jiqian.Chen@xxxxxxx>, "Andrew Cooper" <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Julien Grall <julien@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, "Stefano Stabellini" <sstabellini@xxxxxxxxxx>
  • Delivery-date: Thu, 12 Jun 2025 09:30:16 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi,

This series is to
emulate extended capability list for dom0, including patch #1.
hide legacy and extended capability when its initialization fails, including 
patch #2, #3, #4.
remove all related registers and other resources when initializing capability 
fails, including patch #5, #6, #7, #8.

Best regards,
Jiqian Chen.
---
cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
cc: Anthony PERARD <anthony.perard@xxxxxxxxxx>
cc: Michal Orzel <michal.orzel@xxxxxxx>
cc: Jan Beulich <jbeulich@xxxxxxxx>
cc: Julien Grall <julien@xxxxxxx>
cc: "Roger Pau Monné" <roger.pau@xxxxxxxxxx>
cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
Jiqian Chen (8):
  vpci/header: Emulate extended capability list for dom0
  vpci: Refactor REGISTER_VPCI_INIT
  vpci: Hide legacy capability when it fails to initialize
  vpci: Hide extended capability when it fails to initialize
  vpci: Refactor vpci_remove_register to remove matched registers
  vpci/rebar: Free Rebar resources when init_rebar() fails
  vpci/msi: Free MSI resources when init_msi() fails
  vpci/msix: Free MSIX resources when init_msix() fails

 tools/tests/vpci/main.c    |   4 +-
 xen/arch/arm/xen.lds.S     |   3 +-
 xen/arch/ppc/xen.lds.S     |   3 +-
 xen/arch/riscv/xen.lds.S   |   3 +-
 xen/arch/x86/xen.lds.S     |   2 +-
 xen/drivers/vpci/header.c  |  50 +++++--
 xen/drivers/vpci/msi.c     |  29 +++-
 xen/drivers/vpci/msix.c    |  35 ++++-
 xen/drivers/vpci/rebar.c   |  35 +++--
 xen/drivers/vpci/vpci.c    | 278 +++++++++++++++++++++++++++++++++----
 xen/include/xen/pci_regs.h |   5 +-
 xen/include/xen/vpci.h     |  36 +++--
 xen/include/xen/xen.lds.h  |   2 +-
 13 files changed, 414 insertions(+), 71 deletions(-)

-- 
2.34.1




 


Rackspace

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