From mboxrd@z Thu Jan 1 00:00:00 1970 From: Haozhong Zhang Subject: Re: [PATCH v3 05/13] svm: Remove redundant TSC scaling in svm_set_tsc_offset() Date: Fri, 8 Jan 2016 21:24:56 +0800 Message-ID: <20160108132456.GC16393@hz-desktop.sh.intel.com> References: <1451531020-29964-1-git-send-email-haozhong.zhang@intel.com> <1451531020-29964-6-git-send-email-haozhong.zhang@intel.com> <568F8DC902000078000C4BC0@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: <568F8DC902000078000C4BC0@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 , Keir Fraser , Suravee Suthikulpanit , Andrew Cooper , xen-devel@lists.xen.org, Aravind Gopalakrishnan , Jun Nakajima , Boris Ostrovsky List-Id: xen-devel@lists.xenproject.org On 01/08/16 02:22, Jan Beulich wrote: > >>> On 31.12.15 at 04:03, wrote: > > @@ -854,6 +841,7 @@ static void svm_set_tsc_offset(struct vcpu *v, u64 offset, u64 at_tsc) > > n2_tsc_offset = vmcb_get_tsc_offset(n2vmcb) - > > vmcb_get_tsc_offset(n1vmcb); > > if ( svm->ns_tscratio != DEFAULT_TSC_RATIO ) { > > + uint64_t guest_tsc = hvm_get_guest_tsc_fixed(v, at_tsc); > > n2_tsc_offset = svm_get_tsc_offset(guest_tsc, > > Blank line between declaration(s) and statement(s) please. > > Also please consider taking the opportunity to fix the preceding > line's coding style violation. > > Jan OK, both will be fixed in the next version. Haozhong