From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56880) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDcOb-0001dz-SL for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:29:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDcOT-0007dr-Dq for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:29:25 -0400 Received: from mail-vx0-f173.google.com ([209.85.220.173]:34128) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDcOT-0007dh-BR for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:29:17 -0400 Received: by vcbfl10 with SMTP id fl10so6485940vcb.4 for ; Tue, 11 Oct 2011 06:29:16 -0700 (PDT) Message-ID: <4E9444A9.9050507@codemonkey.ws> Date: Tue, 11 Oct 2011 08:29:13 -0500 From: Anthony Liguori MIME-Version: 1.0 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> <050FFBD4-BF45-4425-865B-24E7C228B592@suse.de> <4E9440B6.3060201@codemonkey.ws> <2DB3FD25-4BF7-4F82-9A62-49A6891316B3@suse.de> <4E944252.7020508@codemonkey.ws> <4E944358.6030304@redhat.com> In-Reply-To: <4E944358.6030304@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Avi Kivity Cc: "Richard W.M. Jones" , qemu-devel , Gleb Natapov , Alexander Graf On 10/11/2011 08:23 AM, Avi Kivity wrote: > On 10/11/2011 03:19 PM, Anthony Liguori wrote: >>> No, DMA has a lot bigger granularities in kvm/user interaction. We >>> can easily DMA a 50MB region with a single kvm/user exit. For PIO we >>> can at most do page granularity. >> >> >> So make a proper PCI device for kernel loading. It's a much more >> natural approach and let's use alias -kernel/-initrd/-append to >> -device kernel-pci,kernel=PATH,initrd=PATH > > This is overkill. First let's optimize rep/movs before introducing any > more interfaces. If that doesn't work, then we can have a dma interface > for fwcfg. But a new pci device? This is how it would work on bare metal. Why is a PCI device overkill compared to a dma interface for fwcfg? If we're adding dma to fwcfg, then fwcfg has become far too complex for it's intended purpose. Regards, Anthony Liguori >