Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7DF63C433E1 for ; Mon, 15 Jun 2020 17:40:04 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5DAEE20739 for ; Mon, 15 Jun 2020 17:40:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5DAEE20739 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=citrix.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jkt5E-0003i3-13; Mon, 15 Jun 2020 17:39:44 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jkt5D-0003hx-4G for xen-devel@lists.xenproject.org; Mon, 15 Jun 2020 17:39:43 +0000 X-Inumbo-ID: 319d1e34-af2f-11ea-b823-12813bfff9fa Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 319d1e34-af2f-11ea-b823-12813bfff9fa; Mon, 15 Jun 2020 17:39:42 +0000 (UTC) Authentication-Results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: LIxLEXBTV2Py4kYVPLwlph6n2kLbGFZEteyCwyNN9O8yAhLZX05mF3koPnpXXVTVQ9QToYHwQL aiK8Y/HrwR/F9GgUQWapTo50R8Qo2yTKDS8M4m1NPAsp+TsDWFhbP0N2LnbvhH3hbl0/3JmruW CEjVhy5g4L6c0Y7XkvpnqTzJnq1wJXB0qGAe+LxTV/cZmP4Vu4S1mfiBefrboiShDP9KOk8nQY 6imTynHUbUTmZeuE1FsPhTtu1GxRRlNKxgP6OjA/Db8yaY3VGKKIViHzH+zvdEFQt+VS319SXL hbg= X-SBRS: 2.7 X-MesageID: 20386887 X-Ironport-Server: esa1.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.73,515,1583211600"; d="scan'208";a="20386887" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-ID: <24295.45650.388910.186169@mariner.uk.xensource.com> Date: Mon, 15 Jun 2020 18:39:30 +0100 To: "paul@xen.org" Subject: RE: [PATCH] libxl: tooling expects wrong errno In-Reply-To: <003401d64337$f43c1990$dcb44cb0$@xen.org> References: <24295.36070.945693.791220@mariner.uk.xensource.com> <20200615155646.GI735@Air-de-Roger> <24295.41945.883230.966002@mariner.uk.xensource.com> <003401d64337$f43c1990$dcb44cb0$@xen.org> X-Mailer: VM 8.2.0b under 24.5.1 (i686-pc-linux-gnu) X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Kevin Tian , 'Wei Liu' , "jakub@bartmin.ski" , Andrew Cooper , "marmarek@invisiblethingslab.com" , 'Grzegorz Uriasz' , Anthony Perard , 'Jan Beulich' , "j.nowak26@student.uw.edu.pl" , "xen-devel@lists.xenproject.org" , "contact@puzio.waw.pl" , Roger Pau Monne Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant writes ("RE: [PATCH] libxl: tooling expects wrong errno"): > > -----Original Message----- > > From: Ian Jackson > > Thanks for the analysis. So: > > > > Acked-by: Ian Jackson > > > > This would seem to be a backport candidate. AFAICT check has been > > there, looking for ENOSYS, since this code was introduced in > > 826eb17271d3c647516d9944c47b0779afedea25 > > libxl: suppress device assignment to HVM guest when there is no IOMMU > > ? > > > > But that commit has a Tested-by. Maybe Xen changed its error return > > at some point ? > > > > Yes, it happened in 71e617a6b8f69849c70eda1b3c58f1ff6b244e5a > use is_iommu_enabled() where appropriate... So, Backport: 4.13 Thanks! Ian.