ia64/xen-unstable

changeset 17427:e63b48242116

x86 hvm: Make sure that we correctly tear down the vlapic periodic
timer when the vlapic is destroyed or reset.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Apr 09 16:32:51 2008 +0100 (2008-04-09)
parents f410fa7f379c
children b3fdc4c38995
files xen/arch/x86/hvm/vlapic.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vlapic.c	Wed Apr 09 16:31:16 2008 +0100
     1.2 +++ b/xen/arch/x86/hvm/vlapic.c	Wed Apr 09 16:32:51 2008 +0100
     1.3 @@ -789,6 +789,8 @@ void vlapic_reset(struct vlapic *vlapic)
     1.4  
     1.5      vlapic_set_reg(vlapic, APIC_SPIV, 0xff);
     1.6      vlapic->hw.disabled |= VLAPIC_SW_DISABLED;
     1.7 +
     1.8 +    destroy_periodic_time(&vlapic->pt);
     1.9  }
    1.10  
    1.11  /* rearm the actimer if needed, after a HVM restore */