qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Re: [PATCH 2/2] Make kvm_enabled unavailable to non-target


From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 2/2] Make kvm_enabled unavailable to non-target devices
Date: Fri, 02 Apr 2010 11:57:49 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.5) Gecko/20091209 Fedora/3.0-4.fc12 Lightning/1.0pre Thunderbird/3.0

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]