[PATCH v7 0/8] Support hiding capability when its initialization fails

Jiqian Chen posted 8 patches 3 months, 4 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20250704070803.314366-1-Jiqian.Chen@amd.com
There is a newer version of this series
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  |  60 +++++---
xen/drivers/vpci/msi.c     | 111 ++++++++++++---
xen/drivers/vpci/msix.c    |  63 ++++++++-
xen/drivers/vpci/rebar.c   |  41 ++++--
xen/drivers/vpci/vpci.c    | 279 +++++++++++++++++++++++++++++++++----
xen/include/xen/pci_regs.h |   5 +-
xen/include/xen/vpci.h     |  38 +++--
xen/include/xen/xen.lds.h  |   2 +-
13 files changed, 507 insertions(+), 107 deletions(-)
[PATCH v7 0/8] Support hiding capability when its initialization fails
Posted by Jiqian Chen 3 months, 4 weeks ago
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@citrix.com>
cc: Anthony PERARD <anthony.perard@vates.tech>
cc: Michal Orzel <michal.orzel@amd.com>
cc: Jan Beulich <jbeulich@suse.com>
cc: Julien Grall <julien@xen.org>
cc: "Roger Pau Monné" <roger.pau@citrix.com>
cc: Stefano Stabellini <sstabellini@kernel.org>
---
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  |  60 +++++---
 xen/drivers/vpci/msi.c     | 111 ++++++++++++---
 xen/drivers/vpci/msix.c    |  63 ++++++++-
 xen/drivers/vpci/rebar.c   |  41 ++++--
 xen/drivers/vpci/vpci.c    | 279 +++++++++++++++++++++++++++++++++----
 xen/include/xen/pci_regs.h |   5 +-
 xen/include/xen/vpci.h     |  38 +++--
 xen/include/xen/xen.lds.h  |   2 +-
 13 files changed, 507 insertions(+), 107 deletions(-)

-- 
2.34.1