From: "Jan Beulich" Subject: Re: CR4.TSD in guest kernel vs userland Date: Tue, 22 Sep 2009 08:11:21 +0100 Message-ID: <4AB894B9020000780001628F@vpn.id2.novell.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Dan Magenheimer Cc: "Xen-Devel (E-mail)" List-Id: xen-devel@lists.xenproject.org >>> Keir Fraser 22.09.09 08:34 >>> >It's only likely to be reasonable for PV 64-bit guests, which transition = via >the hypervisor already for guest-kernel <-> guest-app transitions (i.e., >those transition times suck already). But still, I don't think adding a serializing instruction that likely (I = don't know of officially available numbers) takes hundreds of clocks is a good thing to do. Jan >On 21/09/2009 23:49, "Dan Magenheimer" = wrote: >> I was fretting about the overhead of emulating TSC in >> guest kernels. Is it possible (and relatively inexpensive) >> to change CR4.TSD on every transition between guest >> kernel and userland? I suspect not, but thought >> I'd check. If so, what about HVM vs PV and 32-bit >> vs 64-bit guest.