ia64/xen-unstable

changeset 5927:555b315b482d

... for dom0 if we know we'll need it. This is the xen
counterpart to the previous xenlinux patch which adds this
info to the kernel. Also adds some printk's.
author kaf24@firebug.cl.cam.ac.uk
date Fri Jul 29 10:24:41 2005 +0000 (2005-07-29)
parents e922662b7839
children 04d01b8fa219
files xen/arch/x86/domain_build.c
line diff
     1.1 --- a/xen/arch/x86/domain_build.c	Fri Jul 29 10:24:06 2005 +0000
     1.2 +++ b/xen/arch/x86/domain_build.c	Fri Jul 29 10:24:41 2005 +0000
     1.3 @@ -165,6 +165,8 @@ int construct_dom0(struct domain *d,
     1.4                 xen_pae ? "yes" : "no", dom0_pae ? "yes" : "no");
     1.5          return -EINVAL;
     1.6      }
     1.7 +    if (strstr(dsi.xen_section_string, "SHADOW=translate"))
     1.8 +	opt_dom0_translate = 1;
     1.9  
    1.10      /* Align load address to 4MB boundary. */
    1.11      dsi.v_start &= ~((1UL<<22)-1);
    1.12 @@ -618,11 +620,13 @@ int construct_dom0(struct domain *d,
    1.13  
    1.14      if ( opt_dom0_shadow || opt_dom0_translate )
    1.15      {
    1.16 +	printk("dom0: shadow enable\n");
    1.17          shadow_mode_enable(d, (opt_dom0_translate
    1.18                                 ? SHM_enable | SHM_refcounts | SHM_translate
    1.19                                 : SHM_enable));
    1.20          if ( opt_dom0_translate )
    1.21          {
    1.22 +	    printk("dom0: shadow translate\n");
    1.23  #if defined(__i386__) && defined(CONFIG_X86_PAE)
    1.24              printk("FIXME: PAE code needed here: %s:%d (%s)\n",
    1.25                     __FILE__, __LINE__, __FUNCTION__);
    1.26 @@ -655,6 +659,7 @@ int construct_dom0(struct domain *d,
    1.27          }
    1.28  
    1.29          update_pagetables(v); /* XXX SMP */
    1.30 +	printk("dom0: shadow setup done\n");
    1.31      }
    1.32  
    1.33      return 0;