kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* kvm userspace: ksm support
@ 2009-07-28 16:39 Izik Eidus
  2009-07-28 16:41 ` Anthony Liguori
  2009-08-03 18:08 ` Brian Jackson
  0 siblings, 2 replies; 11+ messages in thread
From: Izik Eidus @ 2009-07-28 16:39 UTC (permalink / raw)
  To: kvm, Justin M. Forbes, Mark McLoughlin

This patch is not for inclusion just rfc.

Thanks.


>From 1297b86aa257100b3d819df9f9f0932bf4f7f49d Mon Sep 17 00:00:00 2001
From: Izik Eidus <ieidus@redhat.com>
Date: Tue, 28 Jul 2009 19:14:26 +0300
Subject: [PATCH] kvm userspace: ksm support

rfc for ksm support to kvm userpsace.

thanks

Signed-off-by: Izik Eidus <ieidus@redhat.com>
---
 exec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/exec.c b/exec.c
index f6d9ec9..375cc18 100644
--- a/exec.c
+++ b/exec.c
@@ -2595,6 +2595,9 @@ ram_addr_t qemu_ram_alloc(ram_addr_t size)
     new_block->host = file_ram_alloc(size, mem_path);
     if (!new_block->host) {
         new_block->host = qemu_vmalloc(size);
+#ifdef MADV_MERGEABLE
+        madvise(new_block->host, size, MADV_MERGEABLE);
+#endif
     }
     new_block->offset = last_ram_offset;
     new_block->length = size;
-- 
1.5.6.5


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

end of thread, other threads:[~2009-08-05 18:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-28 16:39 kvm userspace: ksm support Izik Eidus
2009-07-28 16:41 ` Anthony Liguori
2009-07-28 16:50   ` Izik Eidus
2009-07-29  1:27     ` Anthony Liguori
2009-07-29  8:51       ` Jan Kiszka
2009-07-29  9:30       ` Avi Kivity
2009-08-03 18:08 ` Brian Jackson
2009-08-03 18:09   ` Izik Eidus
2009-08-03 18:37     ` Brian Jackson
2009-08-03 19:04       ` Izik Eidus
2009-08-05 18:38         ` Brian Jackson

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).