From: "Jan Beulich" Subject: Re: [PATCH] x86/viridian: Add Partition Reference Time enlightenment Date: Fri, 26 Sep 2014 07:34:19 +0100 Message-ID: <5425250B020000780003965E@mail.emea.novell.com> References: <1411660238-5193-1-git-send-email-paul.durrant@citrix.com> <54245AAA0200007800039222@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD0492045@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XXP6h-0002XC-Sp for xen-devel@lists.xenproject.org; Fri, 26 Sep 2014 06:34:19 +0000 In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD0492045@AMSPEX01CL01.citrite.net> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant Cc: "Keir (Xen.org)" , Ian Campbell , Christoph Egger , StefanoStabellini , "xen-devel@lists.xenproject.org" , Ian Jackson List-Id: xen-devel@lists.xenproject.org >>> On 25.09.14 at 18:18, wrote: >> -----Original Message----- >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: 25 September 2014 17:11 >> To: Paul Durrant >> Cc: Christoph Egger; Ian Campbell; Ian Jackson; Stefano Stabellini; xen- >> devel@lists.xenproject.org; Keir (Xen.org) >> Subject: Re: [PATCH] x86/viridian: Add Partition Reference Time >> enlightenment >> >> >>> On 25.09.14 at 17:50, wrote: >> > The presence of the partition reference time enlightenment persuades >> newer >> > versions of Windows to prefer the TSC as their primary time source. Hence, >> > if rdtsc is not being emulated and is invariant then many vmexits (for >> > alternative time sources such as the HPET or reference counter MSR) can >> > be avoided. >> > >> > If the VM is migrated to a host where TSC is no longer invariant and/or >> > TSC is emulated then the enlightenment is disabled. >> >> Which means performance of a guest post migration can change >> dramatically. Is that really a good thing? > > I guess that's debatable. It is possible to use this enlightenment to scale > TSC, which means that TSC emulation could be avoided even if the tsc_khz > changes, but I still need to figure out how best to do that part. Nothing can > be done in the case of migration to a non iTSC host though. > I could leave this out the default enlightenment set for now. Yes please, perhaps with a brief code comment as to why. Jan