aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2014-08-26 08:00:38 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-08-29 07:47:05 -0400
commit44b5ce73c99c389817be71b9161bceb197d40ecb (patch)
tree3d56a9ee276f6b2fc1fd3e2dd5e93e7fbf824078
parent0f8a4de3e088797576ac76200b634b802e5c7781 (diff)
KVM: Unconditionally export KVM_CAP_USER_NMI
The idea between capabilities and the KVM_CHECK_EXTENSION ioctl is that userspace can, at run-time, determine if a feature is supported or not. This allows KVM to being supporting a new feature with a new kernel version without any need to update user space. Unfortunately, since the definition of KVM_CAP_USER_NMI was guarded by #ifdef __KVM_HAVE_USER_NMI, such discovery still required a user space update. Therefore, unconditionally export KVM_CAP_USER_NMI and change the the typo in the comment for the IOCTL number definition as well. Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
-rw-r--r--include/uapi/linux/kvm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 90d3edab839c..0695a1e3e332 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -654,9 +654,7 @@ struct kvm_ppc_smmu_info {
654#endif 654#endif
655/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ 655/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */
656#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 656#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21
657#ifdef __KVM_HAVE_USER_NMI
658#define KVM_CAP_USER_NMI 22 657#define KVM_CAP_USER_NMI 22
659#endif
660#ifdef __KVM_HAVE_GUEST_DEBUG 658#ifdef __KVM_HAVE_GUEST_DEBUG
661#define KVM_CAP_SET_GUEST_DEBUG 23 659#define KVM_CAP_SET_GUEST_DEBUG 23
662#endif 660#endif
@@ -1091,7 +1089,7 @@ struct kvm_s390_ucas_mapping {
1091#define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) 1089#define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97)
1092#define KVM_GET_MP_STATE _IOR(KVMIO, 0x98, struct kvm_mp_state) 1090#define KVM_GET_MP_STATE _IOR(KVMIO, 0x98, struct kvm_mp_state)
1093#define KVM_SET_MP_STATE _IOW(KVMIO, 0x99, struct kvm_mp_state) 1091#define KVM_SET_MP_STATE _IOW(KVMIO, 0x99, struct kvm_mp_state)
1094/* Available with KVM_CAP_NMI */ 1092/* Available with KVM_CAP_USER_NMI */
1095#define KVM_NMI _IO(KVMIO, 0x9a) 1093#define KVM_NMI _IO(KVMIO, 0x9a)
1096/* Available with KVM_CAP_SET_GUEST_DEBUG */ 1094/* Available with KVM_CAP_SET_GUEST_DEBUG */
1097#define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct kvm_guest_debug) 1095#define KVM_SET_GUEST_DEBUG _IOW(KVMIO, 0x9b, struct kvm_guest_debug)