ia64/xen-unstable

changeset 12882:566e0e95cf00

[IA64] Domain save fix for foreign domain page mapping semantics change

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild2.aw
date Thu Dec 07 14:56:01 2006 -0700 (2006-12-07)
parents 178e46776c71
children bc3044bf4928
files tools/libxc/ia64/xc_ia64_linux_save.c
line diff
     1.1 --- a/tools/libxc/ia64/xc_ia64_linux_save.c	Thu Dec 07 14:53:47 2006 -0700
     1.2 +++ b/tools/libxc/ia64/xc_ia64_linux_save.c	Thu Dec 07 14:56:01 2006 -0700
     1.3 @@ -347,13 +347,13 @@ xc_linux_save(int xc_handle, int io_fd, 
     1.4                          page_array[N], N, max_pfn);
     1.5  
     1.6              mem = xc_map_foreign_range(xc_handle, dom, PAGE_SIZE,
     1.7 -                                       PROT_READ|PROT_WRITE, page_array[N]);
     1.8 +                                       PROT_READ|PROT_WRITE, N);
     1.9              if (mem == NULL) {
    1.10                  /* The page may have move.
    1.11                     It will be remarked dirty.
    1.12                     FIXME: to be tracked.  */
    1.13 -                fprintf(stderr, "cannot map page %lx: %s\n",
    1.14 -                        page_array[N], safe_strerror(errno));
    1.15 +                fprintf(stderr, "cannot map mfn page %lx gpfn %lx: %s\n",
    1.16 +                        page_array[N], N, safe_strerror(errno));
    1.17                  continue;
    1.18              }
    1.19