Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp576536ybt; Mon, 6 Jul 2020 17:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwGHt5S1rcTRm9P+J0ZmFmLIsnlJ+CBxeThSwKPstot83j8kPakd+jwPw8iFutxHfISef/B X-Received: by 2002:a17:906:35ce:: with SMTP id p14mr44745464ejb.514.1594080405918; Mon, 06 Jul 2020 17:06:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594080405; cv=none; d=google.com; s=arc-20160816; b=bGDCgd0iM/p0Q87bT3bpvUvg4aO2Aqpuinn6p90+TUilOinhUm926/tBp5N70xFB4t biIgmU9CXiNsFXdKB98lZKHlZSZ7iowT3IwgeW98+uiN+YG0U8gv5Acr0pBXwN2bxIsM x1NkVCKBKgO4jE9yUHE5250WVLDsadNRYTFjUU9qGcOOkoaZ5VbJMF/gIp/hY29sE5Ho YY5IydA7SV4Gi2VOJ3GajfOmbEFuSQWDqyaVR3kXi5Dyszy57ShjmgfUg/zGwi4pubia U3E1sdvHeQQoulvgRgv/IQ50MhiYkv40oQxkSfn1OxbLlxBqvFM1plYvmJBVxpS4ZE3v Sy6Q== 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 :ironport-sdr:ironport-sdr; bh=/Jon/kXwo3PU55TIaVvA+hWionVrcWAXBUtnUYYfTCE=; b=BQ/X87TtlmDK6fvVFVnR7+7icTsLRbNWgxb7R/Oyj2ZZQLO/aavZD2txepRTlSlL0C TFyV6yD0mTkrqgJvrrEIhXlTRX0YSNlvJeF3w677Pi0/Hh6xCOjjauMhLy+gfUKKM9np cqj/jsr1Ki5yRYc4Ce3cI2X41gX9awSjY9BQVbXD28/eA2fa1f+Dg26WDE5TuKe8cUo2 tuTFZsU7sdZc2nDfZPXDKdnvE+YpJBubL9o1Jlr5Yz12VDwAlGY8Hatn3qc66yOQ/O+H NIY4jbnLTRBk0AcF88N1Z5O47KlzoEe5CiTX5XhR9sHyKqNtkzHxMydl8RsSHLepnDs4 yseg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id l17si14866716ejc.174.2020.07.06.17.06.21; Mon, 06 Jul 2020 17:06:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726889AbgGGAGR (ORCPT + 99 others); Mon, 6 Jul 2020 20:06:17 -0400 Received: from mga07.intel.com ([134.134.136.100]:18972 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726729AbgGGAGR (ORCPT ); Mon, 6 Jul 2020 20:06:17 -0400 IronPort-SDR: Rm6VZ2RgrznLhz1acNMP/IRW74eCf07b3VNKRnPRGDmp39+298Eiabrx3aUcDK68M5721O7ag7 Wr+qzj/7VT7Q== X-IronPort-AV: E=McAfee;i="6000,8403,9674"; a="212492286" X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="212492286" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2020 17:06:17 -0700 IronPort-SDR: VrRVTkhV5Kkl8bkovYinkC2tlC80oMlpdIW65zKC5YQI3igcyF+gPzRtvI0VC5fV63kTqJQJIj sogfGByOhuNA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,321,1589266800"; d="scan'208";a="456913803" Received: from jacob-builder.jf.intel.com ([10.7.199.155]) by orsmga005.jf.intel.com with ESMTP; 06 Jul 2020 17:06:17 -0700 From: Jacob Pan To: iommu@lists.linux-foundation.org, LKML , "Lu Baolu" , Joerg Roedel , David Woodhouse Cc: Yi Liu , "Tian, Kevin" , Raj Ashok , Eric Auger , Jacob Pan Subject: [PATCH v4 0/7] iommu/vt-d: Misc tweaks and fixes for vSVA Date: Mon, 6 Jul 2020 17:12:47 -0700 Message-Id: <1594080774-33413-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 Hi Baolu and all, This is a series to address some of the issues we found in vSVA support. Most of the patches deal with exception handling, we also removed some bits that are not currently supported. Many thanks to Kevin Tian's review. Jacob & Yi Changelog: v4 Address reviews from Eric Auger - Additional warning for unaligned mask and address in guest IOTLB invalidation - Comments rewrite and code simplification v3 - Use pr_err instead of WARN() for invalid user address range (6/7) - Fix logic in PASID selective devTLB flush (3/7) v2 Address reviews from Baolu - Fixed addr field in devTLB flush (5/7) - Assign address for single page devTLB invalidation (4/7) - Coding style tweaks Jacob Pan (4): iommu/vt-d: Remove global page support in devTLB flush iommu/vt-d: Fix PASID devTLB invalidation iommu/vt-d: Warn on out-of-range invalidation address iommu/vt-d: Disable multiple GPASID-dev bind Liu Yi L (3): iommu/vt-d: Enforce PASID devTLB field mask iommu/vt-d: Handle non-page aligned address iommu/vt-d: Fix devTLB flush for vSVA drivers/iommu/intel/dmar.c | 24 +++++++++++++++++++----- drivers/iommu/intel/iommu.c | 39 ++++++++++++++++++++++++--------------- drivers/iommu/intel/pasid.c | 11 ++++++++++- drivers/iommu/intel/svm.c | 22 +++++++++------------- include/linux/intel-iommu.h | 5 ++--- 5 files changed, 64 insertions(+), 37 deletions(-) -- 2.7.4