From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQvvo-0000sQ-2g for qemu-devel@nongnu.org; Wed, 03 Feb 2016 06:49:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQvvj-0001Ge-VU for qemu-devel@nongnu.org; Wed, 03 Feb 2016 06:49:07 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQvvj-0001GV-QX for qemu-devel@nongnu.org; Wed, 03 Feb 2016 06:49:03 -0500 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> <1454489075.4967.45.camel@redhat.com> From: Laszlo Ersek Message-ID: <56B1E92B.4050705@redhat.com> Date: Wed, 3 Feb 2016 12:48:59 +0100 MIME-Version: 1.0 In-Reply-To: <1454489075.4967.45.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Gerd Hoffmann Cc: =?UTF-8?Q?Marc_Mar=c3=ad?= , "Gabriel L. Somlo" , qemu-devel@nongnu.org, Kevin O'Connor , Stefan Hajnoczi , Paolo Bonzini , =?UTF-8?Q?Marc_Mar=c3=ad?= On 02/03/16 09:44, Gerd Hoffmann wrote: > Hi, > >> I think the "dma_enabled" property is not exposed to the user. > > It is: "-global fw_cfg.dma_enabled=off" 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. Fair point. >> 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? That's how "has_reserved_memory" works as well, for example. But, if the property is made work, I guess PC_COMPAT_2_4 can be used too. (Or should it be HW_COMPAT_2_4?) Is that your point? Thanks Laszlo