17 Jun 2012 10:47
[PATCH] kvm: align ram_size to page boundary
Avi Kivity <avi <at> redhat.com>
2012-06-17 08:47:11 GMT
2012-06-17 08:47:11 GMT
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 <at> tls.msk.ru>
Signed-off-by: Avi Kivity <avi <at> 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
<at> <at> -1311,6 +1311,8 <at> <at> int kvm_init(void)
cpu_interrupt_handler = kvm_handle_interrupt;
+ ram_size = TARGET_PAGE_ALIGN(ram_size);
+
return 0;
err:
--
--
1.7.10.1
> Maybe strtosz() should just enforce 1MB granularity.
That seems even more random a restriction than whole-page requirements.
-- PMM
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo <at> vger.kernel.org
More majordomo info at
RSS Feed