From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [Qemu-devel] [PATCH v2] Import Linux headers for KVM and vhost Date: Tue, 3 May 2011 21:26:52 +0200 Message-ID: <201105032126.53163.arnd@arndb.de> References: <4DC00BB1.7000008@siemens.com> <20110503173200.GA30864@laped.lan> <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: "Edgar E. Iglesias" , Avi Kivity , Jan Kiszka , Anthony Liguori , Marcelo Tosatti , "qemu-devel" , kvm , Alexander Graf To: Scott Wood Return-path: Received: from moutng.kundenserver.de ([212.227.17.8]:54822 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754508Ab1ECT1E (ORCPT ); Tue, 3 May 2011 15:27:04 -0400 In-Reply-To: <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> Sender: kvm-owner@vger.kernel.org List-ID: On Tuesday 03 May 2011 19:57:18 Scott Wood wrote: > > I agree, it doesn't feel quite right to bring in the headers. I don't have > > any alternative suggestions (besides better HOWTOs/Documentation) though. > > If you try to use the non-sanitized kernel headers, you'll get this warning > from linux/types.h: > > #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" > You're welcome ;-) I tried to make the recommended approach as clear as I could with the #warning and the wiki page. If there is anything still unclear about how it should be done, please make suggestions for improving the wiki text. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:49649) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHLFU-0002Yo-TP for qemu-devel@nongnu.org; Tue, 03 May 2011 15:27:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHLFT-0002GW-O8 for qemu-devel@nongnu.org; Tue, 03 May 2011 15:27:08 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:54294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHLFS-0002GI-Pg for qemu-devel@nongnu.org; Tue, 03 May 2011 15:27:07 -0400 From: Arnd Bergmann Date: Tue, 3 May 2011 21:26:52 +0200 References: <4DC00BB1.7000008@siemens.com> <20110503173200.GA30864@laped.lan> <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> In-Reply-To: <20110503125718.3e95f9ba@schlenkerla.am.freescale.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201105032126.53163.arnd@arndb.de> Subject: Re: [Qemu-devel] [PATCH v2] Import Linux headers for KVM and vhost List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Wood Cc: Anthony Liguori , kvm , Jan Kiszka , Marcelo Tosatti , qemu-devel , Alexander Graf , Avi Kivity , "Edgar E. Iglesias" On Tuesday 03 May 2011 19:57:18 Scott Wood wrote: > > I agree, it doesn't feel quite right to bring in the headers. I don't have > > any alternative suggestions (besides better HOWTOs/Documentation) though. > > If you try to use the non-sanitized kernel headers, you'll get this warning > from linux/types.h: > > #warning "Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" > You're welcome ;-) I tried to make the recommended approach as clear as I could with the #warning and the wiki page. If there is anything still unclear about how it should be done, please make suggestions for improving the wiki text. Arnd