From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [SeaBIOS] About cpu_set, CPU hotplug and related subjects Date: Wed, 28 Apr 2010 13:45:48 +0300 Message-ID: <20100428104548.GS10044@redhat.com> References: <1271705694.2505.36.camel@localhost.localdomain> <20100422011200.GA10677@morn.localdomain> <4BD80054.9090409@redhat.com> <20100428103020.GQ10044@redhat.com> <4BD810EF.5070601@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Kevin O'Connor" , Lucas Meneghel Rodrigues , seabios@seabios.org, qemu mailing list , KVM mailing list To: Jes Sorensen Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44882 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751520Ab0D1KqC (ORCPT ); Wed, 28 Apr 2010 06:46:02 -0400 Content-Disposition: inline In-Reply-To: <4BD810EF.5070601@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Apr 28, 2010 at 12:41:51PM +0200, Jes Sorensen wrote: > On 04/28/10 12:30, Gleb Natapov wrote: > > On Wed, Apr 28, 2010 at 11:31:00AM +0200, Jes Sorensen wrote: > >> On 04/22/10 03:12, Kevin O'Connor wrote: > >> Generating the more complex tables dynamically would be preferred, but > >> it requires like half an AML compiler in Seabios, so it kinda stalled > >> there.... > >> > > We can try to be smart and generate most of the code statically and only > > minimum that absolutely required dynamically. Haven't looked at how > > simple dynamic part can be made. > > I looked at it briefly and ran away screaming :) I am sure it can be This is normal reaction to ACPI of a healthy human being. > done, bit it would require pretty good understanding of the AML encodings. > > The CPU declarations are particularly tricky as they get pretty big and > complex and need to live in the DSDT, whereas a lot of other things we > can shift off to separate SSDT tables and only put the minimum that > needs to be generated dynamically in it's own table. > We can generate complex code statically and call it from dynamically generated CPU declarations. -- Gleb.