Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3232683ybc; Mon, 18 Nov 2019 11:43:35 -0800 (PST) X-Google-Smtp-Source: APXvYqw45LIziF1MoCqd/8nLloXEhMoRx3jPI3u6kyxS/X4SCXpc8/t8lZgYtp7cwEstT7lTFdrS X-Received: by 2002:adf:d091:: with SMTP id y17mr34006238wrh.182.1574106215651; Mon, 18 Nov 2019 11:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574106215; cv=none; d=google.com; s=arc-20160816; b=TmPR9qR4bxvjNnC8SZ/aOWGnw8PpvYbJCImmiPptzAMKdTHo5wFN/D0Q4p/AaoSB+8 F3BXs1oXOQtQZvjufJS/6U7d5+LMgV7Hj6xf/9QhdfGVPnvxDN5CIZy8hKGoFOwIiGTY Kr4jgdBDKk5gYk/+KJk+mRVekm9Kc28zjPR1HK7gssZy7vxQciOCjeFyc39P4BFZlES9 shXuccV4ZHDqLoWu//6Xga067EhOtXQ8KO3Cn0rLOZBzWxo7ElMCFOx4n2bgQORquz/p hypYXH7N0pErhxOCuUYV5hm4JXWZ7aLJHvzU+ESfKPGc9p9fthym33CHVafP/O5FLPRk qN3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=c7w9/cwjq4Q5lbiNPLTa0AAOnvNYr/E5HdmY3Rn/Ez0=; b=MyZagA/dkZnTyxIP4FRAiDV0cMsOL8Or6u+94W331DiSms8xldCfRPz68OBviqc+Pw vj3GPWAwAhxxGKSXQwdu/8uALpDfg2EKIpah+q47G3C/a96PbBhqSg0v4jJuh64dp0f3 rhhCzE4j8Kn9D1U1E92ng8ToeSxfGJniuIIjHa3KbzH4H56RNLEhfl1pqGLfvO39XJ2q ohXoOBfbLUBtPunCSIVFYNRYZ0BiFJjbxj5lzGFIe69eSEVL1J8rBQuV7KHqKki+tCGe fEDpfD2nPz8FmuUyN6gYpbhbDtXXZzU9kx3MqAt9LOlVmNbGiu/NvrzaiD3dVdiDVsqg 4Uqw== 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 z31si14715846ede.236.2019.11.18.11.43.12; Mon, 18 Nov 2019 11:43:35 -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 S1727146AbfKRTid (ORCPT + 99 others); Mon, 18 Nov 2019 14:38:33 -0500 Received: from mga02.intel.com ([134.134.136.20]:60271 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726472AbfKRTiA (ORCPT ); Mon, 18 Nov 2019 14:38:00 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Nov 2019 11:37:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,321,1569308400"; d="scan'208";a="380760846" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga005.jf.intel.com with ESMTP; 18 Nov 2019 11:37:59 -0800 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , Joerg Roedel , "Lu Baolu" , David Woodhouse Cc: "Tian, Kevin" , Raj Ashok , "Yi Liu" , Eric Auger , Jacob Pan Subject: [PATCH v2 01/10] iommu/vt-d: Introduce native SVM capable flag Date: Mon, 18 Nov 2019 11:42:24 -0800 Message-Id: <1574106153-45867-2-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1574106153-45867-1-git-send-email-jacob.jun.pan@linux.intel.com> References: <1574106153-45867-1-git-send-email-jacob.jun.pan@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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) extern int intel_iommu_sm; -- 2.7.4