mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
399ec807dd
commit
91b2ae773d
2 changed files with 4 additions and 3 deletions
|
@ -15,6 +15,7 @@
|
||||||
#define __KVM_HAVE_DEVICE_ASSIGNMENT
|
#define __KVM_HAVE_DEVICE_ASSIGNMENT
|
||||||
#define __KVM_HAVE_MSI
|
#define __KVM_HAVE_MSI
|
||||||
#define __KVM_HAVE_USER_NMI
|
#define __KVM_HAVE_USER_NMI
|
||||||
|
#define __KVM_HAVE_GUEST_DEBUG
|
||||||
|
|
||||||
/* Architectural interrupt line count. */
|
/* Architectural interrupt line count. */
|
||||||
#define KVM_NR_INTERRUPTS 256
|
#define KVM_NR_INTERRUPTS 256
|
||||||
|
|
|
@ -393,13 +393,13 @@ struct kvm_trace_rec {
|
||||||
#ifdef __KVM_HAVE_USER_NMI
|
#ifdef __KVM_HAVE_USER_NMI
|
||||||
#define KVM_CAP_USER_NMI 22
|
#define KVM_CAP_USER_NMI 22
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_X86)
|
#ifdef __KVM_HAVE_GUEST_DEBUG
|
||||||
#define KVM_CAP_SET_GUEST_DEBUG 23
|
#define KVM_CAP_SET_GUEST_DEBUG 23
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_X86)
|
#ifdef __KVM_HAVE_PIT
|
||||||
#define KVM_CAP_REINJECT_CONTROL 24
|
#define KVM_CAP_REINJECT_CONTROL 24
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_X86)||defined(CONFIG_IA64)
|
#ifdef __KVM_HAVE_IOAPIC
|
||||||
#define KVM_CAP_IRQ_ROUTING 25
|
#define KVM_CAP_IRQ_ROUTING 25
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue