From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] kvm-kmod: fix build on kernels with kvm trace set Date: Mon, 04 May 2009 12:24:24 +0300 Message-ID: <49FEB448.4000605@redhat.com> References: <20090428122226.GA6777@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: "Michael S. Tsirkin" Return-path: Received: from mx2.redhat.com ([66.187.237.31]:57612 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751238AbZEDJY6 (ORCPT ); Mon, 4 May 2009 05:24:58 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n449Ox9T003740 for ; Mon, 4 May 2009 05:24:59 -0400 In-Reply-To: <20090428122226.GA6777@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Michael S. Tsirkin wrote: > CONFIG_KVM_TRACE in kernel conflicts with the definition > in external module. external-module-compat-comm.h tried > to work around this, but this didn't work as some > code still does #include > directly. > > Solve this differently by s/CONFIG_KVM_TRACE/CONFIG_KMOD_KVM_TRACE/ > in awk. Had to tighten regular expressions in hack-module.awk > so that they don't trigger on kvm_host.h . > Applied, thanks. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.