From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932638AbeB1QBB convert rfc822-to-8bit (ORCPT ); Wed, 28 Feb 2018 11:01:01 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:39983 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932207AbeB1QA7 (ORCPT ); Wed, 28 Feb 2018 11:00:59 -0500 X-Google-Smtp-Source: AG47ELsInYbYyjxuWmAPLuCvk0NR6SThppepSKPGux8wpAYRYxmlZtDqEpl53Ydvpz9n/3uc3KUsS2HsGCyYvkfqFzs= MIME-Version: 1.0 In-Reply-To: <20180228174635-mutt-send-email-mst@kernel.org> References: <20180215213312.29234-1-marcandre.lureau@redhat.com> <20180215213312.29234-12-marcandre.lureau@redhat.com> <20180227020104-mutt-send-email-mst@kernel.org> <20180228173444-mutt-send-email-mst@kernel.org> <20180228174635-mutt-send-email-mst@kernel.org> From: =?UTF-8?B?TWFyYy1BbmRyw6kgTHVyZWF1?= Date: Wed, 28 Feb 2018 17:00:58 +0100 Message-ID: Subject: Re: [PATCH v15 11/11] RFC: fw_cfg: do DMA read operation To: "Michael S. Tsirkin" Cc: Linux Kernel Mailing List , Sergio Lopez Pascual , Baoquan He , "Somlo, Gabriel" , xiaolong.ye@intel.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi On Wed, Feb 28, 2018 at 4:48 PM, Michael S. Tsirkin wrote: > On Wed, Feb 28, 2018 at 04:41:51PM +0100, Marc-André Lureau wrote: >> I don't know if it's always safe to enable dma in read_raw(), how >> could we know? Is there a check we could use to choose one or ther >> other (and thus avoiding explicit dma/readfn argument)? > > I'm not sure - but does it really matter? Is anyone reading large files > like this in production where speed matters? > Why even bother with DMA? The difference is quite significante for not so small files, as shown above. And if they access the fw_cfg entries at boot time, or when starting things etc, this may speed things up.