mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <oleksandr_andrushchenko@epam.com> Acked-by: Stefano Stabellini <sstabellini@kernel.org> Reviewed-by: Rahul Singh <rahul.singh@arm.com> Tested-by: Rahul Singh <rahul.singh@arm.com> Acked-by: Anthony PERARD <anthony.perard@citrix.com>
This commit is contained in:
1 parent
4817dbf1c8
commit
bc2bdd4af4
1 file changed
-2
@@ -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");
|
||||
|
||||