Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2418134rda; Wed, 25 Oct 2023 02:01:39 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGbtqlLRbh4LKgxfWbH8pP+IFQrmXmZ2096xelqZhlzTxE5VCVqq4V1gu7YzdbuvFqYZxuy X-Received: by 2002:a0c:fe92:0:b0:66c:fd38:2266 with SMTP id d18-20020a0cfe92000000b0066cfd382266mr22128106qvs.25.1698224499114; Wed, 25 Oct 2023 02:01:39 -0700 (PDT) Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id t10-20020a0cef0a000000b0064f3b7ec231si8385279qvr.131.2023.10.25.02.01.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 02:01:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=hK4CQFmR; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id D3DCB80FC157; Wed, 25 Oct 2023 02:01:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234483AbjJYJAs (ORCPT + 99 others); Wed, 25 Oct 2023 05:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44342 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234415AbjJYJAp (ORCPT ); Wed, 25 Oct 2023 05:00:45 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56735129; Wed, 25 Oct 2023 02:00:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698224442; x=1729760442; h=message-id:date:subject:to:cc:references:from: in-reply-to:content-transfer-encoding:mime-version; bh=82XRNUp31EaNpkcQex2lQtFH0hj5yUMh8++4kX2JWl4=; b=hK4CQFmR4nPL4NlyCB4/kQ/JvPGaXmAZrd7HJi9kDivVaTSonfydhDsg srOv0ohh8oa2YN56zzUOsPFtanvwy/a/PLWWfq5T/e00TCXAuxugmiGZo JZSVfZ+s5/acIdmDZe5XPHm0h9xigBBo8LPob1jtk2mpve3Adypx8XlKu QVDZ8gDAza+T6E6l9qtvje3Sf0MzgQLOe+ptySmY30I8qE0RCsbnCox9d OuruULuGagiR0F4eWVzRK/dVf2sdFinBlzqhocQ+pHzzd/iQ4g/AbrS9m mjkwYDDdgpfRM1JAXKK5PcssUaTGc4bKeB5cGbgksY82bs/IUa/7HFJsp w==; X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="372325157" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="372325157" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Oct 2023 02:00:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10873"; a="932292448" X-IronPort-AV: E=Sophos;i="6.03,250,1694761200"; d="scan'208";a="932292448" Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 25 Oct 2023 02:00:41 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Wed, 25 Oct 2023 02:00:40 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 25 Oct 2023 02:00:39 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Wed, 25 Oct 2023 02:00:39 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Wed, 25 Oct 2023 02:00:38 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IKEXj5EHb6fampxt6tZnUd8Bg33t5YAvbBWlfyGlNEq/vVuJa6MCCkhE2TmVlLheOJ9HfteKiaKQm1TFJ9FQ8nznYCp3vd9gkk9RSLJH3Ux6jJNIxVGpSILZVNJZD557213HOnNg/MTbhIV416THA8g56W6OwB5sCBuBpR51ZmHiWnb+q4dVmxJqXlL+/x2Es4H/UMEgr7cFDf+BqFoOr1tAj7Zih8MZ31G2P1yq+lMWQy79f5XudbmYd/1jbuGX+pNe8nUAiBUA7LS2dEWzUdZAUdkBxoHo4hVWT5swi7IKMfX7U6Aqtmh06UpUvmwJE8YRXpWs2zIvZhS7RR0ifA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xnWIxrcQIj/epeZFHqiQb65jzH0+1CFour3RHhdOfZU=; b=FzPKsL13S4ywpG+oti85Sh/DsQ1qZNP/WQj9aVok1deIGC4NhyIXdlAiO23RQpoLPPYTr9NAn17aboOElnLwjCaTBHBx8DHlLWDv4cKHCHbxJrvPQyeBXq6Io/Ep94P8GojFbN4Izs0SrNrrMRqO73DLNoN9OCxeO+dVMmxKqvc6ldNQYMrWbvECvAIqj7AjfEZLD0GMseNo6e4UDRaM2Wpjv+fcSNT73GplF73wFH31BoAiiD9f/sGOG+xGftFy0Of8CxLaA8A+2DJQQZOJa4URrsdNBhyB6sO1x3gjRcqeMlBHJysm2KQ18qNG7eFso+Pf5hLcctSTlvPldirMiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DS0PR11MB7529.namprd11.prod.outlook.com (2603:10b6:8:141::20) by PH7PR11MB6427.namprd11.prod.outlook.com (2603:10b6:510:1f5::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Wed, 25 Oct 2023 09:00:34 +0000 Received: from DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::f8f4:bed2:b2f8:cb6b]) by DS0PR11MB7529.namprd11.prod.outlook.com ([fe80::f8f4:bed2:b2f8:cb6b%3]) with mapi id 15.20.6907.025; Wed, 25 Oct 2023 09:00:34 +0000 Message-ID: Date: Wed, 25 Oct 2023 17:03:04 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 8/8] iommu/vt-d: Disallow read-only mappings to nest parent domain Content-Language: en-US To: "Tian, Kevin" , "joro@8bytes.org" , "alex.williamson@redhat.com" , "jgg@nvidia.com" , "robin.murphy@arm.com" , "baolu.lu@linux.intel.com" CC: "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" , "Duan, Zhenzhong" , "Martins, Joao" References: <20231024151412.50046-1-yi.l.liu@intel.com> <20231024151412.50046-9-yi.l.liu@intel.com> From: Yi Liu In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0098.apcprd02.prod.outlook.com (2603:1096:4:92::14) To DS0PR11MB7529.namprd11.prod.outlook.com (2603:10b6:8:141::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS0PR11MB7529:EE_|PH7PR11MB6427:EE_ X-MS-Office365-Filtering-Correlation-Id: 70f25887-652a-4b0e-1ad1-08dbd538d8e6 X-LD-Processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mKsgvmYunn/o/fLJJaoD67DiuOIMdOeBB0bK0TjELtvyZAaFrVkV9gAUMda8R45CMNVs2nR3dvrkAjN6LJ/43SXTVNopxeEc35qeR8TJ4o9JryCuJ8VS0CVUv6/TWptG2W0m5MYaHxpf5BVap7LTjkGFaR7PhY4UDZ9SOp5aGZGJiaxIsl9nrzKQOu+s+MEDTxRaNlwjmdzgIdXMnssyywZmkvJ722dj5h1GnrwA9XsTKLOiyK0DgPTZZzVLiw50SwXNE9kDNcTNJunYWZEefU1+aGPKLkL7AUEZwmp6c2P6qJwsnp6Uve+gDFlcLN340hrbiVyEXkWyGpSrWRiHPA8vAy44kyQFqoybA3CptamVZ0xbrr9hEoS6wtzD8J4J9eUZZqUcARJgIrjdx8sYfu20FXMqwthfqt/KtYKlfshN84MtS9pZXQS87Pu/uZLgWZcX5SUcnTTd+qpD5e3yntaGqOdb5knVA7Yimsx8JSs2tSn16OZaX8C37ZaiNk4kR6gYhO56gj5m+7Mm336Mk4uMdCq6HUnJt/LdazVEy/2SmqT34bTXI8tuarndlWDVGhq6Zc5V78kd4v6r8KEvVcE6vkGs2HUNVKD7GiE9+l3q7dv9cOfxSI6RdQ02ec3EcA0awdLKBA1u1bv21CezAQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS0PR11MB7529.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(376002)(39860400002)(396003)(366004)(136003)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(110136005)(478600001)(26005)(6512007)(86362001)(6666004)(6506007)(316002)(54906003)(66946007)(66476007)(66556008)(38100700002)(36756003)(2616005)(7416002)(6486002)(2906002)(4744005)(8936002)(8676002)(4326008)(5660300002)(31686004)(82960400001)(41300700001)(53546011)(31696002)(45980500001)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Wm4va2FUcWpYMk5PRjI4VlZNSXVlK3ZiL1NPNlY2c1JIck90bmx4aWRGQkNo?= =?utf-8?B?U1M0SXJvYjI5OWxUbVNOa1FxRldLTTR3MUNRelhLcFVPRDNEQ0laa1NldDBW?= =?utf-8?B?MFJ5eHEzRHJEalBRcmEvTkVkNnBWd01Lb0hlcFh4NlBxejI2RjlDeXFQRHRl?= =?utf-8?B?dWl0QTdnT1ZkaDROb1Y0ckFkNW4yZkpNa2Q2ZG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U3NLYXNWMWFmU3F3QWFWZEFJdnp6THdPbUhkZzM2dis1QVJt?= =?utf-8?B?T1ROTmFOMVNUU1oxR3d1NVVLS1lBaW84Wkdab1AyeTB5akpOU1dWYi9TWGp2?= =?utf-8?Q?RjS19UwZdiL6UUVYdFS2Xw/+g?= X-MS-Exchange-CrossTenant-Network-Message-Id: 70f25887-652a-4b0e-1ad1-08dbd538d8e6 X-MS-Exchange-CrossTenant-AuthSource: DS0PR11MB7529.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2023 09:00:33.9812 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HwLs/9eao21lbef2jELWr667H/wmophl4exI03XhE3FtKaMgAZcAUZ6B3TijsYWE4zYlWu6eTNbbGkaaReiyUg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6427 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 25 Oct 2023 02:01:25 -0700 (PDT) On 2023/10/25 15:35, Tian, Kevin wrote: >> From: Liu, Yi L >> Sent: Tuesday, October 24, 2023 11:14 PM >> >> +/** >> + * enum iommu_hw_info_vtd_flags - Flags for VT-d hw_info >> + * @IOMMU_HW_INFO_VTD_ERRATA_772415_SPR17: If set, disallow >> nesting on domains >> + * with read-only mapping. > > with how it's implemented now the description should be revised to: > > "If set, disallow read-only mappings on a nested_parent domain" sure. -- Regards, Yi Liu