Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3829252rdh; Fri, 29 Sep 2023 03:47:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4YCB0A147jiZcAQm36DmU6dtunjXeAecvzEq3lHEu/5Xcd/wo3UOH15qzgesHLcjKQVOm X-Received: by 2002:a05:6a20:1391:b0:14c:d5e9:21b8 with SMTP id hn17-20020a056a20139100b0014cd5e921b8mr3072338pzc.30.1695984444040; Fri, 29 Sep 2023 03:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695984444; cv=none; d=google.com; s=arc-20160816; b=Q/Zfl0BpD/+CpG61LxWjhkopps0O14QtAuhBDlgmal3jzenaTUflGkZaIiLTHkz6am jFBslOeQe7n979U7Pw3J8P4+y9VsnfkKzZj53dHcEZFT0+FU3LTQAY2GKT6PlnhfTm4J KthO5VvGf6nNYlReK6xBBYrDBLHE9/y3hQlVV2/M1Mw0SthsmlSwEGrrPHoOBujrGaB6 ZrpWvhXZFc+iRuNl9W9s7yLl4aN4OOBtZembvbW4XruvxEsLlP1ErFQNclNBRwbna2vU USIQNNOX1C4Vbbc4MUGUQFpnNme8PMVRWN7Js1QDaF31e4gt3Z9DpkvtG8j9jew8F5MX qO+g== 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=e34JPM3eYt35KUb6b4e8c9erv+eA1ba+sq6imiFHuhc=; fh=RyUMBMrENLl9z3agrcvUie7TturAiXShjxmDx0E12f4=; b=zBI2eOtmJEoxso6w6/5K54+U8btwL4v+0mPwfQWGJ9bR4b/sst6UtaWbh1wqpkkepL hC7hwwOY9mHZErUpXLZEawSCiv4Af3OqrSHGC4FoPW1wH+Z7BDyJHd512WSc32jLal9G GOTGJVbFVF5wUiBxALesJjj6uE2rZJ9fM8HUDIMbctEouPSEpbAw1Wz+bGh9+yVktTXq tcypH/nn7RhjWj1pwXaGuZ5eFkyxR4aBapstL+6s4pen2DavWOSS0aqYQEXfx+PP+0GZ QSHbXwx1wgVwVR7fQzQqY4ULNTO0sO4IXeFKBAAqyHxiopPF5KFzN/MEgNexnHU94a/Y 0ELQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="P/2C5SC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id u13-20020a17090ae00d00b002791035445esi1269105pjy.76.2023.09.29.03.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 03:47:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="P/2C5SC/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (Postfix) with ESMTP id 4288482F27F2; Thu, 28 Sep 2023 20:38:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232544AbjI2DiS (ORCPT + 99 others); Thu, 28 Sep 2023 23:38:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjI2DiQ (ORCPT ); Thu, 28 Sep 2023 23:38:16 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1075719C; Thu, 28 Sep 2023 20:38:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695958695; x=1727494695; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=zbPrmOIIJUfnS7tuPZ/1BgvJEKiBHEh45wX3E42jh9M=; b=P/2C5SC/ste+xrCCS+tVesgn6u3n9uK5tdx2r1+FdPyzHBdcD3QFcDnx BDvIrhP76gjzYlRWednof44H8SyfZLC3Uum2EIjjEu6W3XvyMKqBgf2RH HmeQyWvRNc1+wP5QGff1TfxXRFoVOvOD2GV4mak+xx+4I0k9jTr/eCGb5 7kj9YV3HZ3IUCodv/ps/JgV1XiY92n/YbvCOD2KU2iyoRXZ8bsjyBLf0o XTwCO9eRm6utaq5UNLaPkjXuSTSpEHj6VDXkCrNLD+0/ujzfoIBNPR/7r Z9p1CjR5SrYdlvf75fYSgQFQVruorYqaWsIih5Mt24B3pgmkXR5Zzm+bJ w==; X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="361602588" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="361602588" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Sep 2023 20:38:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10847"; a="893279930" X-IronPort-AV: E=Sophos;i="6.03,186,1694761200"; d="scan'208";a="893279930" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by fmsmga001.fm.intel.com with ESMTP; 28 Sep 2023 20:36:53 -0700 Message-ID: Date: Fri, 29 Sep 2023 11:34:47 +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 4/6] iommufd/hw_pagetable: Support allocating nested parent domain 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-5-yi.l.liu@intel.com> From: Baolu Lu In-Reply-To: <20230928071528.26258-5-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 (snail.vger.email [0.0.0.0]); Thu, 28 Sep 2023 20:38:29 -0700 (PDT) On 9/28/23 3:15 PM, Yi Liu wrote: > This extends IOMMU_HWPT_ALLOC to allocate domains used as parent (stage-2) > in nested translation. > > Signed-off-by: Yi Liu > --- > drivers/iommu/iommufd/hw_pagetable.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) Reviewed-by: Lu Baolu Best regards, baolu