From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Deegan Subject: Re: Question on shadow_invlpg return value handling. Date: Tue, 27 Mar 2007 10:29:03 +0000 Message-ID: <20070327102903.GD11216@york.uk.xensource.com> References: <255418.7451.qm@web8808.mail.in.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Content-Disposition: inline In-Reply-To: <255418.7451.qm@web8808.mail.in.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: jeet Cc: xen-devel@lists.xensource.com, Tim Deegan , aditya shevalkar List-Id: xen-devel@lists.xenproject.org At 15:49 +0530 on 27 Mar (1175010562), jeet wrote: > If on VM entry TLB is flushed why we are handling instruction "invlpg" in xen > can't this be done by doing VMexit and VM entry as this would do flushing of TLB? Yes, for now that's true. When the tagged TLB comes back it won't be; and after 3.0.5 we might be doing some more optimizations that will need to hook off the paging_invlpg call. > Is this TLB flush done due to loading of guest state (mov to cr3)? > or > Is TLB flush on VM entry hardware feature or is implemented in Xen ? Hardware. You should really read volume 2 section 15 of the AMD manual, and volume 3a chapters 19-27 of the Intel manuals. Tim. -- Tim Deegan , XenSource UK Limited Registered office c/o EC2Y 5EB, UK; company number 05334508