From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnIMh-0007Mh-9j for qemu-devel@nongnu.org; Thu, 13 Jun 2013 20:59:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UnIMf-0002ix-W8 for qemu-devel@nongnu.org; Thu, 13 Jun 2013 20:59:43 -0400 Received: from mail-oa0-x22f.google.com ([2607:f8b0:4003:c02::22f]:47033) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UnIMf-0002it-RA for qemu-devel@nongnu.org; Thu, 13 Jun 2013 20:59:41 -0400 Received: by mail-oa0-f47.google.com with SMTP id m1so11428oag.34 for ; Thu, 13 Jun 2013 17:59:40 -0700 (PDT) From: Anthony Liguori In-Reply-To: <51BA5029.3010702@redhat.com> References: <1370882347-31129-1-git-send-email-mst@redhat.com> <87r4g9rdwe.fsf@codemonkey.ws> <51B62C48.5060303@redhat.com> <87ehc920ym.fsf@codemonkey.ws> <51B63A74.1030905@redhat.com> <87mwqxzlke.fsf@codemonkey.ws> <20130611073548.GE31474@redhat.com> <51BA5029.3010702@redhat.com> Date: Thu, 13 Jun 2013 19:59:37 -0500 Message-ID: <87sj0ltsli.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH] qemu: piix: PCI bridge ACPI hotplug support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , "Michael S. Tsirkin" Cc: Peter Maydell , Jordan Justen , seabios@seabios.org, qemu-devel , Laszlo Ersek , Kevin O'Connor , Gerd Hoffmann , David Woodhouse Paolo Bonzini writes: > Il 11/06/2013 03:35, Michael S. Tsirkin ha scritto: >> Two points >> 1. You never explained what you mean by un-hardware like. >> >> Currently bios is in a ROM device, and it has a >> template for ACPI tables together with it. >> This simply moves the tables to a separate ROM >> device (FW CFG), and generalizes the template using >> the linker interface. >> One ROM is hardware-like but two is un-hardware like? >> >> ACPI tables are static so it's likely lots of >> hardware has at least some of them pre-formatted in flash, >> then tweak some things like SRAT a bit. > > Also having a "bootstrap processor" was certainly not unheard of some > decades ago. Right now we get all sort of SMM hacks instead of adding > more processors, but it's certainly not un-hardware like. It's still not unheard of. This is how power systems work still. However, with PCs, the ACPI tables are generated by/included in the firmware. There's no question about that. > > Maybe we should just have a bytecode interpreter and write the ACPI > generator in that language. :) Indeed, we can even using an existing bytecode like the x86 instruction set and use this VM called KVM to execute it. I hear there are even C compilers for this bytecode ;-) Regards, Anthony Liguori > Paolo