From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44428) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPq4-0007LI-A9 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzPq0-000217-2U for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:10:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33696) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzPpz-00020n-Si for qemu-devel@nongnu.org; Wed, 26 Oct 2016 11:09:55 -0400 Date: Wed, 26 Oct 2016 17:09:52 +0200 From: Igor Mammedov Message-ID: <20161026170952.18c02dbb@nial.brq.redhat.com> In-Reply-To: <1477416484-29054-1-git-send-email-wei.liu2@citrix.com> References: <1477416484-29054-1-git-send-email-wei.liu2@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH RFC] acpi: don't build acpi tables for xen hvm guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wei Liu Cc: qemu-devel@nongnu.org, Anthony PERARD , Xen-devel , Stefano Stabellini On Tue, 25 Oct 2016 18:28:04 +0100 Wei Liu wrote: > Xen's toolstack is in charge of building ACPI tables. Skip acpi table > building if running on Xen. > > This issue is discovered due to direct kernel boot on Xen doesn't boot > anymore, because the new ACPI tables cause the guest to exceed its > memory allocation limit. > > Reported-by: Sander Eikelenboom > Signed-off-by: Wei Liu Question is: Why does xen guest get ACPI tables from QEMU instead of using Xen provided ones. Maybe it's firmware issue i.e. firmware side shouldn't load ACPI tables from QEMU provided fwcfg file and load Xen provided instead. > --- > Cc: Anthony PERARD > Cc: Stefano Stabellini > > RFC because I'm not sure this is the best way to fix it. > --- > hw/i386/acpi-build.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/hw/i386/acpi-build.c b/hw/i386/acpi-build.c > index a26a4bb..2cdff12 100644 > --- a/hw/i386/acpi-build.c > +++ b/hw/i386/acpi-build.c > @@ -45,6 +45,7 @@ > #include "sysemu/tpm_backend.h" > #include "hw/timer/mc146818rtc_regs.h" > #include "sysemu/numa.h" > +#include "hw/xen/xen.h" > > /* Supported chipsets: */ > #include "hw/acpi/piix4.h" > @@ -2865,6 +2866,11 @@ void acpi_setup(void) > return; > } > > + if (xen_enabled()) { > + ACPI_BUILD_DPRINTF("Xen enabled. Bailing out.\n"); > + return; > + } > + > build_state = g_malloc0(sizeof *build_state); > > acpi_set_pci_info();