From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52092) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQbrn-0008Lz-Ds for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:23:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQbrj-0005w1-Kk for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:23:39 -0500 Received: from mx1.redhat.com ([209.132.183.28]:56337) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQbrj-0005vu-EU for qemu-devel@nongnu.org; Tue, 02 Feb 2016 09:23:35 -0500 Message-ID: <1454423012.9300.99.camel@redhat.com> From: Gerd Hoffmann Date: Tue, 02 Feb 2016 15:23:32 +0100 In-Reply-To: <20160202140733.6cef6568@crunchbang> References: <1454065944-15887-1-git-send-email-markmb@redhat.com> <1454411187.9300.54.camel@redhat.com> <1454414695.9300.57.camel@redhat.com> <20160202140733.6cef6568@crunchbang> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v4] Add optionrom compatible with fw_cfg DMA version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marc =?ISO-8859-1?Q?Mar=ED?= Cc: "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Stefan Hajnoczi , Paolo Bonzini , Marc =?ISO-8859-1?Q?Mar=ED?= , Laszlo Hi, > I don't remember discussing the topic of machine types when touching > fw_cfg DMA. Which means, it probably slipped amongst the other details. > But it is now merged and in stable, so it should probably be left as it > is now. We have to fix it, it breaks live migration. With fw_cfg_dma turned on we send an extra vmstate section. qemu 2.4 (+older) will not understand it. So we have to turn it off for those machine types. dma_enabled property is there already, but the logic is wrong. It defaults to false, but is flipped to true when the arch supports dma (i.e. on x86 and arm), unconditionally. Instead it should default to true. When set to false by the user or compat properties don't enable fw_cfg dma (and also flip it to false when dma is not supported by the arch). > Should this optionrom be enabled only with the latest machine type? The logic to pick the correct rom is fine. cheers, Gerd