Received: from eggs.gnu.org ([2001:4830:134:3::10]:56966) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1ccj-0004C1-Ph for qemu-devel@nongnu.org; Tue, 01 Nov 2016 13:13:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1ccg-00042R-LB for qemu-devel@nongnu.org; Tue, 01 Nov 2016 13:13:21 -0400 Received: from smtp.citrix.com ([66.165.176.89]:15349) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1ccg-00042J-G4 for qemu-devel@nongnu.org; Tue, 01 Nov 2016 13:13:18 -0400 Date: Tue, 1 Nov 2016 17:12:37 +0000 From: Wei Liu Message-ID: <20161101171237.GG30231@citrix.com> References: <1478018591-26425-1-git-send-email-wei.liu2@citrix.com> <20161101170231.GB5057@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161101170231.GB5057@thinpad.lan.raisama.net> Subject: Re: [Qemu-devel] [PATCH RFC] PCMachineState: introduce acpi_build_enabled field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Wei Liu , qemu-devel@nongnu.org, Xen-devel , Igor Mammedov , Anthony PERARD , Stefano Stabellini , Sander Eikelenboom On Tue, Nov 01, 2016 at 03:02:31PM -0200, Eduardo Habkost wrote: > On Tue, Nov 01, 2016 at 04:43:11PM +0000, Wei Liu wrote: > [...] > > @@ -114,6 +115,11 @@ static void xen_change_state_handler(void *opaque, int running, > > > > static int xen_init(MachineState *ms) > > { > > + PCMachineState *pcms = PC_MACHINE(ms); > > + > > + /* Disable ACPI build because Xen handles it */ > > + pcms->acpi_build_enabled = false; > > I just noticed that I don't see any code to disable ACPI build in > the case of "-machine pc,accel=xen". I suggest a xen_enabled() Hmm... I think this code snippet does exactly that -- xen_init is the initialization function for Xen accelerator. So this covers -m xenfv (because it sets accelerator to xen) and -m whatever,accel=xen. Did I miss anything? Wei.