ia64/xen-unstable

changeset 10016:998aa66b6502

[IA64] Fix VTi domain destroy bug

This patch will fix VTi domain destroy bug. On tip, we couldn't
destroy VTi successfully at times. It was caused by misusing
vhpt base address for VTi domain in vhpt_flush function.

Signed-off-by : Zhang xiantao <xiantao.zhang@intel.com>
author awilliam@xenbuild.aw
date Wed May 17 15:52:10 2006 -0600 (2006-05-17)
parents 99f880fea7e1
children 2de2952715d9
files xen/arch/ia64/xen/vhpt.c
line diff
     1.1 --- a/xen/arch/ia64/xen/vhpt.c	Tue May 16 12:54:26 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/vhpt.c	Wed May 17 15:52:10 2006 -0600
     1.3 @@ -25,7 +25,7 @@ DEFINE_PER_CPU (unsigned long, vhpt_pend
     1.4  
     1.5  static void vhpt_flush(void)
     1.6  {
     1.7 -	struct vhpt_lf_entry *v = (struct vhpt_lf_entry *)VHPT_ADDR;
     1.8 +	struct vhpt_lf_entry *v = __va(__ia64_per_cpu_var(vhpt_paddr));
     1.9  	int i;
    1.10  
    1.11  	for (i = 0; i < VHPT_NUM_ENTRIES; i++, v++)