]> git.proxmox.com Git - pve-qemu-kvm.git/blame - debian/patches-0.12.1/enable-ksm.diff
bump version to 2.9.0-1~rc2+5
[pve-qemu-kvm.git] / debian / patches-0.12.1 / enable-ksm.diff
CommitLineData
4676c0af
DM
1From: Izik Eidus <ieidus@redhat.com>
2Date: Thu, 8 Oct 2009 14:39:39 +0000 (+0200)
3Subject: ksm support
4X-Git-Url: http://git.kernel.org/?p=virt%2Fkvm%2Fqemu-kvm.git;a=commitdiff_plain;h=ccb167e9d7d460a7cd09fdabd848efd3606dd27e
5
6ksm support
7
8patch is slighly modified by <support@proxmox.com> for old libc
9
10Call MADV_MERGEABLE on guest memory allocations. MADV_MERGABLE will be
11available starting in Linux 2.6.32. This system call registers a region of
12virtual address space with Linux as a candidate for transparent memory
13sharing.
14
15Patchworks-ID: 35447
16Signed-off-by: Izik Eidus <ieidus@redhat.com>
17Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
18---
19
20Index: qemu-kvm/exec.c
21===================================================================
22--- qemu-kvm.orig/exec.c 2009-12-21 10:37:57.000000000 +0100
23+++ qemu-kvm/exec.c 2009-12-21 11:22:34.000000000 +0100
24@@ -48,6 +48,9 @@
25 #include <qemu.h>
26 #endif
27
28+/* our libc does not define it */
29+#define MADV_MERGEABLE 12
30+
31 //#define DEBUG_TB_INVALIDATE
32 //#define DEBUG_FLUSH
33 //#define DEBUG_TLB