Received: from eggs.gnu.org ([2001:4830:134:3::10]:43484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzl5u-0002ou-H8 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 09:51:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzl5p-0000RN-N1 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 09:51:46 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:22973) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1bzl5p-0000Qn-G1 for qemu-devel@nongnu.org; Thu, 27 Oct 2016 09:51:41 -0400 From: Wei Liu Date: Thu, 27 Oct 2016 14:51:09 +0100 Message-ID: <1477576269-31748-1-git-send-email-wei.liu2@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2] xenfv: set has_acpi_build to false List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Xen-devel , Wei Liu , Igor Mammedov , Anthony PERARD , Stefano Stabellini , Sander Eikelenboom Xen's toolstack is in charge of building ACPI tables. Skip ACPI table building and loading in QEMU by setting has_acpi_build to false for xenfv machine. 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 --- Cc: Igor Mammedov Cc: Anthony PERARD Cc: Stefano Stabellini Cc: Sander Eikelenboom --- hw/i386/pc_piix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index a54a468..08596a1 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -1094,10 +1094,14 @@ DEFINE_PC_MACHINE(isapc, "isapc", pc_init_isa, #ifdef CONFIG_XEN static void xenfv_machine_options(MachineClass *m) { + PCMachineClass *pcmc = PC_MACHINE_CLASS(m); + m->desc = "Xen Fully-virtualized PC"; m->max_cpus = HVM_MAX_VCPUS; m->default_machine_opts = "accel=xen"; m->hot_add_cpu = pc_hot_add_cpu; + + pcmc->has_acpi_build = false; } DEFINE_PC_MACHINE(xenfv, "xenfv", pc_xen_hvm_init, -- 2.1.4