ia64/xen-unstable

changeset 15761:0cc2e0a1b2fc

[IA64] Kill PM timer

The release proceeding of domain resources forgot to stop (or kill)
PM timer, and freed the domain structure.
VMX flag of VCPU#0 was not set when VHPT allocation for VCPU#0
failed. For this reason, domain_relinquish_resources() did not
call vmx_relinqush_guest_resources(). But the domain structure
was freed. As a result, timer_softirq_action() lose sight of
the callback function for PM timer.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Alex Williamson <alex.williamson@hp.com>
date Fri Aug 24 15:06:49 2007 -0600 (2007-08-24)
parents 049d4baa9965
children 6644d8486266
files xen/arch/ia64/xen/domain.c
line diff
     1.1 --- a/xen/arch/ia64/xen/domain.c	Thu Aug 16 13:46:50 2007 -0600
     1.2 +++ b/xen/arch/ia64/xen/domain.c	Fri Aug 24 15:06:49 2007 -0600
     1.3 @@ -939,7 +939,7 @@ static void relinquish_memory(struct dom
     1.4  void domain_relinquish_resources(struct domain *d)
     1.5  {
     1.6      /* Relinquish guest resources for VT-i domain. */
     1.7 -    if (d->vcpu[0] && VMX_DOMAIN(d->vcpu[0]))
     1.8 +    if (d->arch.is_vti)
     1.9  	    vmx_relinquish_guest_resources(d);
    1.10  
    1.11      /* Tear down shadow mode stuff. */