From: Keir Fraser Subject: Re: [PATCH] svm: Do not intercept RDTCS(P) when TSC scaling is supported by hardware Date: Fri, 20 Apr 2012 09:45:42 +0100 Message-ID: References: <4F913727020000780007EC7A@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4F913727020000780007EC7A@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , Boris Ostrovsky Cc: wei.huang2@amd.com, xen-devel List-Id: xen-devel@lists.xenproject.org On 20/04/2012 09:15, "Jan Beulich" wrote: >> svm: Do not intercept RDTCS(P) when TSC scaling is supported by hardware >> >> When running in TSC_MODE_ALWAYS_EMULATE mode on processors that support >> TSC scaling we don't need to intercept RDTSC/RDTSCP instructions. > > While the patch itself looks fine, I'm having difficulty to connect the > mentioning of TSC_MODE_ALWAYS_EMULATE to it - afaics all modes > are affected as long as they result in d->arch.vtsc to be set. I think the real point of this patch is they *never* want to trap and emulate RDTSC on these newer processors. -- Keir