Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp315269lqp; Wed, 12 Jun 2024 02:25:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7KgdIUhYNfbupNZIfJaQ7U/3seIHg+sy7kgSZ0nRnDi5ib7oB+HtFNqapZtIrusXgUJm5hTz52yZVh2OvEmp2FuhkIz/qdmqFSM9tJA== X-Google-Smtp-Source: AGHT+IE4l4msVh/pvtijNSscNsww5iqizqWCWJurEiHn2SVey+T4KkaYsgskysF+uCSWZqm6aOM9 X-Received: by 2002:a05:622a:1886:b0:440:f03b:798b with SMTP id d75a77b69052e-4415ac722b8mr14006001cf.55.1718184327800; Wed, 12 Jun 2024 02:25:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718184327; cv=pass; d=google.com; s=arc-20160816; b=kDDaXnXGHUEEnPnh8bYRYmVXco0nlRXM6WfIyHMPdguSHpQ6YXdJriQUn63MjIuymg dA55tt5hM56N1iH5Iwn1IctqAljKw3UPOK0f74Oqd4iFWUBDK4S5OVhGz9ORCRtJv0C6 zuiHg/cm23YdLfKRmxkQF8YYMP58kcsTzOacSXgQMlW0IasZWmxoRMpz4h8QxdFAopMX pXbzuF6rm0fFDkTCoDvhDyViEAvYJ4M6kQgSd24p7E6Xmw+KM7cqq8qcrOcRAON+U/N0 5W9SIZQC+j3Fa1BkVbcv/DfRTqQNb92CZks0ei+WB8iGgpfULzb68TGLSuGbgXHAptIc KviA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CQ1i3se+c5v5pZ/RUXyM929Ne54PR5ObxnstC6ncYPE=; fh=7HB6he9WSlpUGy7mSiZZe/5kzLKHnHSnusDpqQ0dkoY=; b=AmUj9EHneu1JGh/25z+8uHDLT4UYzBGKvclQpco/vJ0jiNYdzFvB4itLlAvhkPNnP0 XzswCOAqNTALY4jidGdPMnS4XVFoxD9AYfEi/0CyRVI7QTxazl9e+K1A3dYseNY3M/Ba Npjk+K87oe4GxOqwCHH9GFtvr0TC4NXjKSSVir1EBTSPzofmBgoe5xZgiyVaqeuD2Zyl GW/dSIBjIsk4uvT0WPfaaawGbuHBD1gaQum+KVy5iV4+FXAP3jO9RU/3sMy6Bq9Ezl6Z y/uFMJeQXXWAmClWBrs7Cx0iZ7AyDWRYs5bbccc/+G6MkBN62D/0WHydzt7EhPk7Ao8+ MyAg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ji0uTgrt; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-211260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211260-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-44038b79c84si152280811cf.684.2024.06.12.02.25.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 02:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ji0uTgrt; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-211260-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211260-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7DDB51C216FF for ; Wed, 12 Jun 2024 09:25:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C2E416E893; Wed, 12 Jun 2024 09:24:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ji0uTgrt" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) (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 CD37C16D9DD; Wed, 12 Jun 2024 09:24:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.14 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184280; cv=none; b=bFN+0Zpi67qI1sc3mL4+WHIzvphudTbeYvHIXbC+Gl85JQZD9qmd+vRlQ+AhHwA/t7esb6po/x98tevAin6EJZrxA8tEiFz89nMEtfVkd49qpwAJwJ1dgf2l59XUY3AUClZh/sHYYibRDL/qsgMa3xXPqi9zwC1Frn/pb9dWnUM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718184280; c=relaxed/simple; bh=Qea/Jn12txiTuu1sQzZhiztNW21tvwMqG/CoQdaTdLE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=TDBZ0n2OvfyX8USNNj0Ua3FSuMI9+tkKT4wBiAr5aO0I3Xu5zXp581j1eNWhdc84tncfRaZ2nYljlm/mbTcHK7agTVC6MMurU3xZE1koCXGb2HBoVgdhwYN40s8THIYBZWvm1A7GQVkXleS4NCqQwSr7fbz01E4YpTDlcdMj6oQ= 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=Ji0uTgrt; arc=none smtp.client-ip=192.198.163.14 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=1718184279; x=1749720279; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Qea/Jn12txiTuu1sQzZhiztNW21tvwMqG/CoQdaTdLE=; b=Ji0uTgrtXzmB9eNKa9GjDTeC4+2EBQfjyduHVY9emfybV/mj76BUDE0o iOiBJ2EaVjI9KjNMuG2TlZ9L0Y5ReTN4x+/3jww8GXYALrkYZKYRIZIcI GbIFq4PPmABUzaf1FtvXIjvbAooRIvJxZ7IYuv9pX8WujYuLgevxyZZPO IB9KIuftEGEkYIk3FQ8bfbhyV/RazxwtnI4jLgAs977ecxCJBF1SY0eeQ fYZU+hwwLxqVLwaoI1WlVvgmN0wZYFv9vYuWw/kZq4PxOqB2t4HUiVaE2 95Y4mg9/8xEH0IJhPGAtnWEN/E+G9Ja+KcDdblZUPscPnsyCTHdU2GjKI A==; X-CSE-ConnectionGUID: 4kNUjFavRPehjHlHehY0rg== X-CSE-MsgGUID: /U+stWlcRDmLh/GENKu0uQ== X-IronPort-AV: E=McAfee;i="6600,9927,11100"; a="15166827" X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="15166827" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2024 02:24:38 -0700 X-CSE-ConnectionGUID: i2TjnqRFRByO99lPQ1rpLg== X-CSE-MsgGUID: 3Cah0xaYTqG0k8+PVw92kg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,232,1712646000"; d="scan'208";a="40201459" Received: from black.fi.intel.com ([10.237.72.28]) by orviesa006.jf.intel.com with ESMTP; 12 Jun 2024 02:24:32 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id 195CE193; Wed, 12 Jun 2024 12:24:30 +0300 (EEST) Date: Wed, 12 Jun 2024 12:24:30 +0300 From: "Kirill A. Shutemov" To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "Rafael J. Wysocki" , Peter Zijlstra , Adrian Hunter , Kuppuswamy Sathyanarayanan , Elena Reshetova , Jun Nakajima , Rick Edgecombe , Tom Lendacky , "Kalra, Ashish" , Sean Christopherson , "Huang, Kai" , Ard Biesheuvel , Baoquan He , "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , kexec@lists.infradead.org, linux-hyperv@vger.kernel.org, linux-acpi@vger.kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, Tao Liu Subject: Re: [PATCHv11 18/19] x86/acpi: Add support for CPU offlining for ACPI MADT wakeup method Message-ID: <2kc27uzrsvpevtvos2harqj3bgfkizi5dhhxkigswlylpnogr5@lk6fi2okv53i> References: <20240528095522.509667-1-kirill.shutemov@linux.intel.com> <20240528095522.509667-19-kirill.shutemov@linux.intel.com> <20240603083930.GNZl2BQk2lQ8WtcE4o@fat_crate.local> <20240610134020.GCZmcCRFxuObyv1W_d@fat_crate.local> <20240611194653.GGZmiprSNzK0JSJL17@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240611194653.GGZmiprSNzK0JSJL17@fat_crate.local> On Tue, Jun 11, 2024 at 09:46:53PM +0200, Borislav Petkov wrote: > On Tue, Jun 11, 2024 at 06:47:05PM +0300, Kirill A. Shutemov wrote: > > Borislav, given this code deduplication effort is not trivial, maybe we > > can do it as a separate patchset on top of this one? > > Sure, as long as it gets done and doesn't get delayed indefinitely by > new and more important features enablement. I will try to deliver it in timely manner. > Usually, we do unifications and cleanups first - then new features but > this kexec pile has been long in the making already... > > > I also wounder if it makes sense to combine ident_map.c and > > set_memory.c. There's some overlap between the two. > > Yeah, we have a bunch of different pagetable manipulating things, all > with their peculiarities and unifying them and having a good set of APIs > which everything else uses, is always a good thing. Will give it a try. > And since we're talking cleanups, there's another thing I've been > looking at critically: CONFIG_X86_5LEVEL. Maybe it is time to get rid of > it and make the 5level stuff unconditional. And get rid of a bunch of > code since both vendors support 5level now... Can do. -- Kiryl Shutsemau / Kirill A. Shutemov