diff options
author | Avi Kivity <avi@redhat.com> | 2009-01-19 07:57:52 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-03-24 05:03:06 -0400 |
commit | 91b2ae773d3b168b763237fac33f75b13d891f20 (patch) | |
tree | 739ec0a4debd058277493707c8ebf6226dbe41a3 /include/linux/kvm.h | |
parent | 399ec807ddc38ecccf8c06dbde04531cbdc63e11 (diff) |
KVM: Avoid using CONFIG_ in userspace visible headers
Kconfig symbols are not available in userspace, and are not stripped by
headers-install. Avoid their use by adding #defines in <asm/kvm.h> to
suit each architecture.
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index 7a5d73a8d4fa..869462ca7625 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -393,13 +393,13 @@ struct kvm_trace_rec { | |||
393 | #ifdef __KVM_HAVE_USER_NMI | 393 | #ifdef __KVM_HAVE_USER_NMI |
394 | #define KVM_CAP_USER_NMI 22 | 394 | #define KVM_CAP_USER_NMI 22 |
395 | #endif | 395 | #endif |
396 | #if defined(CONFIG_X86) | 396 | #ifdef __KVM_HAVE_GUEST_DEBUG |
397 | #define KVM_CAP_SET_GUEST_DEBUG 23 | 397 | #define KVM_CAP_SET_GUEST_DEBUG 23 |
398 | #endif | 398 | #endif |
399 | #if defined(CONFIG_X86) | 399 | #ifdef __KVM_HAVE_PIT |
400 | #define KVM_CAP_REINJECT_CONTROL 24 | 400 | #define KVM_CAP_REINJECT_CONTROL 24 |
401 | #endif | 401 | #endif |
402 | #if defined(CONFIG_X86)||defined(CONFIG_IA64) | 402 | #ifdef __KVM_HAVE_IOAPIC |
403 | #define KVM_CAP_IRQ_ROUTING 25 | 403 | #define KVM_CAP_IRQ_ROUTING 25 |
404 | #endif | 404 | #endif |
405 | 405 | ||