From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44399) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQt3K-0003tH-4c for qemu-devel@nongnu.org; Wed, 03 Feb 2016 03:44:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQt3G-0004qg-V6 for qemu-devel@nongnu.org; Wed, 03 Feb 2016 03:44:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60402) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQt3G-0004qa-PV for qemu-devel@nongnu.org; Wed, 03 Feb 2016 03:44:38 -0500 Message-ID: <1454489075.4967.45.camel@redhat.com> From: Gerd Hoffmann Date: Wed, 03 Feb 2016 09:44:35 +0100 In-Reply-To: <56B0C59A.6070008@redhat.com> 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> <1454423012.9300.99.camel@redhat.com> <56B0C59A.6070008@redhat.com> 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: Laszlo Ersek Cc: Marc =?ISO-8859-1?Q?Mar=ED?= , "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Stefan Hajnoczi , Paolo Bonzini , Marc =?ISO-8859-1?Q?Mar=ED?= Hi, > I think the "dma_enabled" property is not exposed to the user. It is: "-global fw_cfg.dma_enabled=3Doff" works (as in: doesn't throw an error). Has no effect through as it gets overridden later on. > The default value of "dma_enabled" in both fw_cfg_io_properties and > fw_cfg_mem_properties is irrelevant; the actual property value is always > overwritten in fw_cfg_init_io_dma() and fw_cfg_init_mem_wide(), which > all of the init paths go through. And IMHO we should not do that, so setting the property actually has an effect. > I agree that DMA capability should be filtered with machine type. > However, that distinction should not be made using the current > "dma_enabled" properties (i.e., of "fw_cfg_io_properties" and > "fw_cfg_mem_properties". Instead, it should be made in the > board-specific callers of fw_cfg_init_(io_dma|mem_wide). Why? cheers, Gerd