From: Kevin O'Connor Subject: Re: Alt SeaBIOS SSDT cpu hotplug Date: Wed, 7 Jul 2010 19:26:07 -0400 Message-ID: <20100707232607.GA7778@morn.localdomain> References: <20100707045705.GA3427@morn.localdomain> <20100707102249.GA4689@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: seabios@seabios.org, kvm@vger.kernel.org To: Gleb Natapov Return-path: Received: from mail-qy0-f181.google.com ([209.85.216.181]:64183 "EHLO mail-qy0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756232Ab0GGX0M (ORCPT ); Wed, 7 Jul 2010 19:26:12 -0400 Received: by qyk38 with SMTP id 38so2541840qyk.19 for ; Wed, 07 Jul 2010 16:26:11 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20100707102249.GA4689@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jul 07, 2010 at 01:22:49PM +0300, Gleb Natapov wrote: > On Wed, Jul 07, 2010 at 12:57:05AM -0400, Kevin O'Connor wrote: > > The "CPUS" package stores references to the Processor objects, and the > > "CPON" package stores the state of which cpus are active. With this > > info, hopefully there is no need to update the MADT tables. > > > The way you wrote it acpi_id is always equal to lapic_id which is not > alway true. By using MADT from memory we remove this dependency from > DSDT code. The current code always sets the apic->processor_id equal to apic->local_apic_id in the madt apic table. If this changes, we could add a dynamically created mapping table to the ssdt. Something like: Name(CPLA, Package() { 0x00, 0x01, 0x02, 0x03, 0x04 }) -Kevin