ia64/xen-unstable

diff xen/arch/ia64/xen/xenmisc.c @ 9756:14a34d811e81

[IA64] introduce P2M conversion

introduce P2M conversion functions necessary for dom0vp model.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@ldap.hp.com
date Tue Apr 25 13:06:57 2006 -0600 (2006-04-25)
parents 96bc87dd7ca9
children ced37bea0647
line diff
     1.1 --- a/xen/arch/ia64/xen/xenmisc.c	Tue Apr 25 10:54:45 2006 -0700
     1.2 +++ b/xen/arch/ia64/xen/xenmisc.c	Tue Apr 25 13:06:57 2006 -0600
     1.3 @@ -87,9 +87,12 @@ void raise_actimer_softirq(void)
     1.4  unsigned long
     1.5  gmfn_to_mfn_foreign(struct domain *d, unsigned long gpfn)
     1.6  {
     1.7 +#ifndef CONFIG_XEN_IA64_DOM0_VP
     1.8  	if (d == dom0)
     1.9  		return(gpfn);
    1.10 -	else {
    1.11 +	else
    1.12 +#endif
    1.13 +	{
    1.14  		unsigned long pte = lookup_domain_mpa(d,gpfn << PAGE_SHIFT);
    1.15  		if (!pte) {
    1.16  printk("gmfn_to_mfn_foreign: bad gpfn. spinning...\n");