From: Tim Deegan Subject: Re: Hypercalls in Intel-VT Date: Sun, 28 Oct 2007 22:00:45 +0000 Message-ID: <20071028220045.GB10591@york.uk.xensource.com> References: <200710261707.32584.mark.williamson@cl.cam.ac.uk> <200710270255.21955.mark.williamson@cl.cam.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <200710270255.21955.mark.williamson@cl.cam.ac.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mark Williamson Cc: Ashish Bijlani , xen-devel@lists.xensource.com, "Dong, Eddie" List-Id: xen-devel@lists.xenproject.org At 02:55 +0100 on 27 Oct (1193453721), Mark Williamson wrote: > Regarding the TLB flush, again, the hardware quite possibly does that. But > I'm not aware of anything in the VMX spec that exposes this detail, so Intel > could easily tag the TLB entries as root / non-root to avoid flushing on a > VMEXIT / VMENTER. For all I know, they may do this already! Right now, Intel processors always flush the whole TLB (including global entries) on a transition to or from non-root mode. Newer AMD processors have tagged TLBs so you can do an exit/enter without flushing, but you have to explicitly discard the guest entries when it's appropriate. (Look at arch/x86/hvm/svm/asid.c). That's on the road map for Intel too, I believe. Cheers, Tim. -- Tim Deegan , XenSource UK Limited Registered office c/o EC2Y 5EB, UK; company number 05334508