From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4f3O-0001si-85 for qemu-devel@nongnu.org; Wed, 21 Apr 2010 14:53:42 -0400 Received: from [140.186.70.92] (port=59408 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4f3M-0001q3-VB for qemu-devel@nongnu.org; Wed, 21 Apr 2010 14:53:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4f3L-0003sc-6s for qemu-devel@nongnu.org; Wed, 21 Apr 2010 14:53:40 -0400 Received: from mail2.shareable.org ([80.68.89.115]:55915) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4f3L-0003sR-2A for qemu-devel@nongnu.org; Wed, 21 Apr 2010 14:53:39 -0400 Date: Wed, 21 Apr 2010 19:53:22 +0100 From: Jamie Lokier Subject: Re: [Qemu-devel] Re: QEMU-KVM and video performance Message-ID: <20100421185322.GN27575@shareable.org> References: <4BCEBE5C.4020404@redhat.com> <20100421183357.GK27575@shareable.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerhard Wiesinger Cc: Avi Kivity , kvm@vger.kernel.org, qemu-devel@nongnu.org Gerhard Wiesinger wrote: > >>Would it be possible to handle these writes through QEMU directly > >>(without > >>KVM), because performance is there very well (looking at the code there > >>is some pointer arithmetic and some memory write done)? > > > >I've noticed extremely slow VGA performance too, when installing OSes. > >It makes the difference between installing in a few minutes, and > >installing taking hours - just because of the slow VGA. > > > >So generally I use qemu for installing old versions of Windows, then > >change to KVM to run them after installing. > > > >Switching between KVM and qemu automatically based on guest code > >behaviour, and making both memory models and device models compatible > >at run time, is a difficult thing. I guess it's not worth the > >difficulty just to speed up VGA. > > I think this is very easy to distingish: > 1.) VGA Segment A000 is legacy and should be handled through QEMU > and not through KVM (because it is much more faster). Also 16 color modes > should be fast enough there. > 2.) All other flat PCI memory accesses should be handled through KVM > (there is a specialized driver loaded for that PCI device in the non > legacy OS). > > Is that easily possible? No it isn't. Distingushing addresses is trivial. You've ignored the hard part, which is switching between different virtualisation architectures... -- Jamie