ia64/xen-unstable

changeset 17105:4a9f31bdfcc0

[IA64] Clear console page for sioemu

This fixes a bug: by using pfn 0 for console, the page was not cleared,
sometimes causing the domain to fail to boot.

Signed-off-by: Tristan Gingold <tgingold@free.fr>
author Alex Williamson <alex.williamson@hp.com>
date Mon Feb 25 06:27:21 2008 -0700 (2008-02-25)
parents 07d9e9ca34f0
children 7e8334e651c4
files tools/libxc/ia64/xc_ia64_dom_fwloader.c
line diff
     1.1 --- a/tools/libxc/ia64/xc_ia64_dom_fwloader.c	Mon Feb 25 06:24:43 2008 -0700
     1.2 +++ b/tools/libxc/ia64/xc_ia64_dom_fwloader.c	Mon Feb 25 06:27:21 2008 -0700
     1.3 @@ -58,9 +58,11 @@ static int xc_dom_load_fw_kernel(struct 
     1.4  static int alloc_magic_pages(struct xc_dom_image *dom)
     1.5  {
     1.6      /* allocate special pages */
     1.7 -    dom->console_pfn = 0;
     1.8 -    dom->xenstore_pfn = 1;
     1.9 -    dom->start_info_pfn = 2;
    1.10 +    /* Note: do not use 0 for console or xenstore otherwise clear_page won't
    1.11 +       clear the page.  */
    1.12 +    dom->start_info_pfn = 0;
    1.13 +    dom->console_pfn = 1;
    1.14 +    dom->xenstore_pfn = 2;
    1.15      return 0;
    1.16  }
    1.17