From: "KUWAMURA Shin'ya" Subject: [PATCH] [IOEMU] [IA64] Fix memory size calculation on VT-i over 3GB memory Date: Wed, 08 Oct 2008 15:43:43 +0900 (JST) Message-ID: <20081008.154343.43489380.kuwa@jp.fujitsu.com> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Wed_Oct__8_15_43_43_2008_125)--" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: xen-ia64-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org ----Next_Part(Wed_Oct__8_15_43_43_2008_125)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, VT-i domains have two memory holes: VGA I/O (under 1MB) and MMIO (3GB-4GB). This patch calculates the correct memory size with them. # This is based on xen-unstable 10936:a0b3cf802d99. Original patch by Zhang xiantao Signed-off-by: KUWAMURA Shin'ya Best regards, -- KUWAMURA Shin'ya ----Next_Part(Wed_Oct__8_15_43_43_2008_125)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ioemu-remote-4gb-take2.patch" diff --git a/vl.c b/vl.c index 120b607..b97435f 100644 --- a/vl.c +++ b/vl.c @@ -8670,6 +8670,14 @@ int main(int argc, char **argv) } #endif + +#if defined (__ia64__) + if (ram_size > VGA_IO_START) + ram_size += VGA_IO_SIZE; /* skip VGA I/O hole */ + if (ram_size > MMIO_START) + ram_size += 1 * MEM_G; /* skip 3G-4G MMIO, LEGACY_IO_SPACE etc. */ +#endif + /* init the memory */ phys_ram_size = machine->ram_require & ~RAMSIZE_FIXED; ----Next_Part(Wed_Oct__8_15_43_43_2008_125)-- Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ----Next_Part(Wed_Oct__8_15_43_43_2008_125)----