From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haozhong Zhang Subject: Re: [PATCH 12/13] vmx: Add a call-back to apply TSC scaling ratio to hardware Date: Wed, 28 Oct 2015 10:41:05 +0800 Message-ID: <20151028024105.GH12789@hzzhang-OptiPlex-9020.sh.intel.com> References: <1443424438-13404-1-git-send-email-haozhong.zhang@intel.com> <1443424438-13404-13-git-send-email-haozhong.zhang@intel.com> <562F8B4A02000078000AF268@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <562F8B4A02000078000AF268@prv-mh.provo.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 Cc: Kevin Tian , Wei Liu , Ian Campbell , Stefano Stabellini , Jun Nakajima , Andrew Cooper , Ian Jackson , xen-devel@lists.xen.org, Aravind Gopalakrishnan , Suravee Suthikulpanit , Keir Fraser , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On Tue, Oct 27, 2015 at 07:33:46AM -0600, Jan Beulich wrote: > >>> On 28.09.15 at 09:13, wrote: > > This patch adds a new call-back setup_tsc_scaling in struct > > hvm_function_table to apply the TSC scaling ratio to hardware. For VMX, > > it writes the TSC scaling ratio to VMCS field TSC_MULTIPLIER. > > > > Signed-off-by: Haozhong Zhang > > Looking at this (last non-tools one) patch, I wonder how if this is > needed things can be correct at the point of the series prior to > this patch. IOW - is the series correctly ordered? > > Jan > If I keep the scaling logic out of vmx_set_tsc_offset(), then patch 11 will be not necessary. Then, I can move patch 12 before patch 10. The reordered patch 12 only adds a callback which is never called until patch 10 is applied. Haozhong