ia64/xen-unstable

changeset 11826:463658ccf683

[IA64] BUG() bad path during domain destruction

BUG out on badness due to SMP problems accessing the p2m table. This
is temporary until we have a real fix. To avoid this, do not use the
RX copy option (xennet.rx_copy).

Based on patch by: Tsunehisa Doi

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
author awilliam@xenbuild.aw
date Sun Oct 22 14:12:30 2006 -0600 (2006-10-22)
parents 6cdd56dd79bc
children a7c6b1c5507c
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Sun Oct 22 13:57:29 2006 -0600
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Sun Oct 22 14:12:30 2006 -0600
     1.3 @@ -399,11 +399,11 @@ gmfn_to_mfn_foreign(struct domain *d, un
     1.4  	unsigned long pte;
     1.5  
     1.6  	// This function may be called from __gnttab_copy()
     1.7 -	// during destruction of VT-i domain with PV-on-HVM driver.
     1.8 +	// during domain destruction with VNIF copy receiver.
     1.9  	// ** FIXME: This is not SMP-safe yet about p2m table. **
    1.10  	if (unlikely(d->arch.mm.pgd == NULL)) {
    1.11 -		if (VMX_DOMAIN(d->vcpu[0]))
    1.12 -			return INVALID_MFN;
    1.13 +		BUG();
    1.14 +		return INVALID_MFN;
    1.15  	}
    1.16  	pte = lookup_domain_mpa(d,gpfn << PAGE_SHIFT, NULL);
    1.17  	if (!pte) {