direct-io.hg

changeset 12396:72560fd8e9bf

[IA64] Fix weird behaviour when configuring >3G memory for a VTI domain.
Signed-off-by, Anthony Xu < anthony.xu@intel.com >
author kfraser@localhost.localdomain
date Tue Nov 14 10:46:34 2006 +0000 (2006-11-14)
parents e0dc5a544ea1
children fa4b1c287afa
files tools/ioemu/vl.c
line diff
     1.1 --- a/tools/ioemu/vl.c	Tue Nov 14 10:44:16 2006 +0000
     1.2 +++ b/tools/ioemu/vl.c	Tue Nov 14 10:46:34 2006 +0000
     1.3 @@ -6489,9 +6489,9 @@ int main(int argc, char **argv)
     1.4      }
     1.5  
     1.6      if (ram_size > MMIO_START) {	
     1.7 -        for (i = 0 ; i < MEM_G >> PAGE_SHIFT; i++)
     1.8 -            page_array[MMIO_START >> PAGE_SHIFT + i] =
     1.9 -                page_array[IO_PAGE_START >> PAGE_SHIFT + 1];
    1.10 +        for (i = 0 ; i < (MEM_G >> PAGE_SHIFT); i++)
    1.11 +            page_array[(MMIO_START >> PAGE_SHIFT) + i] =
    1.12 +                page_array[(IO_PAGE_START >> PAGE_SHIFT) + 1];
    1.13      }
    1.14  
    1.15      phys_ram_base = xc_map_foreign_batch(xc_handle, domid,