aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2014-10-12 04:34:00 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-11-03 06:07:29 -0500
commit7f05db6a20fe4d85bada20d365c78029831b9de1 (patch)
tree272fdd1aaf66d301c594eb92b4db2ba970fcc935 /include/uapi
parent1e0ad70cc1957b9050368e433b1061a2cd1ce543 (diff)
kvm: drop unsupported capabilities, fix documentation
No kernel ever reported KVM_CAP_DEVICE_MSIX, KVM_CAP_DEVICE_MSI, KVM_CAP_DEVICE_ASSIGNMENT, KVM_CAP_DEVICE_DEASSIGNMENT. This makes the documentation wrong, and no application ever written to use these capabilities has a chance to work correctly. The only way to detect support is to try, and test errno for ENOTTY. That's unfortunate, but we can't fix the past. Document the actual semantics, and drop the definitions from the exported header to make it easier for application developers to note and fix the bug. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/kvm.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index 60768822b140..6d59e5b39c9c 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -647,11 +647,7 @@ struct kvm_ppc_smmu_info {
647#define KVM_CAP_MP_STATE 14 647#define KVM_CAP_MP_STATE 14
648#define KVM_CAP_COALESCED_MMIO 15 648#define KVM_CAP_COALESCED_MMIO 15
649#define KVM_CAP_SYNC_MMU 16 /* Changes to host mmap are reflected in guest */ 649#define KVM_CAP_SYNC_MMU 16 /* Changes to host mmap are reflected in guest */
650#define KVM_CAP_DEVICE_ASSIGNMENT 17
651#define KVM_CAP_IOMMU 18 650#define KVM_CAP_IOMMU 18
652#ifdef __KVM_HAVE_MSI
653#define KVM_CAP_DEVICE_MSI 20
654#endif
655/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ 651/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */
656#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 652#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21
657#define KVM_CAP_USER_NMI 22 653#define KVM_CAP_USER_NMI 22
@@ -663,10 +659,6 @@ struct kvm_ppc_smmu_info {
663#endif 659#endif
664#define KVM_CAP_IRQ_ROUTING 25 660#define KVM_CAP_IRQ_ROUTING 25
665#define KVM_CAP_IRQ_INJECT_STATUS 26 661#define KVM_CAP_IRQ_INJECT_STATUS 26
666#define KVM_CAP_DEVICE_DEASSIGNMENT 27
667#ifdef __KVM_HAVE_MSIX
668#define KVM_CAP_DEVICE_MSIX 28
669#endif
670#define KVM_CAP_ASSIGN_DEV_IRQ 29 662#define KVM_CAP_ASSIGN_DEV_IRQ 29
671/* Another bug in KVM_SET_USER_MEMORY_REGION fixed: */ 663/* Another bug in KVM_SET_USER_MEMORY_REGION fixed: */
672#define KVM_CAP_JOIN_MEMORY_REGIONS_WORKS 30 664#define KVM_CAP_JOIN_MEMORY_REGIONS_WORKS 30