aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-01-19 14:57:52 +0200
committerAvi Kivity <avi@redhat.com>2009-02-15 02:47:35 +0200
commit7a0eb1960e8ddcb68ea631caf16815485af0e228 (patch)
tree0614c3c2265ed02072a082dea68a86e31f71dd7f /arch/x86/include/asm/kvm.h
parentd39123a486524fed9b4e43e08a8757fd90a5859a (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 'arch/x86/include/asm/kvm.h')
-rw-r--r--arch/x86/include/asm/kvm.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm.h b/arch/x86/include/asm/kvm.h
index d2e3bf3608a..886c9402ec4 100644
--- a/arch/x86/include/asm/kvm.h
+++ b/arch/x86/include/asm/kvm.h
@@ -9,6 +9,13 @@
#include <linux/types.h>
#include <linux/ioctl.h>
+/* Select x86 specific features in <linux/kvm.h> */
+#define __KVM_HAVE_PIT
+#define __KVM_HAVE_IOAPIC
+#define __KVM_HAVE_DEVICE_ASSIGNMENT
+#define __KVM_HAVE_MSI
+#define __KVM_HAVE_USER_NMI
+
/* Architectural interrupt line count. */
#define KVM_NR_INTERRUPTS 256