Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp101rdg; Tue, 10 Oct 2023 02:20:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/FswTSzmMv+1dPqloHpZ6AcBiLschHrf9+ALtBpN9h7MbH+sphouGcCbzznjpqjQRxZl1 X-Received: by 2002:a05:6a21:998b:b0:13e:9dba:ea43 with SMTP id ve11-20020a056a21998b00b0013e9dbaea43mr19745174pzb.2.1696929601576; Tue, 10 Oct 2023 02:20:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696929601; cv=pass; d=google.com; s=arc-20160816; b=LhVPWOkIci6KJN/R2m/V3IcNsbAqnhZ8BExh8kobyOgGUrD+EuMlFk+fMOfBi96Vo+ AdVGB0l8VrEAMfGequsOSnIU4NLDKmkn09U+6X57R8lXOsmVkSHIaU6ZcjH6+Ge2jLKf MNnhGJuxTU7DXp4Lbn5+vF/RGQCw2QZcAUCuFcpr5zUoK8qV9IYy7VBr8lkyiN+Qd89U uq5FOdXrJtWSjstE2KK7cU6o7Lj0ro8BctFmImy1l5Ub47oYm05+UFVg4pUKDtYucLp1 y66Fix/7UxTvUgn2ZoDKUM3WNXuXHwOMnBHSP1uA6g2m1lwc8vnFnZF7AXroFSe2f5kG 93lw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=7JAStQ6nok0gq0kYTrywEfNe6FkCoVSQejKBEYcdpvg=; fh=wNA3mIu8mHuU/BNJOw9FLZPf9TdXknUXepvjzX3ju60=; b=SoR/jVnNPOHEb3frxnQ4FRWF6Kn0yDDZRwPFR1DKQ5SJGjhbpf24LVRAdIcrmP37JO jQrd/XDMdvffCsV1VIRCalkPsSNSSrMQFzhQqt8uv+M7RTTpj9bQ9GfP1T0IsqtlQmL6 vY5t53lvQHo/iunaRtXW3/MuFnmOaIBj937MCsywFEDAhvloziwFzXS1JZWHQv+d0kf0 EA+kuFCJA4H7ThJEjqBxpvg7AropjtFPR9cRjCoRRtQZP9aozk78DluMwJeDzCR4iBNW PMzISWiOJGPp+9JtrDSZpggB2xqAu5X0nbTmtYPpllBog8b58gc9KXaq6/gUATUZV3uq qJww== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=LqmkFEzP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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 Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id v185-20020a6389c2000000b0055c7eb53d7fsi11814200pgd.584.2023.10.10.02.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:20:01 -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=LqmkFEzP; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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 E2A4E8344A15; Tue, 10 Oct 2023 02:19:57 -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 S229999AbjJJJTt (ORCPT + 99 others); Tue, 10 Oct 2023 05:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229919AbjJJJTr (ORCPT ); Tue, 10 Oct 2023 05:19:47 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D554DA4; Tue, 10 Oct 2023 02:19:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696929585; x=1728465585; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=7JAStQ6nok0gq0kYTrywEfNe6FkCoVSQejKBEYcdpvg=; b=LqmkFEzPEComLUbyARESKKh3a6PGA8nRK6Dn2WHwfLDBg5FL/xGxN9u+ l96jUPkWmJRJ670DadQ2iDCRTNxScVCHN3+j5bcBU+vfMo0yR6DgOkabz eU5Tvs8ChZNhju+ViehVdiKUpVx5irasLBkoyEoQVdffSHrH1ntD09Y/v Oo3n4Rp9wnqr3NihcWefUH2zNS3LIFEGTuMBvIvYqDTvEGxwihtURfvQs ilwCRzyDBlTSvfLisHGVG7S4ZjOqGjUAdLHK4M63bmBT+PvrGh2zzbVND R3mT+/IDYpHLfOj3UZ5ZqYMwdI6XBa38OQcSpwO3roiYoRoaxGboseQBg Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="387185196" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="387185196" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Oct 2023 02:19:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10858"; a="927067372" X-IronPort-AV: E=Sophos;i="6.03,212,1694761200"; d="scan'208";a="927067372" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 10 Oct 2023 02:19:44 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.32; Tue, 10 Oct 2023 02:19:44 -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.32; Tue, 10 Oct 2023 02:19:43 -0700 Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.32 via Frontend Transport; Tue, 10 Oct 2023 02:19:43 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.100) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.32; Tue, 10 Oct 2023 02:19:43 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JgfzeCnNhPXGkJMBBEPqDKXrFsZGkJbcEs6dGMVLOJCMqhUNhspu+EfPkYyGpMK8ndq5pf8A8/JVxPd4yuM0jbAydciLAKxbbHvoWQgvJ2eQJO/7azm27l+nQEiUAwtuhtITQLIxyfED7L2UxZJK2xc59jzm813R76fpufVEq1Sm1IVGwvJJPHzwHT2eYzTjCVnSeITy+erDEdnUUYZiNsVUoOxr7w12LwAYgvu4LpSZcCYmulyNq5MoXXKiKImfUe+dzI568HarcCJy2vQeijkbsmsSD2KAwmVhYQcjuFGa+1p6hWKwDLug/Y3x/lLhs2G0lj4VF4MHhzVdcqOK/w== 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=7JAStQ6nok0gq0kYTrywEfNe6FkCoVSQejKBEYcdpvg=; b=GdFwIc71UrkGEHj+uRNucOayyYy2mPNnps5JznDV45cKCumRVI/78428kCH2yL4C9GOFawSyzu1wcW9/Q+fdvVHi9B3GRApicAjW1lF124D1Nv2ovfiLn/p60h7PDrZBRrRNHtIsbOyqBmWr5ghEH8pYZU7K76RnmB1N7Y+EuNYdtumHIaHv0eGaHlLzPlmafhgI5bA7UGvEbPwiCIX9gbIKus9Ca/mLbi+zOAN/0ooQy7bZYiHPOsdgfeLniFKfr60G1hqf+VTWI7xOhF2KBloso1N2xpBqRcp9qcXgAPVDC1LToh18cG6b7Ld8n2SK2AlynoorYVYAhq//knDa8g== 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 Received: from BL1PR11MB5978.namprd11.prod.outlook.com (2603:10b6:208:385::18) by DM4PR11MB6167.namprd11.prod.outlook.com (2603:10b6:8:ac::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.38; Tue, 10 Oct 2023 09:19:41 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::31a9:b803:fe81:5236]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::31a9:b803:fe81:5236%4]) with mapi id 15.20.6838.033; Tue, 10 Oct 2023 09:19:41 +0000 From: "Huang, Kai" To: "hpa@zytor.com" , "linux-sgx@vger.kernel.org" , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "cgroups@vger.kernel.org" , "bp@alien8.de" , "linux-kernel@vger.kernel.org" , "jarkko@kernel.org" , "tglx@linutronix.de" , "haitao.huang@linux.intel.com" , "Mehta, Sohil" , "tj@kernel.org" , "mingo@redhat.com" CC: "kristen@linux.intel.com" , "yangjie@microsoft.com" , "Li, Zhiquan1" , "Christopherson,, Sean" , "mikko.ylinen@linux.intel.com" , "Zhang, Bo" , "anakrish@microsoft.com" Subject: Re: [PATCH v5 16/18] x86/sgx: Limit process EPC usage with misc cgroup controller Thread-Topic: [PATCH v5 16/18] x86/sgx: Limit process EPC usage with misc cgroup controller Thread-Index: AQHZ7csxMWGpeN5dZUG6Wyp0ITB+SrBC2jGA Date: Tue, 10 Oct 2023 09:19:41 +0000 Message-ID: References: <20230923030657.16148-1-haitao.huang@linux.intel.com> <20230923030657.16148-17-haitao.huang@linux.intel.com> In-Reply-To: <20230923030657.16148-17-haitao.huang@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.48.4 (3.48.4-1.fc38) authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5978:EE_|DM4PR11MB6167:EE_ x-ms-office365-filtering-correlation-id: 583273d0-75cc-44c4-95b7-08dbc97208aa 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: 4YMz6UD5QZtXkdyvH9yUj8WTAxD4kzkdDIVh8IwBVjwdr2j1SRrte6jDiFzdLc32AQMC6JC8FUka1vcK2LMHPt2/fwRegqng7R7AGEF9o211WMhd7SDuTmnBeCZhMQqOlWEJcn5xcDoe3rRcaeXrGB2j+ew7eG/u4iORb8ls+C4nQRCIFmhRoSg8GDibjn0qK82a+a1pIaqqm+8+Rf+u9axhqzCaAkcutkca7bg9jvR7gxiUVfUlqR2JPxaQknlZBgdEfi9lQh/wLyY4/jWfMDlXDfNw7aJ/02jAyagahMix4JJfSagkeKpCprvYT14VH9ITO/r4VDL6kfC0gIDW3N3DVRem5mv5FBqY/M/AETWhipUJ+PBLYjqQJDmvJcUIe2Of5QIsTVCKbSk5adrabZcXjnMPLyihrljOAUbKMq27SLZXHN8k9rMEVnmx0VcM4qkT30Xe4qZ1HCtJyRgbEvJclPW94tl+hhN/S97OOkEhqwPjE4JCh07ngY2TLMeDbspFunkgQNpKr/jdt5SJJkZqBjszOJaLLYr380tzndqO9/+0zn8ZPLnjMLgjQ9kMYnif+rbPlwczHRmCbxLtWUZo0h9E1wC73ywy9q+/hG5pcf8W0TZ0c9l896rWQv9O x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BL1PR11MB5978.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(396003)(346002)(39860400002)(366004)(136003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(86362001)(38070700005)(82960400001)(921005)(122000001)(38100700002)(36756003)(478600001)(6486002)(5660300002)(6512007)(41300700001)(8676002)(8936002)(71200400001)(2906002)(4326008)(6506007)(83380400001)(2616005)(66556008)(66476007)(66946007)(7416002)(110136005)(76116006)(316002)(91956017)(66446008)(54906003)(26005)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?TmpFRkpUUjdRMmUrSndNdldKUklTenVOeFk3Q0pyeVQ2SGZrakVFbTFXMW51?= =?utf-8?B?ZWx0eWY2Ry9HbldXRnlBamxTTzhnbEdpQS95TnY4cnI0b2Z0RWIxTWRCbE91?= =?utf-8?B?d2N3cUJ0SGJ2Tj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3ZW1SVUtNUDJuMlFWaHli?= =?utf-8?B?VUs5SzJHNVkrbWg5WXB1YWZoS0JSdUNsNGhxRTYwc0o0M09weGp3K0pZUWJF?= =?utf-8?B?QkV0VmUxaU91KzlZSTlJUngxQURUYm96czREaW14ZFk4ZUFEZEZSUEVBU1U2?= =?utf-8?B?NEdHSENqc2RhTGVHUUs0QzNYT2hMNUNoRjBSWllEQjJ4TEk4Y094czhtZDh0?= =?utf-8?B?WDJXYzNtUmtaaFh2U2ZBbmNnK1RkM2lIZEZBb0ZVSmxiMXVhbHBTWnBBcTgz?= =?utf-8?B?aWc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR11MB5978.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 583273d0-75cc-44c4-95b7-08dbc97208aa X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Oct 2023 09:19:41.1607 (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: pCwhuYjmA53Bfp7a2LJZaz+vJa1u0jNWxvTX+8K2UKsnpH4/9gbboAFrR0n+Gmgle3C5Lbg4NEFCjS5EjMiGug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB6167 X-OriginatorOrg: intel.com X-Spam-Status: No, score=2.7 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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]); Tue, 10 Oct 2023 02:19:58 -0700 (PDT) X-Spam-Level: ** DQo+ICsNCj4gK3N0YXRpYyBpbmxpbmUgc3RydWN0IHNneF9lcGNfY2dyb3VwICpzZ3hfZXBjX2Nn cm91cF9mcm9tX21pc2NfY2coc3RydWN0IG1pc2NfY2cgKmNnKQ0KPiArew0KPiArCWlmIChjZykN Cj4gKwkJcmV0dXJuIChzdHJ1Y3Qgc2d4X2VwY19jZ3JvdXAgKikoY2ctPnJlc1tNSVNDX0NHX1JF U19TR1hfRVBDXS5wcml2KTsNCj4gKw0KPiArCXJldHVybiBOVUxMOw0KPiArfQ0KPiArDQo+IA0K DQpJcyBpdCBnb29kIGlkZWEgdG8gYWxsb3cgcGFzc2luZyBhIE5VTEwgQGNnIHRvIHRoaXMgYmFz aWMgZnVuY3Rpb24/DQoNCldoeSBub3Qgb25seSBjYWxsIHRoaXMgZnVuY3Rpb24gd2hlbiBAY2cg aXMgdmFsaWQ/DQoNCj4gKw0KPiArc3RhdGljIGludCBfX3NneF9lcGNfY2dyb3VwX3RyeV9jaGFy Z2Uoc3RydWN0IHNneF9lcGNfY2dyb3VwICplcGNfY2csDQo+ICsJCQkJICAgICAgIGJvb2wgcmVj bGFpbSkNCj4gK3sNCj4gKwlzdHJ1Y3Qgc2d4X2VwY19yZWNsYWltX2NvbnRyb2wgcmM7DQo+ICsJ dW5zaWduZWQgaW50IG5yX2VtcHR5ID0gMDsNCj4gKw0KPiArCXNneF9lcGNfcmVjbGFpbV9jb250 cm9sX2luaXQoJnJjLCBlcGNfY2cpOw0KPiArDQo+ICsJZm9yICg7Oykgew0KPiArCQlpZiAoIW1p c2NfY2dfdHJ5X2NoYXJnZShNSVNDX0NHX1JFU19TR1hfRVBDLCBlcGNfY2ctPmNnLA0KPiArCQkJ CQlQQUd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