From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2B0ACC25B74 for ; Mon, 27 May 2024 09:56:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBX5j-0000fP-LS; Mon, 27 May 2024 05:56:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBX5e-0000cP-6P; Mon, 27 May 2024 05:56:26 -0400 Received: from mgamail.intel.com ([198.175.65.9]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBX5Z-0000V2-8V; Mon, 27 May 2024 05:56:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1716803782; x=1748339782; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=97lFmP1Xif4eZA/n0xbIqmin3Syi5ckopV3vGiHK7Wc=; b=Y2aSS91P/Pm7Q9zAgbKxYA07SXDopcOelfYCFLManFsEVvytT6Jz11FJ yTN229ZFzJxNB0yWu2wRjm2fdRikb2V086hNGKN9lUR6rVJ7o7UbKEiud yOLhlHVL6n21IbXKCQwQbKyRbPj7/zrJCwHK9PcFeiau34AtAl9d6f0wJ s14B3rLCWh8f+RMkvMEKhQdOKRl2tvoy1rqD1C0rzu2SJkEuwjyhDCGOB RhB+XdASNnDROjx5TX0z/4gbB3R6LzKqWBqHoRIelFWhcmG3/keY1oJUx ktHEn1MyOANOn3Yo3DEnFfMhsufbTfdhxAr9Ig/dJnf33TTKhvlh+yvWy A==; X-CSE-ConnectionGUID: ma5iHxBjQgeh4vbjeimEbA== X-CSE-MsgGUID: tZ/3ucasSfiM80mwua8frg== X-IronPort-AV: E=McAfee;i="6600,9927,11084"; a="35629311" X-IronPort-AV: E=Sophos;i="6.08,192,1712646000"; d="scan'208";a="35629311" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 May 2024 02:56:04 -0700 X-CSE-ConnectionGUID: K+gIUm/3SGCWVzcdfrYm6A== X-CSE-MsgGUID: aNP11mAfRpW7Q+k5uFzL2A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,192,1712646000"; d="scan'208";a="34717942" Received: from liuzhao-optiplex-7080.sh.intel.com (HELO localhost) ([10.239.160.36]) by fmviesa006.fm.intel.com with ESMTP; 27 May 2024 02:55:55 -0700 Date: Mon, 27 May 2024 18:11:18 +0800 From: Zhao Liu To: Salil Mehta Cc: qemu-devel@nongnu.org, qemu-arm@nongnu.org, maz@kernel.org, jean-philippe@linaro.org, jonathan.cameron@huawei.com, lpieralisi@kernel.org, peter.maydell@linaro.org, richard.henderson@linaro.org, imammedo@redhat.com, andrew.jones@linux.dev, david@redhat.com, philmd@linaro.org, eric.auger@redhat.com, oliver.upton@linux.dev, pbonzini@redhat.com, mst@redhat.com, will@kernel.org, gshan@redhat.com, rafael@kernel.org, alex.bennee@linaro.org, linux@armlinux.org.uk, darren@os.amperecomputing.com, ilkka@os.amperecomputing.com, vishnu@os.amperecomputing.com, karl.heubaum@oracle.com, miguel.luis@oracle.com, salil.mehta@opnsrc.net, zhukeqian1@huawei.com, wangxiongfeng2@huawei.com, wangyanan55@huawei.com, jiakernel2@gmail.com, maobibo@loongson.cn, lixianglai@loongson.cn, npiggin@gmail.com, harshpb@linux.ibm.com, linuxarm@huawei.com, Shaoqin Huang Subject: Re: [PATCH V11 3/8] hw/acpi: Update ACPI GED framework to support vCPU Hotplug Message-ID: References: <20240522211111.232114-1-salil.mehta@huawei.com> <20240522211111.232114-4-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240522211111.232114-4-salil.mehta@huawei.com> Received-SPF: pass client-ip=198.175.65.9; envelope-from=zhao1.liu@intel.com; helo=mgamail.intel.com X-Spam_score_int: -45 X-Spam_score: -4.6 X-Spam_bar: ---- X-Spam_report: (-4.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.145, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org On Wed, May 22, 2024 at 10:11:06PM +0100, Salil Mehta via wrote: > Date: Wed, 22 May 2024 22:11:06 +0100 > From: Salil Mehta via > Subject: [PATCH V11 3/8] hw/acpi: Update ACPI GED framework to support vCPU > Hotplug > X-Mailer: git-send-email 2.34.1 > > ACPI GED (as described in the ACPI 6.4 spec) uses an interrupt listed in the > _CRS object of GED to intimate OSPM about an event. Later then demultiplexes the > notified event by evaluating ACPI _EVT method to know the type of event. Use > ACPI GED to also notify the guest kernel about any CPU hot(un)plug events. > > ACPI CPU hotplug related initialization should only happen if ACPI_CPU_HOTPLUG > support has been enabled for particular architecture. Add cpu_hotplug_hw_init() > stub to avoid compilation break. > > Co-developed-by: Keqian Zhu > Signed-off-by: Keqian Zhu > Signed-off-by: Salil Mehta > Reviewed-by: Jonathan Cameron > Reviewed-by: Gavin Shan > Reviewed-by: David Hildenbrand > Reviewed-by: Shaoqin Huang > Tested-by: Vishnu Pajjuri > Tested-by: Xianglai Li > Tested-by: Miguel Luis > Reviewed-by: Vishnu Pajjuri > --- > hw/acpi/acpi-cpu-hotplug-stub.c | 6 ++++++ > hw/acpi/cpu.c | 6 +++++- > hw/acpi/generic_event_device.c | 17 +++++++++++++++++ > include/hw/acpi/generic_event_device.h | 4 ++++ > 4 files changed, 32 insertions(+), 1 deletion(-) > Reviewed-by: Zhao Liu