public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add support >3G memory for ia64 guests.
@ 2007-12-24  6:16 Zhang, Xiantao
       [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB56A64-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Zhang, Xiantao @ 2007-12-24  6:16 UTC (permalink / raw)
  To: Avi Kivity; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

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

From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Date: Mon, 24 Dec 2007 14:06:31 +0800
Subject: [PATCH] kvm: qemu/ia64: guest with > 3G memory fix.

This patch fix boot issue with >3G memory. Currently, set
TARGET_PHYS_ADDR_SPACE_BITS to 36 bits, and safely support
<64G memory for guests.
Signed-off-by: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
 qemu/exec.c   |    2 ++
 qemu/hw/ipf.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/qemu/exec.c b/qemu/exec.c
index 69adc5e..de73fde 100644
--- a/qemu/exec.c
+++ b/qemu/exec.c
@@ -81,6 +81,8 @@
 #define TARGET_PHYS_ADDR_SPACE_BITS 32
 #elif TARGET_X86_64
 #define TARGET_PHYS_ADDR_SPACE_BITS 42
+#elif defined(TARGET_IA64)
+#define TARGET_PHYS_ADDR_SPACE_BITS 36
 #else
 #define TARGET_PHYS_ADDR_SPACE_BITS 32
 #endif
diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 9c74531..88a897d 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -443,7 +443,7 @@ static void ipf_init1(ram_addr_t ram_size, int
vga_ram_size,
 		free(image);
 		flush_icache_range((unsigned long)fw_image_start,
 			(unsigned long)fw_image_start + image_size);
-		kvm_ia64_build_hob(ram_size, smp_cpus, fw_start);
+		kvm_ia64_build_hob(ram_size + above_4g_mem_size,
smp_cpus, fw_start);
 	}
 #endif
 
-- 
1.5.2

[-- Attachment #2: 0002-kvm-qemu-ia64-guest-with-3G-memory-fix.patch --]
[-- Type: application/octet-stream, Size: 1328 bytes --]

From c12f7299b5d1367b4647a506f6b1f9dfe5abf7c9 Mon Sep 17 00:00:00 2001
From: Zhang Xiantao <xiantao.zhang@intel.com>
Date: Mon, 24 Dec 2007 14:06:31 +0800
Subject: [PATCH] kvm: qemu/ia64: guest with > 3G memory fix.

This patch fix boot issue with >3G memory. Currently, set
TARGET_PHYS_ADDR_SPACE_BITS to 36 bits, and safely support
<64G memory for guests.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
---
 qemu/exec.c   |    2 ++
 qemu/hw/ipf.c |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/qemu/exec.c b/qemu/exec.c
index 69adc5e..de73fde 100644
--- a/qemu/exec.c
+++ b/qemu/exec.c
@@ -81,6 +81,8 @@
 #define TARGET_PHYS_ADDR_SPACE_BITS 32
 #elif TARGET_X86_64
 #define TARGET_PHYS_ADDR_SPACE_BITS 42
+#elif defined(TARGET_IA64)
+#define TARGET_PHYS_ADDR_SPACE_BITS 36
 #else
 #define TARGET_PHYS_ADDR_SPACE_BITS 32
 #endif
diff --git a/qemu/hw/ipf.c b/qemu/hw/ipf.c
index 9c74531..88a897d 100644
--- a/qemu/hw/ipf.c
+++ b/qemu/hw/ipf.c
@@ -443,7 +443,7 @@ static void ipf_init1(ram_addr_t ram_size, int vga_ram_size,
 		free(image);
 		flush_icache_range((unsigned long)fw_image_start,
 			(unsigned long)fw_image_start + image_size);
-		kvm_ia64_build_hob(ram_size, smp_cpus, fw_start);
+		kvm_ia64_build_hob(ram_size + above_4g_mem_size, smp_cpus, fw_start);
 	}
 #endif
 
-- 
1.5.2


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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 186 bytes --]

_______________________________________________
kvm-devel mailing list
kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/kvm-devel

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

* Re: [PATCH] Add support >3G memory for ia64 guests.
       [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB56A64-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2007-12-24  7:03   ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2007-12-24  7:03 UTC (permalink / raw)
  To: Zhang, Xiantao; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

Zhang, Xiantao wrote:
> From: Zhang Xiantao <xiantao.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
> Date: Mon, 24 Dec 2007 14:06:31 +0800
> Subject: [PATCH] kvm: qemu/ia64: guest with > 3G memory fix.
>
> This patch fix boot issue with >3G memory. Currently, set
> TARGET_PHYS_ADDR_SPACE_BITS to 36 bits, and safely support
> <64G memory for guests.
>   
Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

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

end of thread, other threads:[~2007-12-24  7:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-24  6:16 [PATCH] Add support >3G memory for ia64 guests Zhang, Xiantao
     [not found] ` <42DFA526FC41B1429CE7279EF83C6BDCB56A64-wq7ZOvIWXbMAbVU2wMM1CrfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2007-12-24  7:03   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox