Received: from [140.186.70.92] (port=34973 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQcpu-0000iB-Gi for qemu-devel@nongnu.org; Thu, 09 Dec 2010 04:30:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQcps-0005fO-OW for qemu-devel@nongnu.org; Thu, 09 Dec 2010 04:30:50 -0500 Received: from adelie.canonical.com ([91.189.90.139]:55594) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQcps-0005f5-FV for qemu-devel@nongnu.org; Thu, 09 Dec 2010 04:30:48 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PQcpr-0003j9-VZ for ; Thu, 09 Dec 2010 09:30:48 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id ED8A22E8433 for ; Thu, 9 Dec 2010 09:30:47 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Thu, 09 Dec 2010 09:22:36 -0000 From: Walter Haidinger <687733@bugs.launchpad.net> Sender: bounces@canonical.com References: <20101209091826.2300.1557.malonedeb@potassium.ubuntu.com> Message-Id: <20101209092236.24382.13382.malone@soybean.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 687733] Re: Linux KSM not compiled in (MADV_MERGEABLE always undef) Reply-To: Bug 687733 <687733@bugs.launchpad.net> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org To clarify: custom kernel =3D=3D vanilla Linux kernel, i.e. not distribution kernel. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/687733 Title: Linux KSM not compiled in (MADV_MERGEABLE always undef) Status in QEMU: New Bug description: Linux KSM support is not enabled because MADV_MERGEABLE remains undefined. It seems that asm-generic/mman-common.h is not included. Maybe some kind of= header dependency problem? Adding = #include to exec.c of qemu-kvm-0.13.0 enables use of KSM and values change in /sys/k= ernel/mm/ksm/. Tested under CentOS 5.5 with custom kernel 2.6.32.26 and OpenSUSE 11.2 with= custom kernel 2.6.36.1, both x86_64 platform. Please note that I configure with--kerneldir=3D/lib/modules/2.6.../build an= d even --extra-cflags=3D"-I/lib/modules/2.6.../build/include".