svn commit: r222238 - projects/bhyve/usr.sbin/bhyve
Peter Grehan
grehan at FreeBSD.org
Tue May 24 01:08:53 UTC 2011
Author: grehan
Date: Tue May 24 01:08:53 2011
New Revision: 222238
URL: http://svn.freebsd.org/changeset/base/222238
Log:
Catch up with CURRENTs different timer usage compared to 8.1. A counter
value of 0 in rategen mode is equivalent to a max initial value.
The TSC is now correctly calibrated on a 9.0 guest.
Obtained from: NetApp
Modified:
projects/bhyve/usr.sbin/bhyve/pit_8254.c
Modified: projects/bhyve/usr.sbin/bhyve/pit_8254.c
==============================================================================
--- projects/bhyve/usr.sbin/bhyve/pit_8254.c Mon May 23 23:58:02 2011 (r222237)
+++ projects/bhyve/usr.sbin/bhyve/pit_8254.c Tue May 24 01:08:53 2011 (r222238)
@@ -183,6 +183,8 @@ pit_8254_handler(struct vmctx *ctx, int
if (c->crbyte == 2) {
c->crbyte = 0;
c->initial = c->cr[0] | (uint16_t)c->cr[1] << 8;
+ if (c->initial == 0)
+ c->initial = 0xffff;
gettimeofday(&c->tv, NULL);
}
}
More information about the svn-src-projects
mailing list