parlib: Fix u32/u64 issue with pvcalarm
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 14 Dec 2018 22:01:30 +0000 (17:01 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 14 Dec 2018 22:23:48 +0000 (17:23 -0500)
commit4c005135add747c83aa18623e3b24986956d0d9a
treef112cd1664ba47048597f1d913b4d5a595cea958
parent287bd2317d46a30fa3c96670b8e0c92029224f11
parlib: Fix u32/u64 issue with pvcalarm

vcore_account_uptime_ticks() returns a u64.  By making it a u32, we'll
eventually make diff 'negative'/'very large' once a vcore's uptime
passes 32 bits, which would break things.

This never popped up, but I noticed it while hunting down other
alarm/time bugs.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/parlib/pvcalarm.c