From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC][PATCH] Import Linux headers for KVM and vhost Date: Tue, 3 May 2011 17:41:27 +0200 Message-ID: <201105031741.27638.arnd@arndb.de> References: <4DC00BB1.7000008@siemens.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , kvm , Marcelo Tosatti , Alexander Graf , qemu-devel , Avi Kivity To: Jan Kiszka Return-path: In-Reply-To: <4DC00BB1.7000008@siemens.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org List-Id: kvm.vger.kernel.org On Tuesday 03 May 2011, Jan Kiszka wrote: > This helps reducing our build-time checks for feature support in the > available Linux kernel headers. And it helps users that do not have > sufficiently recent headers installed on their build machine. > > Header upstate is triggered via 'make update-linux-headers', optionally > specifying a kernel directory as source via 'LINUX='. > > --- > > I'm sure this is not yet perfect from technical POV (e.g. the patch to > Makefile.target looks like a hack to me, better ideas welcome), > therefore RFC and no SOB. But it should demonstrate the plan. The > workflow for adding a new KVM feature support would be first a 'make > update-linux-header LINUX=/my/local/linux' + git commit, and then the > commit of the kvm, vhost, whatever changes. > > Makefile | 17 +++++++ > Makefile.target | 2 +- > configure | 127 ++++++++----------------------------------------------- > 3 files changed, 36 insertions(+), 110 deletions(-) Very nice! The old way to poke into the kernel internals was really annoying and confusing. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:43649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHHjC-0005LN-VA for qemu-devel@nongnu.org; Tue, 03 May 2011 11:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHHjC-0002MR-12 for qemu-devel@nongnu.org; Tue, 03 May 2011 11:41:34 -0400 Received: from moutng.kundenserver.de ([212.227.17.10]:50034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHHjB-0002MD-KS for qemu-devel@nongnu.org; Tue, 03 May 2011 11:41:33 -0400 From: Arnd Bergmann Date: Tue, 3 May 2011 17:41:27 +0200 References: <4DC00BB1.7000008@siemens.com> In-Reply-To: <4DC00BB1.7000008@siemens.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201105031741.27638.arnd@arndb.de> Subject: Re: [Qemu-devel] [RFC][PATCH] Import Linux headers for KVM and vhost List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , kvm , Marcelo Tosatti , Alexander Graf , qemu-devel , Avi Kivity On Tuesday 03 May 2011, Jan Kiszka wrote: > This helps reducing our build-time checks for feature support in the > available Linux kernel headers. And it helps users that do not have > sufficiently recent headers installed on their build machine. > > Header upstate is triggered via 'make update-linux-headers', optionally > specifying a kernel directory as source via 'LINUX='. > > --- > > I'm sure this is not yet perfect from technical POV (e.g. the patch to > Makefile.target looks like a hack to me, better ideas welcome), > therefore RFC and no SOB. But it should demonstrate the plan. The > workflow for adding a new KVM feature support would be first a 'make > update-linux-header LINUX=/my/local/linux' + git commit, and then the > commit of the kvm, vhost, whatever changes. > > Makefile | 17 +++++++ > Makefile.target | 2 +- > configure | 127 ++++++++----------------------------------------------- > 3 files changed, 36 insertions(+), 110 deletions(-) Very nice! The old way to poke into the kernel internals was really annoying and confusing. Arnd