From nobody Fri Nov 29 19:29:21 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1632401731; cv=none; d=zohomail.com; s=zohoarc; b=jxv2ayvfto1UJH7hsk3c/YH3fYuk5WrBoRu4geoqVC5ctRe6CH79XuEYrFvCuw970hcXKnQvqACJz/AfgNgVWBk/6bvXOhVextt1mKuBRJoftPW6kL0fobfztXsaZowLBTMxeAJCwhZnO5s7qUhtxaarzCtHhdg119zm5NgNFl8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1632401731; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=kD50gSwDk757eJ2CQu1b9/IhYMvfHenQQYtu99uRv54=; b=JSoJi9rLOJ4BuTec/JRv980DSp5nQBlgqnMASLcEERIhegJnvBnfsOxrc5MsM/5tGhkQ8AZ685+7YmnVn4+reNrfiVlNlxh2+Dl/ME1jF4eIJVy5GN1oj1evABHipKowRD95UNi6EOcBzBjcRiJSNrHLZC/EC60PMb7ldvuTXm4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1632401731568965.1884157394735; Thu, 23 Sep 2021 05:55:31 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.194110.345820 (Exim 4.92) (envelope-from ) id 1mTOFz-0007uj-4X; Thu, 23 Sep 2021 12:55:19 +0000 Received: by outflank-mailman (output) from mailman id 194110.345820; Thu, 23 Sep 2021 12:55:19 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTOFz-0007ua-0i; Thu, 23 Sep 2021 12:55:19 +0000 Received: by outflank-mailman (input) for mailman id 194110; Thu, 23 Sep 2021 12:55:18 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mTOFy-0004it-3r for xen-devel@lists.xenproject.org; Thu, 23 Sep 2021 12:55:18 +0000 Received: from mail-lf1-x12d.google.com (unknown [2a00:1450:4864:20::12d]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 1abdf6a5-2656-4396-8478-8e678bb67c52; Thu, 23 Sep 2021 12:54:50 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id t10so26348964lfd.8 for ; Thu, 23 Sep 2021 05:54:50 -0700 (PDT) Received: from localhost.localdomain ([185.199.97.5]) by smtp.gmail.com with ESMTPSA id l7sm453584lfk.52.2021.09.23.05.54.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Sep 2021 05:54:48 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 1abdf6a5-2656-4396-8478-8e678bb67c52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=kD50gSwDk757eJ2CQu1b9/IhYMvfHenQQYtu99uRv54=; b=A/GZKDhDtUFyfAXRqux8zSAjOsg67lOWqEd8gnbAkBjf2ZcGl8o6Lt2rIX9xn/hQzZ rboPJFgUMKOheXmwh3W/Jd2UFU683MeJ1NIGWoN+edqTbrnPSnsl28LpC9JyN1tDT0k0 Xf2Bn3bHXhIaitQTbOqI5ThtQH4kBtOS8Fwf46mytqTm8l9Dxe5Ewfgfan1wj69tp0wD pLrMJx8cFSTkjiDbWoW8yYPhsRwrjufX43JQOguZ1/NbfCO1sBLv4hFk0P8RD49NrO3Z wcBip5MjV3N4WQmtEH70DxZXCJOxDbkiQkdkg87+UK+st8ok6tvvp9XqAzXeYQW9fQb9 woBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=kD50gSwDk757eJ2CQu1b9/IhYMvfHenQQYtu99uRv54=; b=4G/cqHJoElX1BDeWf9th8pyS1aPy1uFMhhLbuSIFI/JfGdD3qH6nl/14dMOdUkjdhu luiSGvyh/tngYD7Z0nWIaXrlXSxdonYNJO9fxMQ48/SYXNSDrjpl/MLsApqmDFqDU02g j/8iQ9z6MsPSBDQ7w4KGObUun9BboTHGYuaiZEzTY3L0pthT+6RkwQCXqqHOKOVIZcJb mT5b2th6QGYtoOcp4KItNUki+ICChLRSy8qryHxyxxbivQwYbuXoudYDkUt6ZlEFxfCI VxIVs8Tzyj0Hw09ot264Uo4TABLyW3qN512NZlStCjP0e5ACBYNa91A5Q12y0Z1vqvoZ gJ3A== X-Gm-Message-State: AOAM531/Ilh1s3X+oxBB6TfeM5/ZgBT/luJ01jMVYLKIOjTzAfnrPFnH zJfy0OC/ZuLtUwAF92H1L2mjXogV4PBJpw== X-Google-Smtp-Source: ABdhPJyPiC8+p5vTdecL32CVkX94l6rOzV6gWgEpMuOEU8GwMMl02WWx8nK2vMBCUYk8LpGC2ea0bQ== X-Received: by 2002:a2e:9c43:: with SMTP id t3mr5005948ljj.198.1632401689231; Thu, 23 Sep 2021 05:54:49 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org Cc: julien@xen.org, sstabellini@kernel.org, oleksandr_tyshchenko@epam.com, volodymyr_babchuk@epam.com, Artem_Mygaiev@epam.com, roger.pau@citrix.com, bertrand.marquis@arm.com, rahul.singh@arm.com, Oleksandr Andrushchenko , Ian Jackson , Juergen Gross Subject: [PATCH v2 07/11] libxl: Allow removing PCI devices for all types of domains Date: Thu, 23 Sep 2021 15:54:34 +0300 Message-Id: <20210923125438.234162-8-andr2000@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210923125438.234162-1-andr2000@gmail.com> References: <20210923125438.234162-1-andr2000@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1632401732357100001 Content-Type: text/plain; charset="utf-8" From: Oleksandr Andrushchenko 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 Cc: Ian Jackson Cc: Juergen Gross --- 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 =3D=3D LIBXL_DOMAIN_TYPE_PV); - char *sysfs_path =3D GCSPRINTF(SYSFS_PCI_DEV"/"PCI_BDF"/resource",= pci->domain, pci->bus, pci->dev, pci->func); FILE *f =3D fopen(sysfs_path, "r"); --=20 2.25.1