direct-io.hg

changeset 15456:eb2b7ce05f97

hvm vlapic: Fix one_shot argument passed to create_periodic_time().
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
author kfraser@localhost.localdomain
date Tue Jul 03 11:47:08 2007 +0100 (2007-07-03)
parents c192e3241eb7
children 08bcc54aee8e
files xen/arch/x86/hvm/vlapic.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vlapic.c	Tue Jul 03 11:44:13 2007 +0100
     1.2 +++ b/xen/arch/x86/hvm/vlapic.c	Tue Jul 03 11:47:08 2007 +0100
     1.3 @@ -660,7 +660,7 @@ static void vlapic_write(struct vcpu *v,
     1.4  
     1.5          vlapic_set_reg(vlapic, APIC_TMICT, val);
     1.6          create_periodic_time(current, &vlapic->pt, period, vlapic->pt.irq,
     1.7 -                             vlapic_lvtt_period(vlapic), NULL, vlapic);
     1.8 +                             !vlapic_lvtt_period(vlapic), NULL, vlapic);
     1.9  
    1.10          HVM_DBG_LOG(DBG_LEVEL_VLAPIC,
    1.11                      "bus cycle is %uns, "
    1.12 @@ -819,7 +819,7 @@ static void lapic_rearm(struct vlapic *s
    1.13  
    1.14          s->pt.irq = lvtt & APIC_VECTOR_MASK;
    1.15          create_periodic_time(vlapic_vcpu(s), &s->pt, period, s->pt.irq,
    1.16 -                             vlapic_lvtt_period(s), NULL, s);
    1.17 +                             !vlapic_lvtt_period(s), NULL, s);
    1.18  
    1.19          printk("lapic_load to rearm the actimer:"
    1.20                      "bus cycle is %uns, "