From: Oleksandr Andrushchenko Date: Fri, 8 Oct 2021 05:55:31 +0000 (+0300) Subject: libxl: Allow removing PCI devices for all types of domains X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~110 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bc2bdd4af4cbccaa332ea01583bb4ac691c3532d;p=xen.git libxl: Allow removing PCI devices for all types of domains The PCI device remove path may now be used by PVH on ARM, so the assert is no longer valid. Signed-off-by: Oleksandr Andrushchenko Acked-by: Stefano Stabellini Reviewed-by: Rahul Singh Tested-by: Rahul Singh Acked-by: Anthony PERARD --- diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c index 1a1c263080..59f3686fc8 100644 --- a/tools/libs/light/libxl_pci.c +++ b/tools/libs/light/libxl_pci.c @@ -1947,8 +1947,6 @@ static void do_pci_remove(libxl__egc *egc, pci_remove_state *prs) goto out_fail; } } else { - assert(type == LIBXL_DOMAIN_TYPE_PV); - char *sysfs_path = GCSPRINTF(SYSFS_PCI_DEV"/"PCI_BDF"/resource", pci->domain, pci->bus, pci->dev, pci->func); FILE *f = fopen(sysfs_path, "r");