Received: from eggs.gnu.org ([2001:4830:134:3::10]:47553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzPAN-0002cX-Jb for qemu-devel@nongnu.org; Wed, 26 Oct 2016 10:26:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzPAJ-0005Ba-Em for qemu-devel@nongnu.org; Wed, 26 Oct 2016 10:26:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57136) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzPAJ-0005BS-A0 for qemu-devel@nongnu.org; Wed, 26 Oct 2016 10:26:51 -0400 Date: Wed, 26 Oct 2016 12:26:48 -0200 From: Eduardo Habkost Message-ID: <20161026142648.GZ5057@thinpad.lan.raisama.net> References: <1477416484-29054-1-git-send-email-wei.liu2@citrix.com> <20161026103255.GG30231@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161026103255.GG30231@citrix.com> 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: Stefano Stabellini , qemu-devel@nongnu.org, Xen-devel , Anthony PERARD , mst@redhat.com, pbonzini@redhat.com, rth@twiddle.net On Wed, Oct 26, 2016 at 11:32:56AM +0100, Wei Liu wrote: > On Tue, Oct 25, 2016 at 04:33:03PM -0700, Stefano Stabellini wrote: > > CC'ing maintainers > > > > On Tue, 25 Oct 2016, 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 > > > > Hi Wei, > > thanks for the patch. I think the right fix is to set > > > > pcmc->has_acpi_build = false > > > > for the xenfv machine and for the PC machine when accel=xen. > > > > Thoughts? > > > > This sounds like a better idea to me. As we shouldn't change PCMachineClass::has_acpi_build outside class_init, to make accel=xen disable it you'll probably need a new PCMachineState field. -- Eduardo