Received: from eggs.gnu.org ([140.186.70.92]:57346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RF555-0001ug-KW for qemu-devel@nongnu.org; Sat, 15 Oct 2011 10:19:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RF554-0004p6-0g for qemu-devel@nongnu.org; Sat, 15 Oct 2011 10:19:19 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:55610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RF553-0004ow-SL for qemu-devel@nongnu.org; Sat, 15 Oct 2011 10:19:17 -0400 Received: by qyk10 with SMTP id 10so225971qyk.4 for ; Sat, 15 Oct 2011 07:19:16 -0700 (PDT) Date: Sat, 15 Oct 2011 10:19:13 -0400 From: Kevin O'Connor Message-ID: <20111015141913.GA31970@morn.localdomain> References: <20111010170803.GV9408@redhat.com> <4E933F2D.7090703@codemonkey.ws> <20111011082315.GI14627@redhat.com> <4E940919.7010901@redhat.com> <5C80782F-C30A-4F35-93FD-0397A1040AFF@suse.de> <4E940BB6.2000400@redhat.com> <20111011095048.GU30105@redhat.com> <4E94129A.1080803@redhat.com> <4E9441E8.5050301@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E9441E8.5050301@codemonkey.ws> Subject: Re: [Qemu-devel] Slow kernel/initrd loading via fw_cfg; Was Re: Hack integrating SeaBios / LinuxBoot option rom with QEMU trace backends List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Alexander Graf , "Richard W.M. Jones" , Avi Kivity , Gleb Natapov , qemu-devel On Tue, Oct 11, 2011 at 08:17:28AM -0500, Anthony Liguori wrote: > On 10/11/2011 04:55 AM, Avi Kivity wrote: > >On 10/11/2011 11:50 AM, Gleb Natapov wrote: > >>But loading MBs of data through fw_cfg interface is just abusing it. > >>You wouldn't use pio on real HW to move megabytes of data and expect > >>good performance. > > > >True, this is a point in favour of a true dma interface. > > Doing kernel loading through fw_cfg has always been a bit ugly. > > A better approach would be to implement a PCI device with a ROM bar > that contained an option ROM that read additional bars from the > device to get at the kernel and initrd. If one is willing to add a PCI device, then one could add a virtio block device with a non-standard PCI device/vendor code and teach SeaBIOS to scan these non-standard ids. It's a bit of a hack, but it would be a simple way of creating a drive visible by the bios but hidden from the OS. -Kevin