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

[PATCH v5 00/10] Support hiding capability when its initialization fails


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jiqian Chen <Jiqian.Chen@xxxxxxx>
  • Date: Mon, 26 May 2025 17:45:49 +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=dgCGQ36mKt8+nLsWda08/hpIxoIRAEZAIVomHicqwAM=; b=imWSnaZT7eCnoEnM+igtfTZZ9H6GbIJdlrnkirW2bB4yO1mICu+NbcLEDdvF3DWTro0ewV7OISWNolclpO7qLoJP7viXoYoNML+TTzPubfToQmGAbhyUimD/hKcgLvvcpN4agx/N6ExgAUhJI+D6L1RX83J2QwdOqfZ0eEynZoJ/K6D1+bbHLmEY33BzYNgDPDwfumHCfoshhsJsZ12I4neprifZ1jB3Oa2oAdwtA+9oEH9hhPOk7fM8SrRn2BbvbwgFsu1U7ZL0qFX/iFSiBGh5JXEVt0r+151OvE9GSWVR9TBwWKK9WiwuMmzb0eyOJZZsJeaX5/i+oKpJbIWp3A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=slYlmZfcpqhgJj3EDDX1mRY/r/1BdT3cAYgrmbzjuLDqqKwCyXtIEr7hDg/35ayOK1X2oigpxPMbk05uc8dJzL2qpL/apLFyUv3suAFlT1KuzXC+m94iKeajwksz96seG6twZ94D8gm+lPbQAmyTUrXaXNJsLiKntXLNRAJg+zd7yMLJfDbe0/GQfMA5PyWqzMuKPEU93AkMhMsaJX0fPBxsF5XyC+lAlyXi1ywcMHZRpVuBz+1t7IfgkMN+7Wf1f+XBclj1tGaf85buqSwrd3AisYP7LQz5Wk20gcLZfdQIetM+eVv64UDpWIoNVuNsDrOUbOf+Ner4zDxFzFHv3A==
  • 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: Mon, 26 May 2025 09:46:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi,

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

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 (10):
  vpci/header: Move emulating cap list logic into new function
  vpci/header: Emulate legacy capability list for dom0
  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/drivers/vpci/header.c  | 195 +++++++++++++++---------
 xen/drivers/vpci/msi.c     |  29 +++-
 xen/drivers/vpci/msix.c    |  35 ++++-
 xen/drivers/vpci/rebar.c   |  35 +++--
 xen/drivers/vpci/vpci.c    | 293 +++++++++++++++++++++++++++++++++----
 xen/include/xen/pci_regs.h |   5 +-
 xen/include/xen/vpci.h     |  38 +++--
 xen/include/xen/xen.lds.h  |   2 +-
 9 files changed, 510 insertions(+), 126 deletions(-)

-- 
2.34.1




 


Rackspace

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