From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51045) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDcJA-0005mT-Jl for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:23:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RDcJ3-0006Qr-NY for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:23:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:9605) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RDcJ3-0006Qh-Ge for qemu-devel@nongnu.org; Tue, 11 Oct 2011 09:23:41 -0400 Message-ID: <4E944358.6030304@redhat.com> Date: Tue, 11 Oct 2011 15:23:36 +0200 From: Avi Kivity 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> In-Reply-To: <4E944252.7020508@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 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: Anthony Liguori Cc: qemu-devel , Alexander Graf , Gleb Natapov , "Richard W.M. Jones" 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? -- error compiling committee.c: too many arguments to function