Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp944224rdb; Fri, 2 Feb 2024 08:35:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQap5dwTxfc7DfhhF5bb0owx8Uq55h0QycA1y9AIcDRTSBdg6Jbg2YrUmZYDjcQAoynU5w X-Received: by 2002:a17:906:d554:b0:a2f:b9be:66df with SMTP id cr20-20020a170906d55400b00a2fb9be66dfmr2295129ejc.17.1706891710192; Fri, 02 Feb 2024 08:35:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706891710; cv=pass; d=google.com; s=arc-20160816; b=WPPnyMjVDzsu2caUWQAObxyvO7AWMyd/HohQV2Zxw5T3Jiyne4Y2E/j1BsSz9aSHD8 P527VmlvVXTFdPKM3Y9mYUcPnXObpwxW2dV6bU1kPx9UOlTwAZWh8dC9BFYM/+Aal2Q1 0ui8909bf0UoPibFD2AqVE1Y2DKaUGhKLpD2KQoslTK5R8KnTcudOBpPBGmiYt0ppHsA CXuyODvUxXxb1r6Cg9Teca5a1B8g5uvqQYlaFnbZ2DJcs7OAKbGP+ShlYH+odVIiYM0z uozGleZrS5orqN/7T2TuYASmDqOQQyYGs2sAZzEoUt4wGco+36ZLSwU6KjtKkIYBcz3h 0q7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:message-id:organization:from :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:references:subject:cc:to :dkim-signature; bh=G4J0W3CcPif4kMBnBOk1PGYvF10iK2s0I1zShagqmsk=; fh=TYpkE1LIPaVGm5aljuFeT3R/opYVGn1c5SLyXngt3Eg=; b=XWFKg7i1TnRRosNLJnajsn8wVFVjAcs0wY+T9f1r02sLerFPghBZLhfm+A+H6QwXsQ b2/QpkYRpROpOWPJ538H1AzYZUuLwCJzaqVrCjyHLXcgSFreVrzXHJ57LfCXTPrzorQ+ C8TuToVtwvfIU/SY8Si4f6vUI9U4Sf5E+Yq2DC2BIX5LD8GNEGYQjwEYGFmwNjQBCNiF PH55x9MMuk9ZdMXemUXVZX/mBfnZmD1uWI0fv5TXE35PIUwZW+zAEuMVj0AFZbtjxhDB KwQRQCmTgxsxAZWC8YKE70CoXkXepp+uaT34/8FIdP4sRYzCteTtpafF/CQp3LDHPAM/ ap7A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cpnnbu+K; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50145-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUG4Vc+4osMkwllvr8ofgkJSt3daPOpLkHI71Di8KMOtL8wV5g2XLBjcrwu0ODVZoGh0PhIc0mT4R8VUZ7pq2NXyDkvmNpPRMb0bMNwOg== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id yr5-20020a170907334500b00a28d1139159si977310ejb.1046.2024.02.02.08.35.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 08:35:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Cpnnbu+K; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-50145-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50145-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DD01F1F28395 for ; Fri, 2 Feb 2024 16:35:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9D371487DE; Fri, 2 Feb 2024 16:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Cpnnbu+K" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 2E8057C6E9; Fri, 2 Feb 2024 16:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706891676; cv=none; b=VP7LOWww4MDwugF6dCcWjEV8GaWUX3ZlQcC3MF5zgMzn4jhice5PasoZe/1uyBINxapYmPoQYyro3Bgjv6PmXZ5NLOK4afH1kUdomfVV0/24M8741u1hcSH6KtGvUP2zhMzsiDFEbDXydWagzb750pmgCfBANueBQbUAyuyBcPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706891676; c=relaxed/simple; bh=b2ZLcg7YJ/dyepz/uVVFTYoYTOKVDQ4haDq9y0IB7yw=; h=Content-Type:To:Cc:Subject:References:Date:MIME-Version:From: Message-ID:In-Reply-To; b=q7ArQQFTjBg9dZBx3tTrnzRYNsXs3lIt60z++1BYlsFrrrKPn3W6VByF2iJTvifkmyucLkCT3A4rWtMY/P4NXAmgyogxlfYqU8FiE1E+ih5yJxz/y/NXe2CBe9YcMVz3RVHlGvMpjIcTvscJzNXIz323jRjvg8nzriDGftBajQA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Cpnnbu+K; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706891674; x=1738427674; h=to:cc:subject:references:date:mime-version: content-transfer-encoding:from:message-id:in-reply-to; bh=b2ZLcg7YJ/dyepz/uVVFTYoYTOKVDQ4haDq9y0IB7yw=; b=Cpnnbu+KVRXqrAkSVjDn0TaB6BG3FDgZUYE82VRTpyTqSX1+oTBnB9qR xwGH9PXqG1qfWIzwwingZSyEEZ72mbtnmWm9OTKtjfMn0x7SFOpXCENoI 5Z/hRyHoGV5VGM1FkttZ3cNDmiy93rIcJHtnbYsG2/a3VSkAMq1nSvixs Mb85ApP9GKK9HJG/cYBNXFKquu1uYCPhCUIvFQRBptddFj449CuEyK5Wq XqAGPtulOFyIX3pSfLSlcwu4h5T6tmwjYMIXvaOblO4+HIvGtb0WZ+LN7 U+4DVzQm0fXVtHQWRvVx5kgkzGww0cZnAySs1VcgbL2Lu3lD38e5yj6Re g==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="17604796" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="17604796" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 08:34:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="122759" Received: from hhuan26-mobl.amr.corp.intel.com ([10.92.17.168]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 02 Feb 2024 08:34:31 -0800 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: dave.hansen@linux.intel.com, tj@kernel.org, mkoutny@suse.com, linux-kernel@vger.kernel.org, linux-sgx@vger.kernel.org, x86@kernel.org, cgroups@vger.kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, sohil.mehta@intel.com, "Jarkko Sakkinen" Cc: zhiquan1.li@intel.com, kristen@linux.intel.com, seanjc@google.com, zhanb@microsoft.com, anakrish@microsoft.com, mikko.ylinen@linux.intel.com, yangjie@microsoft.com, chrisyan@microsoft.com Subject: Re: [PATCH v8 01/15] cgroup/misc: Add per resource callbacks for CSS events References: <20240130020938.10025-1-haitao.huang@linux.intel.com> <20240130020938.10025-2-haitao.huang@linux.intel.com> Date: Fri, 02 Feb 2024 10:34:29 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Haitao Huang" Organization: Intel Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) On Thu, 01 Feb 2024 17:24:40 -0600, Jarkko Sakkinen wrote: > On Tue Jan 30, 2024 at 4:09 AM EET, Haitao Huang wrote: >> From: Kristen Carlson Accardi >> >> The misc cgroup controller (subsystem) currently does not perform >> resource type specific action for Cgroups Subsystem State (CSS) events: >> the 'css_alloc' event when a cgroup is created and the 'css_free' event >> when a cgroup is destroyed. >> >> Define callbacks for those events and allow resource providers to >> register the callbacks per resource type as needed. This will be >> utilized later by the EPC misc cgroup support implemented in the SGX >> driver. >> >> Signed-off-by: Kristen Carlson Accardi >> Co-developed-by: Haitao Huang >> Signed-off-by: Haitao Huang >> --- >> V8: >> - Abstract out _misc_cg_res_free() and _misc_cg_res_alloc() (Jarkko) >> V7: >> - Make ops one per resource type and store them in array (Michal) >> - Rename the ops struct to misc_res_ops, and enforce the constraints of >> required callback >> functions (Jarkko) >> - Moved addition of priv field to patch 4 where it was used first. >> (Jarkko) >> >> V6: >> - Create ops struct for per resource callbacks (Jarkko) >> - Drop max_write callback (Dave, Michal) >> - Style fixes (Kai) > > This version looks nice and smooth: > > Reviewed-by: Jarkko Sakkinen > > BR, Jarkko > Thanks Jarkko! @tj, I had your Reviewed-by tags previously but dropped it due to some changes for refactoring suggested by other reviewers. Could you take a look at patches 1-2 for MiscController and confirm if I can have your Reviewed-by tags again? Thanks Haitao