From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NxkCO-0006vq-87 for qemu-devel@nongnu.org; Fri, 02 Apr 2010 12:58:24 -0400 Received: from [140.186.70.92] (port=43534 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NxkCG-0006tK-2u for qemu-devel@nongnu.org; Fri, 02 Apr 2010 12:58:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NxkBt-0000Hc-UQ for qemu-devel@nongnu.org; Fri, 02 Apr 2010 12:57:55 -0400 Received: from mail-pv0-f173.google.com ([74.125.83.173]:41795) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NxkBt-0000HM-Ps for qemu-devel@nongnu.org; Fri, 02 Apr 2010 12:57:53 -0400 Received: by pvc21 with SMTP id 21so939852pvc.4 for ; Fri, 02 Apr 2010 09:57:52 -0700 (PDT) Message-ID: <4BB6220D.7050902@codemonkey.ws> Date: Fri, 02 Apr 2010 11:57:49 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <4BB61A74.9080304@codemonkey.ws> <4BB61FB7.5040509@redhat.com> In-Reply-To: <4BB61FB7.5040509@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/2] Make kvm_enabled unavailable to non-target devices List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Blue Swirl , qemu-devel On 04/02/2010 11:47 AM, Paolo Bonzini wrote: > >>>> +#pragma GCC poison kvm_allowed >>>> +#pragma GCC poison kvm_enabled >>> >>> kvm_enabled() is a macro. I dont' think this poison pragma is >>> actually >>> meaningful. >> >> I'm not familiar with poison pragmas, but actually poisoning only >> kvm_allowed didn't work. > > Indeed, macro expansions are explicitly allowed to use poisoned > identifiers (and on the contrary macro names count towards poisoning > errors). > > IMO kvm_allowed should be left unpoisoned. Interesting, thanks. Regards, Anthony Liguori > Paolo