From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0yEA-0005DX-Gj for qemu-devel@nongnu.org; Mon, 04 May 2009 09:29:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0yE5-0005CC-CV for qemu-devel@nongnu.org; Mon, 04 May 2009 09:29:01 -0400 Received: from [199.232.76.173] (port=43972 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0yE5-0005C4-66 for qemu-devel@nongnu.org; Mon, 04 May 2009 09:28:57 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0yE4-0005qu-JP for qemu-devel@nongnu.org; Mon, 04 May 2009 09:28:56 -0400 Message-ID: <49FEED70.7020606@redhat.com> Date: Mon, 04 May 2009 16:28:16 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] [RFC] Bring in all the Linux headers we depend on in QEMU References: <49FE0E97.30602@codemonkey.ws> <49FE9069.7010201@mail.berlios.de> <49FEE9EC.6060604@codemonkey.ws> In-Reply-To: <49FEE9EC.6060604@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: "qemu-devel@nongnu.org" , kvm-devel Anthony Liguori wrote: > Stefan Weil wrote: >> Anthony Liguori schrieb: >> >> For Debian systems, those headers are installed by package >> linux-libc-dev. >> There are also packages for cross compilation in emdebian >> (linux-libc-dev-mips-cross, linux-libc-dev-powerpc-cross, ...). >> >> Yes, those headers did not always match the features of the current >> kernel, >> so --enable-kvm did not work. This is fixed now - there is a >> linux-libc-dev >> 2.6.29-3 which is up-to-date. >> >> So, at the moment I see no need to fill the QEMU source tree with >> linux header files. >> > > We can not just rely on everyone who uses QEMU to use the latest > version of Debian... > > The fact is, linux-libc-dev is *not* meant for applications to use as > the official kernel ABI. We shouldn't depend on it. At least on Fedora, kernel-headers is. It is installed in /usr/include/linux and is synced (sorta) to the installed kernel. Carrying a subset of kernel headers is a bit too much, IMO. kvm is a special case since it is available externally. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.