Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3347810ybc; Mon, 18 Nov 2019 13:47:29 -0800 (PST) X-Google-Smtp-Source: APXvYqywXI9DzjRHU7LzxUMHReTEY3noWX+/7AVFUkfkpIwj9L6H6k2LoTzXegdtxupPwJfTNvGx X-Received: by 2002:a17:906:fad4:: with SMTP id lu20mr29889822ejb.9.1574113649707; Mon, 18 Nov 2019 13:47:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574113649; cv=none; d=google.com; s=arc-20160816; b=g7XS0SU//G73EsopfuEGcinojg8BpPrCDI6hVNg6rcRkPvtmkoREJk8h7NSClgOevv bHuA6NM5h2wtFS3XCBP5fmJlqVLzpZhT21HtjqqQUrFSbQhfu41LHJCg3uDg09r24XfJ Z0fCtKzYnrBYysA4RDhfRvGD5lsDztwZGxT3CWWrTsV26urfg2ulIQmoV3Ml6cV2Sth8 Gpjdf3t68eY1UM1og2xwbNIoDX0XXUQNi9sEcGwtASsUjmG4gGc1Xf1F0qCifuyIC54Z 5/gp/4tyj4mORCdFYRWtHEVD0iPlxwRDneDN94qmWmN5ZTzTufqjjHoOWwA+JMe6aP/E gfIg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=aNXDM16uUyOwF9jUWcXcszIuQWVUsOlL9V5mMoUH60Q=; b=RZh2RSlu2p5XipuN4z0DGfZu+LjI41mMbt8KS6+LtcLzGVWNkoAWprAyO1sKdJyC2X Am0Xn/MTk0Pk8PEQPE+XM9dV0MNtozOF9Ooj2f6eI97DLtU2RJwyr4mWPEQAF+xAiwmi Tdo3oxDVPhdhS9pcEvePYe+oK3+ZaSea0BvWQ63Nti21AzXlHVf0pvXV8iOozktVmMXW S8z5NhHe2wXVsIrrHAHDHhVxcW5d37+fLph5yzvl56FsUWkifth2t3uSx6L1Fq+fatmb DWaQtETSR6JzvtVf4W2z9tCcyzfpiLfjec3jscu7D+jP8X0FS0xIaCM6OjiCI5xdZq5l AcxQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v42si14809640edc.378.2019.11.18.13.47.05; Mon, 18 Nov 2019 13:47:29 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727234AbfKRVnl (ORCPT + 99 others); Mon, 18 Nov 2019 16:43:41 -0500 Received: from mga05.intel.com ([192.55.52.43]:26992 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbfKRVnf (ORCPT ); Mon, 18 Nov 2019 16:43:35 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 13:43:35 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,321,1569308400"; d="scan'208";a="407535608" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by fmsmga006.fm.intel.com with ESMTP; 18 Nov 2019 13:43:34 -0800 Date: Mon, 18 Nov 2019 13:48:09 -0800 From: Jacob Pan To: Auger Eric Cc: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , Lu Baolu , David Woodhouse , "Tian, Kevin" , Raj Ashok , Yi Liu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v2 01/10] iommu/vt-d: Introduce native SVM capable flag Message-ID: <20191118134809.66b9fda4@jacob-builder> In-Reply-To: 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> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Nov 2019 21:33:53 +0100 Auger Eric wrote: > 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. > > > > This patch introduces a flag which will be used to mark and test the > > capability of SVM. > > > > Signed-off-by: Jacob Pan > > Acked-by: Lu Baolu > > --- > > include/linux/intel-iommu.h | 1 + > > 1 file changed, 1 insertion(+) > > > > 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 { > > > > #define VTD_FLAG_TRANS_PRE_ENABLED (1 << 0) > > #define VTD_FLAG_IRQ_REMAP_PRE_ENABLED (1 << 1) > > +#define VTD_FLAG_SVM_CAPABLE (1 << 2) > > I think I would rather squash this into the next patch as there is no > user here. > Sure, I don't have strong preference. Baolu, what is your call? > Thanks > > Eric > > > > extern int intel_iommu_sm; > > > > > [Jacob Pan]