Skip to contentSkip to conversation

ensure 4kB page alignment

PATCH New Jerone Young 1 participant 2 messages Jan 18, 2008 – Jan 25, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ensure 4kB page alignment

# HG changeset patch
# User Christian Ehrhardt <[email protected]>
# Date 1200692014 21600
# Node ID 0edd55ea28332ab4dd60ca6034d9fe391f6f0131
# Parent fcd4cac3f4228c3e0dfdc88c8777a3d12145efb9
[PATCH] ensure 4kB page alignment for embedded powerpc when using kvm

Subject: [PATCH] ensure 4kB page alignment for embedded powerpc when using kvm
From: Hollis Blanchard <[email protected]>
From: Christian Ehrhardt <[email protected]>

We need 4kB aligned pages when using qemu together with kvm for embedded powerpc. Qemu already had a similar issue when CONFIG_USER_ONLY was set so this patch adds just one more condition to the existing ifdef.

---
 cpu.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
qemu/target-ppc/cpu.h +2 -1
@@ -50,9 +50,10 @@ typedef uint32_t ppc_gpr_t;
 /* Specific definitions for PowerPC embedded */
 /* BookE have 36 bits physical address space */
 #define TARGET_PHYS_ADDR_BITS 64
-#if defined(CONFIG_USER_ONLY)
+#if defined(CONFIG_USER_ONLY) || defined(USE_KVM)
 /* It looks like a lot of Linux programs assume page size
  * is 4kB long. This is evil, but we have to deal with it...
+ * Also kvm for embedded powerpc needs (atm) 4kB aligned pages
  */
 #define TARGET_PAGE_BITS 12
 #else /* defined(CONFIG_USER_ONLY) */

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel

#1 lore raw

PATCH 1/1 ensure 4kB page alignment

# HG changeset patch
# User Christian Ehrhardt <[email protected]>
# Date 1201288297 21600
# Node ID 816392b65c12c8fee94f872474eba00a5694267f
# Parent e8c6f72ac5410ec25ada6157d5e13f7f673e2fa8
[PATCH] ensure 4kB page alignment for embedded powerpc when using kvm

Subject: [PATCH] ensure 4kB page alignment for embedded powerpc when using kvm
From: Hollis Blanchard <[email protected]>
From: Christian Ehrhardt <[email protected]>

We need 4kB aligned pages when using qemu together with kvm for embedded powerpc. Qemu already had a similar issue when CONFIG_USER_ONLY was set so this patch adds just one more condition to the existing ifdef.

---
 cpu.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)
qemu/target-ppc/cpu.h +2 -1
@@ -50,9 +50,10 @@ typedef uint32_t ppc_gpr_t;
 /* Specific definitions for PowerPC embedded */
 /* BookE have 36 bits physical address space */
 #define TARGET_PHYS_ADDR_BITS 64
-#if defined(CONFIG_USER_ONLY)
+#if defined(CONFIG_USER_ONLY) || defined(USE_KVM)
 /* It looks like a lot of Linux programs assume page size
  * is 4kB long. This is evil, but we have to deal with it...
+ * Also kvm for embedded powerpc needs (atm) 4kB aligned pages
  */
 #define TARGET_PAGE_BITS 12
 #else /* defined(CONFIG_USER_ONLY) */

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-ppc-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-ppc-devel