All of lore.kernel.org
 help / color / mirror / Atom feed
* [HVM][IPF][PATCH] A small fix about guest 3G memory
@ 2006-11-14  8:30 Xu, Anthony
  2006-11-15 21:04 ` Aron Griffis
  0 siblings, 1 reply; 2+ messages in thread
From: Xu, Anthony @ 2006-11-14  8:30 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel, xen-ia64-devel

[-- Attachment #1: Type: text/plain, Size: 168 bytes --]

When configuring more than 3G memory to VTI domain,
Sometimes it behaves weirdly.
This patch fixes this bug.


Signed-off-by, Anthony Xu < anthony.xu@intel.com >

[-- Attachment #2: fix_3G_mem.patch --]
[-- Type: application/octet-stream, Size: 823 bytes --]

When configuring more than 3G memory to VTI domain,
Sometimes it behaves weirdly.
This patch fixes this bug.


Signed-off-by, Anthony Xu < anthony.xu@intel.com >


diff -r fe543184f7f9 tools/ioemu/vl.c
--- a/tools/ioemu/vl.c	Mon Nov 13 11:24:30 2006 -0700
+++ b/tools/ioemu/vl.c	Wed Nov 15 01:17:33 2006 +0800
@@ -6489,9 +6489,9 @@ int main(int argc, char **argv)
     }
 
     if (ram_size > MMIO_START) {	
-        for (i = 0 ; i < MEM_G >> PAGE_SHIFT; i++)
-            page_array[MMIO_START >> PAGE_SHIFT + i] =
-                page_array[IO_PAGE_START >> PAGE_SHIFT + 1];
+        for (i = 0 ; i < (MEM_G >> PAGE_SHIFT); i++)
+            page_array[(MMIO_START >> PAGE_SHIFT) + i] =
+                page_array[(IO_PAGE_START >> PAGE_SHIFT) + 1];
     }
 
     phys_ram_base = xc_map_foreign_batch(xc_handle, domid,

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-11-15 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-14  8:30 [HVM][IPF][PATCH] A small fix about guest 3G memory Xu, Anthony
2006-11-15 21:04 ` Aron Griffis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.