From: Jason Subject: Re: [Qemu-devel] Ideas wiki for GSoC 2010 Date: Tue, 16 Mar 2010 00:20:01 +0000 (UTC) Message-ID: References: <20100310183023.6632aece@redhat.com> <4B9E2745.7060903@redhat.com> <20100315125313.GK9457@il.ibm.com> <20100315130310.GE13108@8bytes.org> <4B9E320E.7040605@redhat.com> <4B9E34E1.3090709@codemonkey.ws> <4B9E4D11.70402@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from lo.gmane.org ([80.91.229.12]:58926 "EHLO lo.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937211Ab0CPAZF (ORCPT ); Mon, 15 Mar 2010 20:25:05 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NrKal-0003BS-W0 for kvm@vger.kernel.org; Tue, 16 Mar 2010 01:25:04 +0100 Received: from jfdmzpr02-ext.jf.intel.com ([134.134.139.71]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Mar 2010 01:25:03 +0100 Received: from kvmuser by jfdmzpr02-ext.jf.intel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Mar 2010 01:25:03 +0100 Sender: kvm-owner@vger.kernel.org List-ID: Avi Kivity redhat.com> writes: > > On 03/15/2010 03:23 PM, Anthony Liguori wrote: > > On 03/15/2010 08:11 AM, Avi Kivity wrote: > >> Your guest wasn't doing a zillion VMREADs and VMWRITEs every exit. > >> > >> I plan to reduce VMREAD/VMWRITE overhead for kvm, but not much we can > >> do for other guests. > > > > VMREAD/VMWRITEs are generally optimized by hypervisors as they tend to > > be costly. KVM is a bit unusual in terms of how many times the > > instructions are executed per exit. > > Do you know offhand of any unnecessary read/writes? There's > update_cr8_intercept(), but on normal exits, I don't see what else we > can remove. > In comparing KVM 2.6.31.6b to XenServer 5.5.0, it seems KVM has fewer overall VMREADs and VMWRITEs, but there are a lot of VMWRITEs to Host FS_SEL, Host GS_SEL, Host FS_BASE, and Host GS_BASE that don't appear in Xen. Also, KVM has a lot of MSR accesses to 0xc0000081-0xc0000084 that Xen doesn't have.