aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vpt.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-10-28 10:36:22 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-10-28 10:36:22 +0000
commit5059df0621301eb48b00fbec643e147e74b9fcd3 (patch)
treed97ae128af61684553681c79d1061624c3134960 /xen/arch/x86/hvm/vpt.c
parentdf7542541e4e591e2b29a26a671b3e08b0965056 (diff)
downloadxen-5059df0621301eb48b00fbec643e147e74b9fcd3.tar.gz
xen-5059df0621301eb48b00fbec643e147e74b9fcd3.tar.bz2
xen-5059df0621301eb48b00fbec643e147e74b9fcd3.zip
hvm: Do not mess with APIC timer deadline if in one-shot mode.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vpt.c')
-rw-r--r--xen/arch/x86/hvm/vpt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vpt.c b/xen/arch/x86/hvm/vpt.c
index d9730bf140..5dae7cd505 100644
--- a/xen/arch/x86/hvm/vpt.c
+++ b/xen/arch/x86/hvm/vpt.c
@@ -389,7 +389,7 @@ void create_periodic_time(
* LAPIC ticks for process accounting can see long sequences of process
* ticks incorrectly accounted to interrupt processing.
*/
- if ( pt->source == PTSRC_lapic )
+ if ( !pt->one_shot && (pt->source == PTSRC_lapic) )
pt->scheduled += delta >> 1;
pt->cb = cb;
pt->priv = data;