direct-io.hg

changeset 12943:96670c42df39

[XEN][POWERPC] Remove pfn2mfn() now that it is understood
It is possible (thank you xm-test) to initiate a grant copy to a page
belonging to a dying domain, the page end up being owned by nobody
which is what the original test asserted.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Oct 10 09:09:38 2006 -0400 (2006-10-10)
parents 79bb96e0ba73
children d6ec02744592
files xen/arch/powerpc/mm.c
line diff
     1.1 --- a/xen/arch/powerpc/mm.c	Sun Oct 08 11:34:24 2006 -0400
     1.2 +++ b/xen/arch/powerpc/mm.c	Tue Oct 10 09:09:38 2006 -0400
     1.3 @@ -412,7 +412,18 @@ ulong pfn2mfn(struct domain *d, ulong pf
     1.4                  }
     1.5              }
     1.6          }
     1.7 -        BUG_ON(t != PFN_TYPE_NONE && page_get_owner(mfn_to_page(mfn)) != d);
     1.8 +#ifdef DEBUG
     1.9 +        if (t != PFN_TYPE_NONE &&
    1.10 +            (d->domain_flags & DOMF_dying) &&
    1.11 +            page_get_owner(mfn_to_page(mfn)) != d) {
    1.12 +            printk("%s: page type: %d owner Dom[%d]:%p expected Dom[%d]:%p\n",
    1.13 +                   __func__, t,
    1.14 +                   page_get_owner(mfn_to_page(mfn))->domain_id,
    1.15 +                   page_get_owner(mfn_to_page(mfn)),
    1.16 +                   d->domain_id, d);
    1.17 +            BUG();
    1.18 +        }
    1.19 +#endif
    1.20      }
    1.21  
    1.22      if (t == PFN_TYPE_NONE) {