From nobody Tue Nov 11 07:09:27 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1569659303; cv=none; d=zoho.com; s=zohoarc; b=G9LGhHcW/eMS3F3fjas3a4hdZv1q8KabweIquLow8WBkHqudIEk5BwUcMowxQgs1JmrOx106W8LuKDQa9CduxtinyBywAGeK1n57hcr3wKDaJKILeYhtJUyEIpzZQSkTSCD5Jp0gYceYjDsCBIiqGAlOZOa4WUwPPFEEzy6N/YE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569659303; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=NrkUx1pHSWfxDnCPlqwMXfICJSnZAl4NIotDSO20oMY=; b=m4kC33V9B/gL6mxQ1n1Rqnuu1SUPLsfBfCtpZJJpQyzCCn7wwj1Syn1TJwfmVQqUEMBIJR2/5zK6pbzUtng5cW/+k8U1yNcgxvaOOMCq7mYuFB+wOlgCRPEPqvGNL4Utz2uJ1WgFg2FAJD1o/HOPOMaDCJ1Ij3PNgInQfuS/kxQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1569659303224626.5786167387081; Sat, 28 Sep 2019 01:28:23 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1iE84M-0002ke-2O; Sat, 28 Sep 2019 08:27:10 +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.89) (envelope-from ) id 1iE84K-0002kZ-JF for xen-devel@lists.xenproject.org; Sat, 28 Sep 2019 08:27:08 +0000 Received: from esa2.hc3370-68.iphmx.com (unknown [216.71.145.153]) by localhost (Halon) with ESMTPS id c19ab3ae-e1c9-11e9-9691-12813bfff9fa; Sat, 28 Sep 2019 08:27:07 +0000 (UTC) X-Inumbo-ID: c19ab3ae-e1c9-11e9-9691-12813bfff9fa DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1569659227; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ZBsWlkv5AGW1UZHjNoo30tEnBKB9tboApyQWLvMaT3c=; b=NkHN0lUFdYR1yr0jsjT4dzKEVFgr+H9pwfMt+16XyKumG5B2TOfdFSfl ZTmFgQFkn9zyAxxqjGi/vPa/+1x+cMwEjeawCGj6+fISRe5ohod0LB+S9 lqDt5EbLRyF49DHhgsymBfrEHwBkAYqbLJx5D9xVrwjJsRj1C7I1drz2U o=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa2.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ~all" Received-SPF: None (esa2.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa2.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: xNhjv9b16diC+HxxlQXE2D/485XCfNYCwf2SBVwN4PcLwHgr5XbrlvyIEB53vOWc8lP/ivAkFt Y7vB/LntKXNCi5VNftS/8GD3tR7VGjf3r3zN8LlvIN7uV8ivz3iirxWWiYqelLzoUQ4C/2kiZW NZG9meRo6p/bgj5ONtIIY7OissbDl1aXYQkSXTkNbe7YbJCBfaTWgsv06JoDIAsRCRhT7IilV5 jGeapEzTyVlTrKRODl+g4mpoU5NaU5TfbZfRqJZoUmEnReyphanicbfBBufop3fznFF2m4z47/ rT4= X-SBRS: 2.7 X-MesageID: 6204110 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.64,558,1559534400"; d="scan'208";a="6204110" From: Roger Pau Monne To: Date: Sat, 28 Sep 2019 10:26:59 +0200 Message-ID: <20190928082659.45482-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86/iommu: fix hwdom iommu requirements check X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Paul Durrant , Jan Beulich , Roger Pau Monne Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Both a shadow and a HAP hwdom require an iommu and must be run in strict mode. Change the HAP check into a hvm domain check. Signed-off-by: Roger Pau Monn=C3=A9 Acked-by: Jan Beulich Reviewed-by: Paul Durrant --- xen/drivers/passthrough/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/iommu.c b/xen/drivers/passthrough/iomm= u.c index 8b550f909b..9ef5f376c5 100644 --- a/xen/drivers/passthrough/iommu.c +++ b/xen/drivers/passthrough/iommu.c @@ -154,7 +154,7 @@ custom_param("dom0-iommu", parse_dom0_iommu_param); =20 static void __hwdom_init check_hwdom_reqs(struct domain *d) { - if ( iommu_hwdom_none || !hap_enabled(d) ) + if ( iommu_hwdom_none || !is_hvm_domain(d) ) return; =20 iommu_hwdom_passthrough =3D false; --=20 2.23.0 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel