[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.1] x86/time: fix check for negative time in __update_vcpu_system_time()



commit 28d38f0a7db6f5d024900ac0a9075a70298bc64f
Author:     Tim Deegan <tim@xxxxxxx>
AuthorDate: Tue Aug 20 16:12:19 2013 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Tue Aug 20 16:12:19 2013 +0200

    x86/time: fix check for negative time in __update_vcpu_system_time()
    
    Clang points out that u64 stime variable is always >= 0.
    
    Signed-off-by: Tim Deegan <tim@xxxxxxx>
    master commit: ab7f9a793c78dfea81c037b34b0dd2db7070d8f8
    master date: 2013-08-15 13:17:10 +0200
---
 xen/arch/x86/time.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index c3b0b86..e30ab49 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -817,7 +817,8 @@ static void __update_vcpu_system_time(struct vcpu *v, int 
force)
 
     if ( d->arch.vtsc )
     {
-        u64 stime = t->stime_local_stamp;
+        s_time_t stime = t->stime_local_stamp;
+
         if ( is_hvm_domain(d) )
         {
             struct pl_time *pl = &v->domain->arch.hvm_domain.pl_time;
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.1

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.