From: Keir Fraser Subject: Re: [PATCH V2] hvmloader: Fix FADT table for QEMU Upstream. Date: Wed, 27 Jul 2011 23:28:33 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Anthony PERARD Cc: Ian Campbell , Tobias Geiger , Xen Devel List-Id: xen-devel@lists.xenproject.org On 27/07/2011 17:00, "Anthony PERARD" wrote: > On Tue, Jul 26, 2011 at 18:48, Keir Fraser wrote: >> Thinking about this some more I wonder whether this will be correct for = old >> Qemu. Furthermore, we don't actually have a legacy/SMM component in our >> virtual firmware, so advertising the enable/disable mechanism via >> SMI_CMD_IOPORT is a bit pointless. >>=20 >> Could we instead dynamically handle this in in hvmloader's acpi-handling >> code something like: >> =A0if ( !SCI_EN ) // must be new qemu if so >> =A0 =A0outb(SMI_CMD_IOPORT, PIIX4_ACPI_ENABLE) >> =A0BUG_ON(!SCI_EN) >=20 > I just try that, and that works fine. So it's fine to me to do that > instead of providing an IOPort that is not handle by the > qemu-xen-legacy. Send me your tested patch! Thanks, Keir >> Or alternatively, we should at least gate the setting of those FADT fiel= ds >> on such a check, it seems to me.