Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3285488ybc; Mon, 18 Nov 2019 12:36:29 -0800 (PST) X-Google-Smtp-Source: APXvYqwnxabSc53KjWCqQrdrC9NZoCVVftOA6SDzlvlUivOYmwtn6VIU5a5BGDS280rLJXbsvG7M X-Received: by 2002:a1c:f705:: with SMTP id v5mr1237666wmh.82.1574109388952; Mon, 18 Nov 2019 12:36:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574109388; cv=none; d=google.com; s=arc-20160816; b=lroTLFWUVMY9vJYUycqrovwQbBBMWt03diDNL3r7TraoCxrxOWN6rsg8HmFdxdqM18 xv8KRFBtayfuPTaWvja5/invS6Ci7QLuYQjUjCZsCCA3+9d+TFhTSN7slZ9QiHVtSSvv IMy8idrTq26iHOmBGedYZOv2d9zdgnJCcHKfEEa9TyFyg56yGFQpa+VpflGjTkgpRI97 G1hhrkNkWYYTk4CDjnyzCcv05RT52eBidoUAkfYAcGuYNP1OpYiY496Zz9VlmCZm8zV+ uaO5ZTALuoWIiKK8aM/sqhqecOPrLrqfsWNxzK+3BXYzgHYLfWwdXkblF3e1WWsuihXR i1Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=g7Ut5u5BkynozWLWUQUIPMSDJX5+3da6yjRKIKCNCEQ=; b=SC5bQZ+zy6YHb+e/C5PxfA3RLzYrFmbyNQnvcPM2OYK7AAGr5iNNUiSutRIQMvnpK+ TLi3cDB3tIf0N8SROeoPjMvDJy5drK86vVAIv5wLW5WFPjBWuJzqGhJCjEfS87yg+DMX ENrLxejBHNjVTiY4dCpQmep5H2PRCP6mW8MgU4VaGKfyhxguRFPLqJI5Vrg78M9eIcV7 OsuQlLnCAfUPmTXZurAQNw9d9P2HhIrK1qYnwF6QWUD4e5GQ2QYqTU8e0hah51B6KHZZ 2PH6oHHtJzPOkgD6HEoQY0m5yx5TGS5ARTiraWwn9oKu5ixVEsQY1+98FK0Ne3RIXFcY fK3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=efDuKRZH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h6si13744637eda.258.2019.11.18.12.36.04; Mon, 18 Nov 2019 12:36:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=efDuKRZH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726775AbfKRUeD (ORCPT + 99 others); Mon, 18 Nov 2019 15:34:03 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:21989 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726536AbfKRUeD (ORCPT ); Mon, 18 Nov 2019 15:34:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1574109242; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=g7Ut5u5BkynozWLWUQUIPMSDJX5+3da6yjRKIKCNCEQ=; b=efDuKRZHkyaIsOHnSkxZNiSGPs7NfBotbVWMfxCvtJmQ0rFLdfkZtaRAila5rx3Hj1mMjW hBasif2jJZgBZXBOzn7zDdMuy66XZWc3LgyFLwkgLHrcexL9/y2GjL2dKK/3sxO/OZfnUA Ba06iKaxLNPWmt8/Ld1u1Tg2P3WH7PA= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-284-glOV4wuXM2GWm_MZ_FV-2g-1; Mon, 18 Nov 2019 15:33:59 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id ABECD1085982; Mon, 18 Nov 2019 20:33:57 +0000 (UTC) Received: from [10.36.116.37] (ovpn-116-37.ams2.redhat.com [10.36.116.37]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E6D655E25A; Mon, 18 Nov 2019 20:33:54 +0000 (UTC) Subject: Re: [PATCH v2 01/10] iommu/vt-d: Introduce native SVM capable flag To: Jacob Pan , iommu@lists.linux-foundation.org, LKML , Joerg Roedel , Lu Baolu , David Woodhouse Cc: "Tian, Kevin" , Raj Ashok , Yi Liu References: <1574106153-45867-1-git-send-email-jacob.jun.pan@linux.intel.com> <1574106153-45867-2-git-send-email-jacob.jun.pan@linux.intel.com> From: Auger Eric Message-ID: Date: Mon, 18 Nov 2019 21:33:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: <1574106153-45867-2-git-send-email-jacob.jun.pan@linux.intel.com> Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-MC-Unique: glOV4wuXM2GWm_MZ_FV-2g-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacob, On 11/18/19 8:42 PM, Jacob Pan wrote: > Shared Virtual Memory(SVM) is based on a collective set of hardware > features detected at runtime. There are requirements for matching CPU > and IOMMU capabilities. >=20 > This patch introduces a flag which will be used to mark and test the > capability of SVM. >=20 > Signed-off-by: Jacob Pan > Acked-by: Lu Baolu > --- > include/linux/intel-iommu.h | 1 + > 1 file changed, 1 insertion(+) >=20 > diff --git a/include/linux/intel-iommu.h b/include/linux/intel-iommu.h > index ed11ef594378..63118991824c 100644 > --- a/include/linux/intel-iommu.h > +++ b/include/linux/intel-iommu.h > @@ -433,6 +433,7 @@ enum { > =20 > #define VTD_FLAG_TRANS_PRE_ENABLED=09(1 << 0) > #define VTD_FLAG_IRQ_REMAP_PRE_ENABLED=09(1 << 1) > +#define VTD_FLAG_SVM_CAPABLE=09=09(1 << 2) I think I would rather squash this into the next patch as there is no user here. Thanks Eric > =20 > extern int intel_iommu_sm; > =20 >=20