qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] kvm: align ram_size to page boundary
@ 2012-06-17  8:47 Avi Kivity
  2012-06-17 11:03 ` Jan Kiszka
  0 siblings, 1 reply; 11+ messages in thread
From: Avi Kivity @ 2012-06-17  8:47 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: Michael Tokarev, qemu-devel, kvm

kvm is not able to execute out of partial pages; align the RAM size
so partial pages aren't present.

Reported-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Avi Kivity <avi@redhat.com>
---
 kvm-all.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/kvm-all.c b/kvm-all.c
index 4ea7d85..482768f 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -1311,6 +1311,8 @@ int kvm_init(void)
 
     cpu_interrupt_handler = kvm_handle_interrupt;
 
+    ram_size = TARGET_PAGE_ALIGN(ram_size);
+
     return 0;
 
 err:
-- 
1.7.10.1

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

end of thread, other threads:[~2012-07-06 18:50 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-17  8:47 [Qemu-devel] [PATCH] kvm: align ram_size to page boundary Avi Kivity
2012-06-17 11:03 ` Jan Kiszka
2012-06-17 11:30   ` Avi Kivity
2012-06-17 11:47     ` Jan Kiszka
2012-06-17 11:51       ` Avi Kivity
2012-06-17 12:43         ` Blue Swirl
2012-06-17 12:48           ` Peter Maydell
2012-06-17 12:54           ` Avi Kivity
2012-06-17 13:06             ` Blue Swirl
2012-06-17 13:14               ` Avi Kivity
2012-07-06 18:50                 ` Michael Tokarev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).