Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3682632rdh; Thu, 28 Sep 2023 21:50:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGtG4eNDrRXUpnQpbxEcudc8+OIWdg8WwIeIDGY9HDHKetQYUfrcXmPZLw9SuSghoPKBir3 X-Received: by 2002:a05:6a21:4985:b0:160:b670:5236 with SMTP id ax5-20020a056a21498500b00160b6705236mr3085796pzc.61.1695963057133; Thu, 28 Sep 2023 21:50:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695963057; cv=none; d=google.com; s=arc-20160816; b=khZNQraJxDA8SYkbXnBxzF2knmrsRZk6/9d7rRQPHGUnLaTvzy+DEheb0kk28bW/Jm PI/KJ1COWXJV8jh89HItqI+lCF8g0HBBdJgyY/qE+j1DYfkH0mmAfbN1ujP0g6YMT/Xf BJr1IcmyrwM2/evkOH07OTeamhTEnULhq0OpJqNJOkU5Y/x6Q9PNhe578D6CXf8hjlye vTsEkhVc2RViAD2ryxyw9ctmi5xO6wUDay+TG4IbT0lOARpOjwAmKZhDeyQjl8FqjAhm JSr+4gTXfZbnj3VZ5ikMqw9CB6S7EqZFYWyt7FNRS9SUAyJbCxsByOAwf3JnusqAkIPm 3n8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=fzOVTR0PrsMZ2I4UXbdNGlOUBlVp3SRLhS5iVgDAqhY=; fh=RyUMBMrENLl9z3agrcvUie7TturAiXShjxmDx0E12f4=; b=zwdJW/RUAiB0pLoD3qPy+H5514TKJdsCYU258MSBtuutx1/2/X32OFkYG0onWF3qrE bgf2+Z1g0mwLChG/SpWuB/9XoDY7ojjk/y9Zn9gv2YTXzMKAvL6oYR38xSJYQ9HXKkSC Eg38j/bE2gDKt3d8lsMu2OQ/IobMT6XHfGUNcHU5ALRBtINNO9niU0DMNDezqpjnQVHT WwziOgAlcB8MAi3rak/gy75jOFIE4SLbt0vERtbVMuJ9CRyOd/MORGFxE882Xh0xZlgL xh3C7TliPHN0zRWAGzEAZglhnhvB4KbVafchJ4/Qa/2fhoDC8Koi+zN9V1sk7GrjSWAg xmwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lDiE8XGz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id c6-20020a170903234600b001bf0cc53d2csi21337700plh.261.2023.09.28.21.50.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 21:50:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=lDiE8XGz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 4FA94806A947; Thu, 28 Sep 2023 20:41:45 -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 S232507AbjI2Dlb (ORCPT + 99 others); Thu, 28 Sep 2023 23:41:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjI2Dla (ORCPT ); Thu, 28 Sep 2023 23:41:30 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2453019C; Thu, 28 Sep 2023 20:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695958885; x=1727494885; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=zsCU52fX3PPt8P6v3VMwtZ6PQQEa+bGuLeJMS+b7hmI=; b=lDiE8XGzKpoaBs0I5hlrRqUXVazsY37ksUsR2zvmh/sXxC3WPVPuaMri kURJ1gqqSkVg74nbe3nGU1LAQbBYDXL1RZ8tvKy+JaBhbSVLdwEOeKmVE BrwH5FrfNY8HZF+ly0IhF0z9dGipSfAp4K8jNzOeDoJP+UCelezb5HS85 J5ICj1LgGcla3BOI1oBw7AeGwPkXjIzyxrIV2m6t31+BA8nabrS5Djez3 xNWQbTGrqNziGBiqKgqN7v07v+PyITX4jDNzv0NnnRHT8hDwmqYZaToth rsZ5bwPc1euRDlOZlOlHy9AkKC16gSvz9BgZLl+r8Dbkoez6Ai/pS6adp g==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="382128854" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="382128854" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 20:41:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="923490902" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="923490902" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga005.jf.intel.com with ESMTP; 28 Sep 2023 20:41:18 -0700 Message-ID: <4eb2cbf4-e7de-421a-5d27-1d287632ef1e@linux.intel.com> Date: Fri, 29 Sep 2023 11:38:01 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Cc: baolu.lu@linux.intel.com, cohuck@redhat.com, eric.auger@redhat.com, nicolinc@nvidia.com, kvm@vger.kernel.org, mjrosato@linux.ibm.com, chao.p.peng@linux.intel.com, yi.y.sun@linux.intel.com, peterx@redhat.com, jasowang@redhat.com, shameerali.kolothum.thodi@huawei.com, lulu@redhat.com, suravee.suthikulpanit@amd.com, iommu@lists.linux.dev, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, zhenzhong.duan@intel.com, joao.m.martins@oracle.com Subject: Re: [PATCH v2 6/6] iommu/vt-d: Add domain_alloc_user op Content-Language: en-US To: Yi Liu , joro@8bytes.org, alex.williamson@redhat.com, jgg@nvidia.com, kevin.tian@intel.com, robin.murphy@arm.com References: <20230928071528.26258-1-yi.l.liu@intel.com> <20230928071528.26258-7-yi.l.liu@intel.com> From: Baolu Lu In-Reply-To: <20230928071528.26258-7-yi.l.liu@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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, 28 Sep 2023 20:41:45 -0700 (PDT) On 9/28/23 3:15 PM, Yi Liu wrote: > This adds the domain_alloc_user op implementation. It supports allocating > domains to be used as parent under nested translation. > > Signed-off-by: Yi Liu > --- > drivers/iommu/intel/iommu.c | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) Reviewed-by: Lu Baolu Best regards, baolu