|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] While merging my development tree with the latest hg tre
# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID ac7176771024daa6d8029de2735d7741c713c03e
# Parent 55a5ad2f028d55758c6193b4fec970ee46a60ec1
While merging my development tree with the latest hg tree I noticed that
VMX support was broken. When you boot an unmodified Linux kernel it gets
stuck in the "Calibrating delay" loop. The reason for this is that the
vmx code is repeatedly delivering timer interrupts.
Correcting the MILLISECS() and friends macros to return s_time_t instead
of ULL fixes this problem. The other changes are just to get rid of
redundant code and variables.
Signed-Off-By: Leendert van Doorn <leendert@xxxxxxxxxxxxxx>
diff -r 55a5ad2f028d -r ac7176771024 xen/arch/x86/vmx_intercept.c
--- a/xen/arch/x86/vmx_intercept.c Fri Jul 29 11:21:39 2005
+++ b/xen/arch/x86/vmx_intercept.c Mon Aug 1 09:16:25 2005
@@ -197,8 +197,7 @@
static void pit_timer_fn(void *data)
{
struct vmx_virpit_t *vpit = data;
- s_time_t next;
- int missed_ticks;
+ int missed_ticks;
missed_ticks = (NOW() - vpit->scheduled) / MILLISECS(vpit->period);
@@ -208,12 +207,11 @@
/* pick up missed timer tick */
if ( missed_ticks > 0 ) {
- vpit->pending_intr_nr+= missed_ticks;
+ vpit->pending_intr_nr += missed_ticks;
vpit->scheduled += missed_ticks * MILLISECS(vpit->period);
}
- next = vpit->scheduled + MILLISECS(vpit->period);
- set_ac_timer(&vpit->pit_timer, next);
- vpit->scheduled = next;
+ vpit->scheduled += MILLISECS(vpit->period);
+ set_ac_timer(&vpit->pit_timer, vpit->scheduled);
}
diff -r 55a5ad2f028d -r ac7176771024 xen/include/xen/time.h
--- a/xen/include/xen/time.h Fri Jul 29 11:21:39 2005
+++ b/xen/include/xen/time.h Mon Aug 1 09:16:25 2005
@@ -51,9 +51,9 @@
s_time_t get_s_time(void);
#define NOW() ((s_time_t)get_s_time())
-#define SECONDS(_s) (((s_time_t)(_s)) * 1000000000ULL )
-#define MILLISECS(_ms) (((s_time_t)(_ms)) * 1000000ULL )
-#define MICROSECS(_us) (((s_time_t)(_us)) * 1000ULL )
+#define SECONDS(_s) ((s_time_t)((_s) * 1000000000ULL))
+#define MILLISECS(_ms) ((s_time_t)((_ms) * 1000000ULL))
+#define MICROSECS(_us) ((s_time_t)((_us) * 1000ULL))
extern void update_dom_time(struct vcpu *v);
extern void do_settime(
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] While merging my development tree with the latest hg tree I noticed that,
Xen patchbot -unstable <=
|
|
|
|
|