Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1305731lqe; Mon, 8 Apr 2024 05:30:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUYXtFbDQNQdBw5Hok2ZIQWkNYnKf/C922bZGrATc8WWmJyCN5ardjAplLzeYOtsrOxF7jigJdx5G/bWGWFpGqCjR3a7V+guDJCpLU5SA== X-Google-Smtp-Source: AGHT+IFHkN0zQ8KG3tTa4CzW3GyP0044HgP0Y5aOZGDfB01+cRPi/VTtiUa3lzr2GWCDrX5ePibL X-Received: by 2002:a05:6a20:3d84:b0:1a5:6f0f:cbe0 with SMTP id s4-20020a056a203d8400b001a56f0fcbe0mr8503418pzi.48.1712579426531; Mon, 08 Apr 2024 05:30:26 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id j7-20020a056a00234700b006ea83747d2bsi6519442pfj.244.2024.04.08.05.30.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 05:30:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=U267flYx; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-135312-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 111EBB2477E for ; Mon, 8 Apr 2024 12:22:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC5896BFA9; Mon, 8 Apr 2024 12:20:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U267flYx" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 01FA37B3E5; Mon, 8 Apr 2024 12:20:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=192.198.163.13 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712578835; cv=fail; b=QMcNYCEE+EptRRnozRJ2jg83qWgGPe/5mJKroVTVJ1/vT9Y/WeEqP8uIqWBQ9RtFiU/hxHdkRYkGWIwYNxA0QcprcutVDRZRXj0ypcunTQX78dSuQyPxuWJwgLOS/0TGNTy65686DFin5UaY/XCiXJj7JlSwDARxwu184edtgYY= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712578835; c=relaxed/simple; bh=M4jyffjxjACJkEFti+xejKJpoK/sP+3cxWO1UXo6EK8=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=L/8EJi7/UJdtJYLMo8eJfhJWx1r1tnZYvFfhDFlNxIygbrWuGUBLdsDYuxm+6AHbX5e4WHK87MAALWuiHTjILSXem1jrILeUrE9JPLZu8Y9kAOu4Yj7r1tcDYZrM1Xx3NEjFHERu9REoE7nE+glHVfYLVZpuhInCz1OhvabMt/c= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=U267flYx; arc=fail smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712578833; x=1744114833; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=M4jyffjxjACJkEFti+xejKJpoK/sP+3cxWO1UXo6EK8=; b=U267flYx1TQpS6VHUkN+wxz4x5XSOnf0C1OCgFerOiTjyLKMhSnTbrAW 6wBj/A9+cXUNuDI1Hkc+nDszCgspZw5zdA0wJP6FhuOA8tWSIsgNnQm/x UXbJngXCyPjDFvPxLZ8nhP8Rct3SUNTJfXGwmvSlOaaTm8eZsk071wXAq OUu8tPWRBLAfKjuzbtDs0iotPETgKYj6ZOeI0Ranginh9ovEK7Vl3z8w1 nkaV7o1cLH+B12qBWVANtrHPm2bEfno2RO/heKinK9HAydLURBe6d8f+A NEYX7T1aOM3L8kXX3f57L4wzV4M499AwLdgAzRbJEkc358oeJHpR4E7Ym A==; X-CSE-ConnectionGUID: oaGL+VIBT72n2CQZQxNPeA== X-CSE-MsgGUID: TRyYIHQaQuudUDCZnuwOPQ== X-IronPort-AV: E=McAfee;i="6600,9927,11037"; a="10822847" X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="10822847" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Apr 2024 05:20:32 -0700 X-CSE-ConnectionGUID: i8hQeeRbQQ2Kk6gB7rN7+g== X-CSE-MsgGUID: aoz6kTC4T3SVvAG3fnJmhw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,186,1708416000"; d="scan'208";a="24358329" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmviesa005.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 08 Apr 2024 05:20:31 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 05:20:31 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 8 Apr 2024 05:20:30 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Mon, 8 Apr 2024 05:20:30 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.101) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 8 Apr 2024 05:20:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kQSXhWRSEJZYSYriYytYjSQG2YmurGWAyZZoPvxq/ElxV4hymq9MaYqlIVi2N5q6njC1o78Lue46PLhkh5t8Dm2aKRUrLQt490MDGUo3sDRLvj4xHJf5sY+t+a8ciciutoWS3p4U9OCWAD+G64lK3W7xKRZt8YpvmpcC/hdfK1mP2Z/2zVAHFAS0G1XXVEPh5fM79rQoAGgQewYij5Md4LoKGJJiglnsCeH+j+Vc/LMA8Ga9K5p2iSSicdEy2gOlVR/KPkRQFqBu80Bd4WvyzLkFPu+biHyfBkoyGhJ5Wv8+IlvFh7+UI5Qawb7ul4kjD7est+hvCLx/lmybqVaSKw== 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=M4jyffjxjACJkEFti+xejKJpoK/sP+3cxWO1UXo6EK8=; b=XvncJwfgQS6HCCNKut7EtXq08hosZcZHkLNe03b4g2iYIJsQBSnPfwMD7y+l7nU67OHINYeAvdFANBTQaKL+QeIK1g0B67s5m3H1dKVT3+NzwW981LwlkxQrY66R2uCm5S1bsm4nfqzj3pMBauDQ6alV+eXlGqc/k8kvSWbrD2pa2z8qnpW2+uzt6ZIbvgAQRab/vJrcKmmsEfIKcR0jZqPVLEmZeumYGD8+XuBFyxYRapvv0bRIlo0H0k0fa1VoAMmJw7TkpwmpXEEf+weVg/LCUdtWGtjOnNMlQo6aHh8kqOOf5xJD9fZETwFLwUH5dAIIjpff6xSOsr+HGAosBg== 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 SA1PR11MB8492.namprd11.prod.outlook.com (2603:10b6:806:3a3::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.10; Mon, 8 Apr 2024 12:20:23 +0000 Received: from BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::ef2c:d500:3461:9b92]) by BL1PR11MB5978.namprd11.prod.outlook.com ([fe80::ef2c:d500:3461:9b92%4]) with mapi id 15.20.7452.019; Mon, 8 Apr 2024 12:20:23 +0000 From: "Huang, Kai" To: "hpa@zytor.com" , "tim.c.chen@linux.intel.com" , "linux-sgx@vger.kernel.org" , "x86@kernel.org" , "dave.hansen@linux.intel.com" , "jarkko@kernel.org" , "cgroups@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "mkoutny@suse.com" , "tglx@linutronix.de" , "haitao.huang@linux.intel.com" , "Mehta, Sohil" , "tj@kernel.org" , "mingo@redhat.com" , "bp@alien8.de" CC: "mikko.ylinen@linux.intel.com" , "seanjc@google.com" , "anakrish@microsoft.com" , "Zhang, Bo" , "kristen@linux.intel.com" , "yangjie@microsoft.com" , "Li, Zhiquan1" , "chrisyan@microsoft.com" Subject: Re: [PATCH v10 12/14] x86/sgx: Turn on per-cgroup EPC reclamation Thread-Topic: [PATCH v10 12/14] x86/sgx: Turn on per-cgroup EPC reclamation Thread-Index: AQHagKYKcC4zjW/mDkq0Hd0XGeUmBrFeXPIA Date: Mon, 8 Apr 2024 12:20:23 +0000 Message-ID: References: <20240328002229.30264-1-haitao.huang@linux.intel.com> <20240328002229.30264-13-haitao.huang@linux.intel.com> In-Reply-To: <20240328002229.30264-13-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.50.3 (3.50.3-1.fc39) x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR11MB5978:EE_|SA1PR11MB8492:EE_ 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: OJFq9/qyv5ladg8s6Mt7kT99AKXXUMIDsHMyl1faJiMVbuWzV0uDRDFSFHc1cxkMi3QWNak6oJsYRTXK0/8JXHXb3RbYTIPlrJEK2YY9ibDnmEtaXBQqGKZTgJkuvUCUK0uhRQHZa97fos/KPXegRT9Kmddp99wDLgJClfgeV/b0rdzsY6ANhY2lFnN7D2pr8U4zhoCpXZur+jurHDgSa2fUhZ75iwX2SaKqb2G4h69UgBXPpnhMBWyzd2K+fXh5aW91W2FvAP/KPNt2VNu1+REszcnG5J0MIF4uWftfOinIGqMIkR/GA2XjSffQQjI6MOEPCk0UvwythyVlpOfQZo3rA8tvzxMKbGom2UpUvvkJFJRsrlUwFLrMaIjwyMhKHOgRrohR9sCvBWNU2yrEF9ODsle40gJX9WVxQ6IO/iN7SXivaQ6EXvnhOObkYTTkXKNJP+ICmyur/DdQ1V4cSjIIoUMmfmVOBsmPrA96ySRLVpo05FVuHh8tCTgz1Zd4IKupTUJiLylfFXGjfSxEhbuecmGeZb6zRpfgMjL6jjWQvLSmbI8SU48tMGvu+O0bTqey+jP+q47Mn9wq/TwYY+SDlO5PoeLe/vKDzH/3ONU2gFHS7d5+bQdUY1NgI4TUl5wZovfsAhPevAYF3Rq4WEM1kz/TlEYV+VgDauC5w6pGC0E2Q3pXWqKZswDyBqGJXbEroHrPJ0nzYsvaJlyD8g== 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)(7416005)(366007)(376005)(1800799015)(921011);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?T2pPLzR5cldqZk1XYTVhQXI0V3B3Y2Rhazg1VXQ3TkxlTGtTWkhEd1VxVEUx?= =?utf-8?B?TW5LY0tLMkpaTmhWVDN2NXY4eWdDR1ZhQWJ6NVZjdmZ1Z0lmdm95NHRxTXFx?= =?utf-8?B?MG9SSUFmVERtTzBvTTVJVUpTcWdERW01bXZNbXRyV0ZENUIxSll1QWVZcXA3?= =?utf-8?B?a3REMkFWdWQ2MmxZM3NrSjhya1pIa1QzZVZxbGV2RjZiZWhvcFNtSkxMQzN3?= =?utf-8?B?WDcvVXJkZ09JbjRVbzYxR1R0Sit3Mjh2MXM1S0VUM0Y0dW8yb1Z3VWN6SVBJ?= =?utf-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hDdXZma3c3RWRlc0xjKzFw?= =?utf-8?B?NFdkRTRMWDNwRVFPS2Nnem44YTRlK1hWU0JNbGRGUnRSV3FzLzdZWFJUUHNP?= =?utf-8?B?amc9PQ==?= Content-Type: text/plain; charset="utf-8" Content-ID: <370230C514716245A0DFBD1C8E4F10FF@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: 630a4cb8-141f-4e53-c539-08dc57c643f0 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Apr 2024 12:20:23.4207 (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: 9j1jtTbeUgd/Swd9XS9qqHiyCsDlqfipF3lI5fzyAJNAOZ9yijktmSffu4//Ko5XePEfl7oiO1XNTg71wxwpLg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR11MB8492 X-OriginatorOrg: intel.com DQo+IC0tLSBhL2FyY2gveDg2L2tlcm5lbC9jcHUvc2d4L2VwY19jZ3JvdXAuaA0KPiArKysgYi9h cmNoL3g4Ni9rZXJuZWwvY3B1L3NneC9lcGNfY2dyb3VwLmgNCj4gQEAgLTI4LDYgKzI4LDEwIEBA IHN0YXRpYyBpbmxpbmUgaW50IHNneF9jZ3JvdXBfdHJ5X2NoYXJnZShzdHJ1Y3Qgc2d4X2Nncm91 cCAqc2d4X2NnLCBlbnVtIHNneF9yZWNsDQo+ICBzdGF0aWMgaW5saW5lIHZvaWQgc2d4X2Nncm91 cF91bmNoYXJnZShzdHJ1Y3Qgc2d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