ia64/xen-unstable

changeset 13776:a1017acc8578

[IA64] Bug fix new_tlbflush_clock_period()

__vhpt_flush() might be called from new_tlbflush_clock_period()
even if the vcpu doesn't have the per-vcpu-vhpt.
It erases 64KB memory content that starts from machine address 0.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author awilliam@xenbuild2.aw
date Sun Feb 04 11:28:54 2007 -0700 (2007-02-04)
parents 0df9dc2f1d03
children 1502ba048b73
files xen/arch/ia64/xen/flushtlb.c
line diff
     1.1 --- a/xen/arch/ia64/xen/flushtlb.c	Thu Feb 01 13:54:26 2007 -0700
     1.2 +++ b/xen/arch/ia64/xen/flushtlb.c	Sun Feb 04 11:28:54 2007 -0700
     1.3 @@ -88,6 +88,8 @@ new_tlbflush_clock_period(void)
     1.4      smp_mb();
     1.5      for_each_domain(d) {
     1.6          for_each_vcpu(d, v) {
     1.7 +            if (!test_bit(_VCPUF_initialised, &v->vcpu_flags) || VMX_DOMAIN(v))
     1.8 +                continue;
     1.9              if (HAS_PERVCPU_VHPT(v->domain))
    1.10                  vcpu_vhpt_flush(v);
    1.11          }