Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2251688rda; Tue, 24 Oct 2023 18:14:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHOrwpc3QYd5SrSEcYxg5LkA/YjW5506qJm1pjS2hUTMaT5i47MsznwDD4mF5ngQIagUQaB X-Received: by 2002:a25:ef48:0:b0:d9b:4f28:4f7a with SMTP id w8-20020a25ef48000000b00d9b4f284f7amr14336521ybm.55.1698196457274; Tue, 24 Oct 2023 18:14:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698196457; cv=none; d=google.com; s=arc-20160816; b=HCn6z5ckejb66AQsGPjX8gtdt6C4G/0sO9xoB6TDsBHDgRxvRKzUEM3jCKv0i/xSA+ OY7yfM33o8c03ibsfFUFvj/srgMmbrJLvRiKgyBav0RYENi3iCD5P2BL3yAVUk9r9iyS a104zCA3MUDvCsRzJc/hh0Lp3orJnBTZiK5zGrbPb/JDFroa9OBQ7M6CZb33hWg9fgOZ 6aN7Orcm/5OR/IveLRMufmg6GQ0V1yhFIZ4hmjH1A5AAZPmF8N4yFsRRTHhcyKTuiiL6 Yiz8rkuFYQCGqQlLy1R5P1Rc3D1JpOzAHPyRZXFjY5R/iTeUyDrjV0gBdY9g157mRGee 3GmA== 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=WA7vT8FlO0retzI5WIBqFqGdP5kmPlOaCtSh76IcHQM=; fh=RyUMBMrENLl9z3agrcvUie7TturAiXShjxmDx0E12f4=; b=fFo5OdLDHWAOeAgRbG7Jx2B66lHD3AkIEi8yfPYvzwOG+6BgyhgOVeZSXl6GCgoo7S 6FnLEgsybWx3Y6ijzPKvVBTHOuPl2XBjmrprG0T6YUy0efJqQZf7lTUlyvR4Xhxs2nok XW2dV1YuxvCOL3j/UEqXYVAyF9E/jz2jllaxoVXFfuNyiuS9WboQfM0cXqG4YndDDRek LjJd9MXwoHjNbkRUupzif0nhMV5d1jAiiGcCm14m/0sfvImD4kKLSgr5JF3lrIU/ZqRU mrt2cBNvYgEL+BiR2+5V7gMmvp1r8nLRnv0Hr3nlPXDv1H162FFykVru0RUsJ9uU1jS+ V3tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FNgkcvpW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id a37-20020a25ae25000000b00d7ba886c1a5si9715209ybj.459.2023.10.24.18.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 18:14:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=FNgkcvpW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 7FA0E80218A4; Tue, 24 Oct 2023 18:14:14 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229763AbjJYBOH (ORCPT + 99 others); Tue, 24 Oct 2023 21:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbjJYBOF (ORCPT ); Tue, 24 Oct 2023 21:14:05 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D66128; Tue, 24 Oct 2023 18:14:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698196444; x=1729732444; h=message-id:date:mime-version:cc:subject:to:references: from:in-reply-to:content-transfer-encoding; bh=qpJjJRkBLu59n6lsEp+sa1jxDcxxSkX1crOOHG4/dVI=; b=FNgkcvpWN4SLzxklZ6PQX/8g+06WDUDekbFXX0EeoiB5Z4ErLHU5k4xt OjgiRsQ9L+inqUNt+nJ3vIz9sYzcDCtgtN4xTXQaKiPkWsNOC6fz6/Knq 1vxNciscIgFR07pgnAr0ZsOBiDj7UzHH0Tc16m9G+nS0veBYkhagJZlZk q5uBAsDHo2jExOddx+oVQtNFCv10+MzAQHRK2V60ltBdnmwTQfrHDB83P 4Udf8BeT5l0m5I29pw6v+E58v5T9+vMqs9u4zT0BObqoSeFfZ2txvEJPh v2OpwSCQbCmtxdkmBhKu8i0R5n/Tc+Cvu7KCrs7mKC9xAqYDIiQS9UV8P Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="391079010" X-IronPort-AV: E=Sophos;i="6.03,249,1694761200"; d="scan'208";a="391079010" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Oct 2023 18:14:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="708528752" X-IronPort-AV: E=Sophos;i="6.03,249,1694761200"; d="scan'208";a="708528752" Received: from allen-box.sh.intel.com (HELO [10.239.159.127]) ([10.239.159.127]) by orsmga003.jf.intel.com with ESMTP; 24 Oct 2023 18:13:57 -0700 Message-ID: <62f396d4-f890-477f-b9ea-7b330fec35c2@linux.intel.com> Date: Wed, 25 Oct 2023 09:10:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird 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] iommu/vt-d: Enhance capability check for nested parent domain allocation 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: <20231024150011.44642-1-yi.l.liu@intel.com> From: Baolu Lu In-Reply-To: <20231024150011.44642-1-yi.l.liu@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,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 morse.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 (morse.vger.email [0.0.0.0]); Tue, 24 Oct 2023 18:14:14 -0700 (PDT) On 10/24/23 11:00 PM, Yi Liu wrote: > This adds the scalable mode check before allocating the nested parent domain > as checking nested capability is not enough. User may turn off scalable mode > which also means no nested support even if the hardware supports it. > > Fixes: c97d1b20d383 ("iommu/vt-d: Add domain_alloc_user op") > Signed-off-by: Yi Liu > --- > v1: Based on Joao's dirty page tracking v6 https://github.com/jpemartins/linux/commits/iommufd-v6 > --- > drivers/iommu/intel/iommu.c | 2 +- > drivers/iommu/intel/iommu.h | 2 ++ > 2 files changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Lu Baolu Hi Jason, Given that this fixes a commit in the iommufd tree, can you please pick this fix as well? Best regards, baolu