Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3230780ybc; Mon, 18 Nov 2019 11:41:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzSYP51/wTVB8IuYDTJhx2aQ4u5j5ZUzo+a8VHI7slARu3QujI5FaBEyO9f4b3mvnOSwene X-Received: by 2002:a17:906:b30c:: with SMTP id n12mr28400653ejz.96.1574106086521; Mon, 18 Nov 2019 11:41:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574106086; cv=none; d=google.com; s=arc-20160816; b=ZCz9VosY4PFHIi3n57eYEltpAkMjhEETPVeo6t+wCg7PYNjXfoP6IhMR7Dsxw2rsUm /ceSSxffVUcHQugIINLUVOnMeO+vmfsJ6GzeAxisn5BY8NqfZ2zAYtMsn2Fid9gVsGss /budH1R9jwHBCQY8rDGW0VJwmcY3c6jr4jgDHY5HKTwtMrI25oWOFcYAsaRkDC728Zfd ngBW2970hgc7qINQXeML17KK0vDW0uBWAeheKrHBIHUhCpg5V18JYUHceh6voFWZM39q 5pBC/l9OOlgIryp/VbQ8l/HzaeEBnqYHFbF2mHNvWryxsJ87hz1tmOzI5KCgkFyawVKo GnBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=RPbNx+cjRdVlGacRK46v7yKq4uAHOCprjf/VVHwbU+o=; b=O5BpjfP0/20ccg/CBnqEAOQSyMXWHEeUZ1JH0eLgAtKok4yDzLUQAlc1f8c60cwc5P UqSRS+GuboNwxBOq46JuMfHyPv7uszKtvEwD3qnasSiPAMHAoYxtWvPcoDMsyhxCCQ4A 5s28nkk77JXuiqV6FK/Xo94QQqRjuM/eVO4HWxOBJNxXe99FI84mFcqJSvyHTnGgNnms V9P88cX4l3GJ/gWM5wVYs440eL3qqkLAwM1S7S0JTG0CpjZBjj+0HEQZX+izbjsntzzT T4XHbOuhIgYrBs1WnYAn0QoT/AutW4qQkmNiJTySB1I749a6qE2LZwxq2QqL3w8UXWdl HlUw== 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 a4si11725161ejy.439.2019.11.18.11.41.02; Mon, 18 Nov 2019 11:41:26 -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 S1726747AbfKRTiA (ORCPT + 99 others); Mon, 18 Nov 2019 14:38:00 -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 S1726435AbfKRTh7 (ORCPT ); Mon, 18 Nov 2019 14:37:59 -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:58 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,321,1569308400"; d="scan'208";a="380760842" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga005.jf.intel.com with ESMTP; 18 Nov 2019 11:37:58 -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 00/10] VT-d Native Shared virtual memory cleanup and fixes Date: Mon, 18 Nov 2019 11:42:23 -0800 Message-Id: <1574106153-45867-1-git-send-email-jacob.jun.pan@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mostly extracted from nested SVA/SVM series based on review comments of v7. https://lkml.org/lkml/2019/10/24/852 This series also adds a few important fixes for native use of SVA. Nested SVA new code will be submitted separately as a smaller set. Based on the core branch of IOMMU tree staged for v5.5, where common APIs for vSVA were applied. git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git core Changelog: V2 - Coding style fixes based on Baolu's input, no functional change - Added Acked-by tags. Thanks, Jacob Jacob Pan (10): iommu/vt-d: Introduce native SVM capable flag iommu/vt-d: Fix CPU and IOMMU SVM feature matching checks iommu/vt-d: Reject SVM bind for failed capability check iommu/vt-d: Match CPU and IOMMU paging mode iommu/vt-d: Avoid duplicated code for PASID setup iommu/vt-d: Fix off-by-one in PASID allocation iommu/vt-d: Replace Intel specific PASID allocator with IOASID iommu/vt-d: Fix PASID cache flush iommu/vt-d: Avoid sending invalid page response iommu/vt-d: Misc macro clean up for SVM drivers/iommu/Kconfig | 1 + drivers/iommu/intel-iommu.c | 23 +++---- drivers/iommu/intel-pasid.c | 99 ++++++++------------------ drivers/iommu/intel-svm.c | 164 +++++++++++++++++++++++++------------------- include/linux/intel-iommu.h | 5 +- 5 files changed, 138 insertions(+), 154 deletions(-) -- 2.7.4