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=-3.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 ADBF9C433E0 for ; Fri, 19 Jun 2020 15:25:49 +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 8AB1B21556 for ; Fri, 19 Jun 2020 15:25:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8AB1B21556 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 1jmIte-0003Be-Fi; Fri, 19 Jun 2020 15:25:38 +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 1jmItd-0003BZ-Bp for xen-devel@lists.xenproject.org; Fri, 19 Jun 2020 15:25:37 +0000 X-Inumbo-ID: 1f5fe980-b241-11ea-bba6-12813bfff9fa Received: from esa3.hc3370-68.iphmx.com (unknown [216.71.145.155]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 1f5fe980-b241-11ea-bba6-12813bfff9fa; Fri, 19 Jun 2020 15:25:36 +0000 (UTC) Authentication-Results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none IronPort-SDR: /mSgulF+ycME8TtcnonrGmCH8Byxg2si0Wz7VVPdJ4wvABsGA4c3np5bWsLHKgbSaP70TioZb+ vGIKqeqOQv0zacONna5UKXgUTMd+7+5/Qez50c8WRW0kpy/63v5RmgfSMm8yZi5Bq4qekBuCnl 7BhW1ev5XzXXwk9cCYDm15ZMiSW1y1kbCMqEPVSqnyf/RitR1M8K4GqCHtpriP2vUT8J2gTW/J zLxP4dyoH7TwYxpAPb1v+XRQBnr3o6ynbxkPfVyZ4nHQMzTZ0TLZ8jAXqVkAatuAW0QyWOImk1 Zc0= X-SBRS: 2.7 X-MesageID: 20479828 X-Ironport-Server: esa3.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.75,255,1589256000"; d="scan'208";a="20479828" From: Ian Jackson MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Message-ID: <24300.55530.451581.376231@mariner.uk.xensource.com> Date: Fri, 19 Jun 2020 16:25:30 +0100 To: Paul Durrant , Patrik =?iso-8859-1?Q?Horn=EDk?= Subject: Re: [PATCH for 4.14] libxl: allow passthrough to PV guests regardless of whether IOMMU is enabled In-Reply-To: <20200619073315.8414-1-paul@xen.org> References: <20200619073315.8414-1-paul@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: Anthony Perard , "xen-devel@lists.xenproject.org" , Paul Durrant , Wei Liu Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Paul Durrant writes ("[PATCH for 4.14] libxl: allow passthrough to PV guests regardless of whether IOMMU is enabled"): > From: Paul Durrant > > Commit babde47a "introduce a 'passthrough' configuration option to xl.cfg..." > added a check to xl_parse.c:parse_config_data() to make sure that an IOMMU > was present and enabled in the system before allowing devices to be passed > through to a guest. This check was then subsequently moved into > libxl_create.c:libxl__domain_config_setdefault() by commit ad011ad0 "libxl/xl: > Overhaul passthrough setting logic". > > Prior to this check being added, it was possible (although not in any way safe > or supported) to pass devices through to a PV guest without an IOMMU being > enabled in the system. This patch relaxes the check for PV guests to restore > that possibility, emitting a warning instead. Thanks. Reviewed-by: Ian Jackson I think this patch could have Reported-by: Patrik Horník Patrik, if we put your credit in like this it will be permanently recorded in our git history, as part of our code traceability etc. Please let us know what you would prefer. > Signed-off-by: Paul Durrant > --- > Cc: Ian Jackson > Cc: Wei Liu A > Cc: Anthony PERARD > > This patch ought to be in 4.14 as it as very obvious change, restoring lost > functionality that has affected a user. Thanks. I'll take that as a release-ack :-). Also, I will add this tag too when I commit this: Backport: 4.13+ Ian.