Hi Oleksandr,

> On 4 Oct 2021, at 3:11 pm, Oleksandr Andrushchenko <andr2...@gmail.com> wrote:
> 
> From: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com>
> 
> The PCI device remove path may now be used by PVH on ARM, so the
> assert is no longer valid.
> 
> Cc: Ian Jackson <i...@xenproject.org>
> Cc: Juergen Gross <jgr...@suse.com>
> Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushche...@epam.com>
> Acked-by: Stefano Stabellini <sstabell...@kernel.org>

Reviewed-by: Rahul Singh <rahul.si...@arm.com>
Tested-by: Rahul Singh <rahul.si...@arm.com>

Regards,
Rahul
> ---
> tools/libs/light/libxl_pci.c | 2 --
> 1 file changed, 2 deletions(-)
> 
> diff --git a/tools/libs/light/libxl_pci.c b/tools/libs/light/libxl_pci.c
> index 1a1c2630803b..59f3686fc85e 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");
> -- 
> 2.25.1
> 


Reply via email to