]> xenbits.xensource.com Git - xen.git/commitdiff
x86 hvm: Make sure that we correctly tear down the vlapic periodic
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Apr 2008 15:32:51 +0000 (16:32 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 9 Apr 2008 15:32:51 +0000 (16:32 +0100)
timer when the vlapic is destroyed or reset.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/hvm/vlapic.c

index d354440084690bef82e614c076dc9782ad01265e..d66e3c26cf4b26dd2693fefcd7ab1b218343255b 100644 (file)
@@ -789,6 +789,8 @@ void vlapic_reset(struct vlapic *vlapic)
 
     vlapic_set_reg(vlapic, APIC_SPIV, 0xff);
     vlapic->hw.disabled |= VLAPIC_SW_DISABLED;
+
+    destroy_periodic_time(&vlapic->pt);
 }
 
 /* rearm the actimer if needed, after a HVM restore */