Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp250532lqj; Wed, 10 Apr 2024 09:20:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWBcFUyIBYMB/z8N+fXvu8k5vWaTrz9HJZbwPratRMh5do2PFZWs+Ztp1/jruDb6eJ2i7nLByX3NBtxa1CNRxSXeFqaAe/Xhm7MlOafCw== X-Google-Smtp-Source: AGHT+IHNK0Vrgx3qtZbIH7+Ds1BXKlF0O5iyqW6w/K8mZhJQpDDQBl+9JXMvJtCt61Qq5OFT621c X-Received: by 2002:a05:6102:2172:b0:47a:232f:7cd0 with SMTP id i18-20020a056102217200b0047a232f7cd0mr128140vsg.13.1712766006348; Wed, 10 Apr 2024 09:20:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712766006; cv=pass; d=google.com; s=arc-20160816; b=DpaHn6RkZ+BwWVMQ0iFQUZ+9S0rNWa8BlXr+Croda3uJwmh8N8fnH3UxcQRp2odW82 15AxAEe6QdOHOBQ9vg5wItNZhOcf10lWwiJiZmZYR477f6/1hOAB3cxH1+OHzdJ6IM8t F9J//iBMLRev/SNcxM4uooBDFT/6DVQUzmpzcuEnHOVVx4PKaIQSiiEbEp8spcDmqwcv +8N+vfpZNOXTEFFkse1wWHhEegW2JnmTlo8BfEEG2gFV0Rx/LxMKcsLOszyQLZn6wqoU 393XL7JDjWK20dmufznD4U0P+FNf+v9SqjDIM2pSHWgxTzhwRTUOqlhAkgUiVKeGFsEg x1yQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=NeTOqHGSd7v70uGb80JPwF9rz3QBnh5fnzCr6X4F3Xo=; fh=nNgMSg1CBo7t1jwb0TWq7UvjAJGFvKRVSONPifHgO/8=; b=ks9rThcn+2Qq4dW/nasDYWuGK1G2qsU3thhBbbNj+OrsPMih+Tvmq9ytkh/hiiUlDe HhZkDfVespp32skM8cDz/FY1EKBkFyuUFMBs9BNd/Nfvo6K2umt9AJXIe4pO14fodC+c 1K2fwj6OHKOKkryThpecUIXMW6fuF64X9Ujbhcpm+3DUelHLBYp5Gh9DytPq/0uE/8z3 Xft5P1BZyFjWNh6zYVbNi4bHPDtSN9u9KLIReU2pWfkWHfcmEusPeqfKeSVgbNPAPoa/ DF10zqu0smFTyUWr8+5bqh/278kUYLdpEFGr60WjBppDHGjQpxnnu5/m3llgIQELWTXN KRpg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZJXYmqS2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id n14-20020ab07bce000000b007de0dbdb9fbsi1928077uav.89.2024.04.10.09.20.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 09:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-138964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ZJXYmqS2; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-138964-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-138964-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id DEC1E1C21D70 for ; Wed, 10 Apr 2024 16:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D38F417A932; Wed, 10 Apr 2024 16:20:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ZJXYmqS2" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 83737179211 for ; Wed, 10 Apr 2024 16:19:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.15 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766000; cv=none; b=YIOhQeD3XOLNOCVBLS4w/aeea19fWVFDQkCslQCc45IuZOTz+PXjVa66NFRwpSwe7TqLNwUiIubdCBvwdz5NULWXUJczMLwplAMzwhhA9ewonetWyqAvmnc4BXXyLg4RDxWJvGQCbVQGnWoHmo/0ssDHZ5WbVY7GcKTRPa5bQQk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712766000; c=relaxed/simple; bh=nkV9cGAED/z/VIex+b/PSuJe4lylFvXK/ooyXd9u+WY=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=axB4edE1ImxMdFSP+kipqnwbWPj0zOkQBxMlzv7mxqMjY/csJ+AG2uBeAXWJuDHI4djYvKdDGdKeZ84rqiDlKkpUKxMIMdkrZX8NYxr7qmnamFZjPiBV9b+qABa647FEgwkYJlEZpM2WxyTM2huHYNAnFOaAhgzbPDdO3RaTpKg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ZJXYmqS2; arc=none smtp.client-ip=192.198.163.15 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712765998; x=1744301998; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nkV9cGAED/z/VIex+b/PSuJe4lylFvXK/ooyXd9u+WY=; b=ZJXYmqS2DxPorsv2MqSAXZ8xfEEtk7S5CVDihJLU04xkReyo8VIQpLEO BR3YYXlxVQ/TuTesiYyc9jN4ILYFnMdjQ+CnsES7F5pqV/QB0V/P4MbIM zlZMrHWUjPny7rGSK917n3xxiZUG+5Bt3HpM0waxRkVP9NDdPDsJDhLbW cuNeD4iwm1WEQE23bEzZ88tzw0inlXAT8+TFT54CtB2jYQbXhWdmuNPU+ GtIlkD4C0kJTvQ9ImKRt6kGqsWYxVhV06yOybb30ThqZt5m3mJZlgnvii BwUTIAzXsfEQWbi5UD6gpIuEplJ1P6/YtXJprvh4QLwz/tPb1Bm9nhF/n Q==; X-CSE-ConnectionGUID: qUvY5rB/TxipkbOd3248wA== X-CSE-MsgGUID: Op++Am38Qbuu6eBy2j4jhA== X-IronPort-AV: E=McAfee;i="6600,9927,11039"; a="8316628" X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="8316628" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa109.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 09:15:26 -0700 X-CSE-ConnectionGUID: bYm3/WcVRy6UqtcJM8vh6g== X-CSE-MsgGUID: lJv4/ogSSgGrN2eFG8qM4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,190,1708416000"; d="scan'208";a="20570377" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.54.39.125]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Apr 2024 09:15:25 -0700 Date: Wed, 10 Apr 2024 09:19:55 -0700 From: Jacob Pan To: "Tian, Kevin" Cc: Baolu Lu , "iommu@lists.linux.dev" , "Liu, Yi L" , Joerg Roedel , Will Deacon , Robin Murphy , "linux-kernel@vger.kernel.org" , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH 2/2] iommu/vt-d: Remove caching mode check before devtlb flush Message-ID: <20240410091955.5c00e411@jacob-builder> In-Reply-To: References: <20240407144232.190355-1-baolu.lu@linux.intel.com> <20240407144232.190355-2-baolu.lu@linux.intel.com> <20240408140329.6290377f@jacob-builder> <20240409103146.0d155e45@jacob-builder> Organization: OTC X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Hi Kevin, On Wed, 10 Apr 2024 00:32:06 +0000, "Tian, Kevin" wrote: > > From: Jacob Pan > > Sent: Wednesday, April 10, 2024 1:32 AM > > > > If the guest uses SL page tables in vIOMMU, we don;t expose ATS to the > > guest. So ATS is not relevant here, does't matter map or unmap. > > > > ATS is orthogonal to SL vs. FL. Where is this restriction coming from? For practical purposes, what would be the usage to have SL in the guest and ATS enabled. i.e. shadowing SL but directly expose ATS? Thanks, Jacob