remove debug output from x86 LAPIC patch
[pve-qemu-kvm.git] / debian / patches-0.12.1 / enable-ksm.diff
blob3ecd434fc5c7195d5e6622a9f60a512b7ed63658
1 From: Izik Eidus <ieidus@redhat.com>
2 Date: Thu, 8 Oct 2009 14:39:39 +0000 (+0200)
3 Subject: ksm support
4 X-Git-Url: http://git.kernel.org/?p=virt%2Fkvm%2Fqemu-kvm.git;a=commitdiff_plain;h=ccb167e9d7d460a7cd09fdabd848efd3606dd27e
6 ksm support
8 patch is slighly modified by <support@proxmox.com> for old libc
10 Call MADV_MERGEABLE on guest memory allocations. MADV_MERGABLE will be
11 available starting in Linux 2.6.32. This system call registers a region of
12 virtual address space with Linux as a candidate for transparent memory
13 sharing.
15 Patchworks-ID: 35447
16 Signed-off-by: Izik Eidus <ieidus@redhat.com>
17 Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
18 ---
20 Index: 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
28 +/* our libc does not define it */
29 +#define MADV_MERGEABLE 12
31 //#define DEBUG_TB_INVALIDATE
32 //#define DEBUG_FLUSH
33 //#define DEBUG_TLB