Received: from eggs.gnu.org ([2001:4830:134:3::10]:36180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fnUwY-0003js-M9 for qemu-devel@nongnu.org; Wed, 08 Aug 2018 16:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fnUwV-0007sH-IN for qemu-devel@nongnu.org; Wed, 08 Aug 2018 16:20:30 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:60114 helo=mx1.redhat.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fnUwV-0007rc-1Y for qemu-devel@nongnu.org; Wed, 08 Aug 2018 16:20:27 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A04D28011462 for ; Wed, 8 Aug 2018 20:20:26 +0000 (UTC) Date: Wed, 8 Aug 2018 23:20:25 +0300 From: "Michael S. Tsirkin" Message-ID: <20180808231810-mutt-send-email-mst@kernel.org> References: <1533741349-199141-1-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1533741349-199141-1-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [RFC PATCH 0/4] "pc: acpi: _CST support" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: qemu-devel@nongnu.org On Wed, Aug 08, 2018 at 05:15:45PM +0200, Igor Mammedov wrote: > It's an alternative approach to > 1) [PATCH hack dontapply v2 0/7] Dynamic _CST generation > which instead of dynamic AML loading uses static AML with > dynamic values. It allows us to keep firmware blob static and > to avoid split firmware issue (1) in case of cross version migration. I think there's a misunderstanding. That patch only declares a couple of states but that is just for debugging/demonstration purposes. A typical real CPU has more states (e.g. some intel CPUs have ~10 levels). > ABI in this case is confined to cpu hotplug IO registers > (i.e. do it old school way, like we used to do so far). > This way we don't have to add yet another ABI to keep dynamic > AML code under control (1). > > Tested with: XPsp3 - ws2106 guests. > > CC: "Michael S. Tsirkin" > > > Igor Mammedov (3): > acpi: add aml_create_byte_field() > pc: acpi: add _CST support > acpi: add support for CST update notification > > Michael S. Tsirkin (1): > acpi: aml: add aml_register() > > include/hw/acpi/aml-build.h | 6 ++ > include/hw/acpi/cpu.h | 10 +++ > docs/specs/acpi_cpu_hotplug.txt | 21 +++++- > hw/acpi/aml-build.c | 28 +++++++ > hw/acpi/cpu.c | 158 +++++++++++++++++++++++++++++++++++++++- > hw/acpi/piix4.c | 2 + > hw/i386/acpi-build.c | 5 +- > tests/bios-tables-test.c | 1 + > 8 files changed, 225 insertions(+), 6 deletions(-) > > -- > 2.7.4