Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp489840rdb; Thu, 5 Oct 2023 11:41:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF5BJwjUCHNdaDFNO408A7jKdK0+QWfd9P9C5tVr9KQjX8L+aiI9DYjuZa/qPuJpcphrA/f X-Received: by 2002:a17:90a:e38a:b0:26f:b228:faea with SMTP id b10-20020a17090ae38a00b0026fb228faeamr5448574pjz.18.1696531274951; Thu, 05 Oct 2023 11:41:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696531274; cv=none; d=google.com; s=arc-20160816; b=1GCf5Kp6odJV2V2E/l7IhKhZzpfX8dzE8IFhHGSO5Zzv2+aTYTkxbbIh4r/34tIvJP sWQOpVp6sBWdFe6CXePd+iySJWJW9b0LwHF2iAV2Jdbi+5JyX9TOdcPrIeyY+TSFzqPD HNLcueBd9uf1melJ+C4BIThNSTe8yG0f6JvEJcqiX+ZQF5msSgdlXr2fhLu1x+w64i4c Rkjwx+ZGitu+4DFh5ialE/KuPzXnwZzIuinhdSxKo+hPhuwLdyXlWA7ar8+/9XAPwD+n 7LYODTy23lY5Cn2UI3Pe3ZSet1gugEA69+/v6CLA8hvsmqxIsfIXRGmpShebfnHimPHI QjEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=GA7m8rwe0k1pFYhUoJZj68DQDssw+4ZBgs2lOlxIr1I=; fh=4ns45bZfrwFdXPgeQN3ffYKcEqbNQsKKKh0jYm6xn10=; b=TPZfEX2TBsrKGOwR7hJlEO0ZrKPRzmh8nO2yX/JS+kfEqNKMT9YBzuvpJOgSNgIVsf NLUaWDLCu+Cnh5B+qpw+Y6gpj1e90CkvSGEFrn9HC7P2KHROJe6vGtXFp8ZM6vOsVgRo wMJaPv6Cvz7TiogFE9hbLE+OlqQpIrOmwQcTg60TzjMfd21lvi5rkx8BN0CAtj2GNZxh 9uQmeRjF6XrkgErSS1VPfLMSkI+POezBZGK4xRpXfvqP/vSeMOSEn0bhYQJTgZ2epUfW +m8mB3iqHKLtDYI7zFJzYAAM//uiEp9qnmBblUwCDnxluR1fpKw53bpEElKqehZ+nVAg llwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=LEch0XlA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id lk6-20020a17090b33c600b00278ff770796si4727071pjb.88.2023.10.05.11.41.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:41:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=LEch0XlA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 5280285A0432; Thu, 5 Oct 2023 11:41:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231995AbjJESkx (ORCPT + 99 others); Thu, 5 Oct 2023 14:40:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232100AbjJESkc (ORCPT ); Thu, 5 Oct 2023 14:40:32 -0400 Received: from mail-yb1-xb34.google.com (mail-yb1-xb34.google.com [IPv6:2607:f8b0:4864:20::b34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F81EE for ; Thu, 5 Oct 2023 11:40:30 -0700 (PDT) Received: by mail-yb1-xb34.google.com with SMTP id 3f1490d57ef6-d8afe543712so1505501276.0 for ; Thu, 05 Oct 2023 11:40:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1696531229; x=1697136029; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=GA7m8rwe0k1pFYhUoJZj68DQDssw+4ZBgs2lOlxIr1I=; b=LEch0XlAhw6OtseZwEDnmdU78PK9Oc78c0VN6Wq3OOthXSEA2mdgSZvPbKCS18iwEx XGHXQIP176G+LxRLjKiPxRh7LlJAxTQvpbWrNY7gdlcB4gfCTc7zVYzvysMIprGxNCc8 5zx+kB1E9M0PkANMrXTr2F2kQiAPHamBifjIkBpRuTxAR9gcHoliyJMttLO1UHAHpA69 Xz15VGDWh0OW9YnZdQCB8wEwXKmS7N0e4wH5XGx9e19/4jgvBeDfxNR16YUGG+7xyd2Z zC2wytMME+y3CUkzV8Rzn5t0fZMVDviN2un6pRHdG240UmQN31TzeDtrD97L2fQ6PgKp JASQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696531229; x=1697136029; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GA7m8rwe0k1pFYhUoJZj68DQDssw+4ZBgs2lOlxIr1I=; b=PeG/X4KPtlBBKidSK3F0dKUrTCKHNHNyKZBMJUa/IzDarbyfXrxuqQ57wqmzljzqcN tdPHon6WgorP4Kyo8lnLwgy/ksLuPFrRU7WvUs+oznTiyoq/x/QEeI94tOXES/lLPtkG Ia16rx7LJ0rf5SUgnkpWS3DDItyVwJX4U81VChRGWBEuQhOHzty4SOVwrvNuz8RI8o4Y RxV6xRrf45v3nemqTExtGNMim35Zlt5m+tB3bGBVLTF66ZF3j3UgwirhY9xQPHIw7+1M fgVHwUEb1MLi43Ttg1JOBDcdkxaEQDhMy1fBfcaniY7+TMBZpgsMW7JntCdV7IgSIT0M wiLQ== X-Gm-Message-State: AOJu0YxN0EJ7TRHOWK4/s4H+Rd1Q9RbyJZzLfyXwJ9SvNZ/2VuCyrmjw f7tm4Hv0WYjOdAsrb25Gqy+qOA== X-Received: by 2002:a05:6902:1896:b0:d7f:362:1d9a with SMTP id cj22-20020a056902189600b00d7f03621d9amr7698100ybb.2.1696531227223; Thu, 05 Oct 2023 11:40:27 -0700 (PDT) Received: from ziepe.ca (hlfxns017vw-142-68-26-201.dhcp-dynamic.fibreop.ns.bellaliant.net. [142.68.26.201]) by smtp.gmail.com with ESMTPSA id u14-20020a0cf1ce000000b006560eea8a7esm692821qvl.132.2023.10.05.11.40.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:40:26 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1qoTGr-004Z3U-Nt; Thu, 05 Oct 2023 15:40:25 -0300 Date: Thu, 5 Oct 2023 15:40:25 -0300 From: Jason Gunthorpe To: Tina Zhang Cc: Kevin Tian , Lu Baolu , Michael Shavit , Vasant Hegde , iommu@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 2/6] iommu: Add mm_get_enqcmd_pasid() helper function Message-ID: <20231005184025.GS13795@ziepe.ca> References: <20230925023813.575016-1-tina.zhang@intel.com> <20230925023813.575016-3-tina.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230925023813.575016-3-tina.zhang@intel.com> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:41:12 -0700 (PDT) On Mon, Sep 25, 2023 at 10:38:09AM +0800, Tina Zhang wrote: > mm_get_enqcmd_pasid() is for getting enqcmd pasid value. > > The motivation is to replace mm->pasid with an iommu private data > structure that is introduced in a later patch. > > Reviewed-by: Lu Baolu > Signed-off-by: Tina Zhang > --- > > Change in v2: > - Change mm_get_pasid() to mm_get_enqcmd_pasid() > > arch/x86/kernel/traps.c | 2 +- > include/linux/iommu.h | 8 ++++++++ > 2 files changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe Jason