Received: from [140.186.70.92] (port=32829 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR4OI-0007ZJ-Fc for qemu-devel@nongnu.org; Fri, 10 Dec 2010 09:56:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PR4OH-0002S7-9p for qemu-devel@nongnu.org; Fri, 10 Dec 2010 09:56:10 -0500 Received: from adelie.canonical.com ([91.189.90.139]:44212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PR4OH-0002Rr-5i for qemu-devel@nongnu.org; Fri, 10 Dec 2010 09:56:09 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by adelie.canonical.com with esmtp (Exim 4.69 #1 (Debian)) id 1PR4OD-00089V-NU for ; Fri, 10 Dec 2010 14:56:06 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id C0AA32E848A for ; Fri, 10 Dec 2010 14:55:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Fri, 10 Dec 2010 14:48:34 -0000 From: Paul Brook <687733@bugs.launchpad.net> Sender: bounces@canonical.com References: <20101209091826.2300.1557.malonedeb@potassium.ubuntu.com> Message-Id: <20101210144834.31937.47775.malone@wampee.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 Not a qemu bug. madvise and (associated constants via sys/mman.h) are supplied by glibc. You need to update your C library. ** Changed in: qemu Status: New =3D> Invalid -- = 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: Invalid 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".