From: "Jan Beulich" Subject: Re: [PATCH v6 2/2] x86/viridian: Add partition time reference counter MSR support Date: Wed, 27 Aug 2014 14:40:27 +0100 Message-ID: <53FDFBEB020000780002E095@mail.emea.novell.com> References: <1409144840-7494-1-git-send-email-paul.durrant@citrix.com> <1409144840-7494-3-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409144840-7494-3-git-send-email-paul.durrant@citrix.com> 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 Fraser , xen-devel@lists.xen.org, IanJackson , Ian Campbell , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 27.08.14 at 15:07, wrote: > + case VIRIDIAN_MSR_TIME_REF_COUNT: > + { > + uint64_t tsc; > + > + if ( !(viridian_feature_mask(d) & HVMPV_time_ref_count) ) > + return 0; > + > + perfc_incr(mshv_rdmsr_time_ref_count); > + tsc = hvm_get_guest_tsc(pt_global_vcpu_target(d)); > + *val = (tsc * 10000ull) / d->arch.tsc_khz; There was a very relevant comment on the potential overflow of the multiplication here for the previous version, yet you neither addressed that verbally nor by adjusting the code. Jan