aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:00:36 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-09-22 08:00:36 +0100
commit18d0fed6948ada72aa1c10e3fba365f148a4a252 (patch)
tree8cd29b4dcedd04722b2d98fcb31a1772d2ed932e /xen/arch/x86/hvm/vpt.c
parent7033f1164710d1065fe278dbef826673af85abbd (diff)
downloadxen-18d0fed6948ada72aa1c10e3fba365f148a4a252.tar.gz
xen-18d0fed6948ada72aa1c10e3fba365f148a4a252.tar.bz2
xen-18d0fed6948ada72aa1c10e3fba365f148a4a252.zip
x86 hvm: fix missing ticks bug of c/s 20218
With c/s 20218, timer ticks might be missed when IRQs of a timer are queued. "Next scheduled time" is accumulated wrongly. Thanks to Christoph for the report. Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com> Reported-by: Christoph Egger <Christoph.Egger@amd.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index 1a5804a356..5ed1362082 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -309,7 +309,6 @@ void pt_intr_post(struct vcpu *v, struct hvm_intack intack)
else
{
pt->scheduled += pt->period;
- pt_process_missed_ticks(pt);
if ( mode_is(v->domain, one_missed_tick_pending) ||
mode_is(v->domain, no_missed_ticks_pending) )
@@ -324,7 +323,11 @@ void pt_intr_post(struct vcpu *v, struct hvm_intack intack)
}
if ( pt->pending_intr_nr == 0 )
+ {
+ pt_process_missed_ticks(pt);
+ pt->do_not_freeze = 0;
set_timer(&pt->timer, pt->scheduled);
+ }
}
if ( mode_is(v->domain, delay_for_missed_ticks) &&