Hi, This series is to emulate extended capability list for dom0; hide legacy and extended capability when its initialization fails; above two parts had been merged. remove all related registers and other resources when initializing capability fails, including patch #1, #2, #3, #4.
Best regards, Jiqian Chen. --- cc: "Roger Pau Monné" <roger....@citrix.com> cc: Anthony PERARD <anthony.per...@vates.tech> --- Jiqian Chen (4): 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 | 8 ++--- xen/drivers/vpci/msi.c | 46 ++++++++++++++++++++++++++- xen/drivers/vpci/msix.c | 44 +++++++++++++++++++++++++- xen/drivers/vpci/rebar.c | 41 +++++++++++++++++------- xen/drivers/vpci/vpci.c | 68 ++++++++++++++++++++++++---------------- xen/include/xen/vpci.h | 4 +-- 6 files changed, 165 insertions(+), 46 deletions(-) -- 2.34.1