diff options
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r-- | include/uapi/linux/kvm.h | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index 0a6d6ba44c85..e6e5d4b13708 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
@@ -167,10 +167,15 @@ struct kvm_pit_config { | |||
167 | #define KVM_EXIT_OSI 18 | 167 | #define KVM_EXIT_OSI 18 |
168 | #define KVM_EXIT_PAPR_HCALL 19 | 168 | #define KVM_EXIT_PAPR_HCALL 19 |
169 | #define KVM_EXIT_S390_UCONTROL 20 | 169 | #define KVM_EXIT_S390_UCONTROL 20 |
170 | #define KVM_EXIT_WATCHDOG 21 | ||
170 | 171 | ||
171 | /* For KVM_EXIT_INTERNAL_ERROR */ | 172 | /* For KVM_EXIT_INTERNAL_ERROR */ |
172 | #define KVM_INTERNAL_ERROR_EMULATION 1 | 173 | /* Emulate instruction failed. */ |
173 | #define KVM_INTERNAL_ERROR_SIMUL_EX 2 | 174 | #define KVM_INTERNAL_ERROR_EMULATION 1 |
175 | /* Encounter unexpected simultaneous exceptions. */ | ||
176 | #define KVM_INTERNAL_ERROR_SIMUL_EX 2 | ||
177 | /* Encounter unexpected vm-exit due to delivery event. */ | ||
178 | #define KVM_INTERNAL_ERROR_DELIVERY_EV 3 | ||
174 | 179 | ||
175 | /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ | 180 | /* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ |
176 | struct kvm_run { | 181 | struct kvm_run { |
@@ -477,6 +482,8 @@ struct kvm_ppc_smmu_info { | |||
477 | struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ]; | 482 | struct kvm_ppc_one_seg_page_size sps[KVM_PPC_PAGE_SIZES_MAX_SZ]; |
478 | }; | 483 | }; |
479 | 484 | ||
485 | #define KVM_PPC_PVINFO_FLAGS_EV_IDLE (1<<0) | ||
486 | |||
480 | #define KVMIO 0xAE | 487 | #define KVMIO 0xAE |
481 | 488 | ||
482 | /* machine type bits, to be used as argument to KVM_CREATE_VM */ | 489 | /* machine type bits, to be used as argument to KVM_CREATE_VM */ |
@@ -626,6 +633,8 @@ struct kvm_ppc_smmu_info { | |||
626 | #define KVM_CAP_READONLY_MEM 81 | 633 | #define KVM_CAP_READONLY_MEM 81 |
627 | #endif | 634 | #endif |
628 | #define KVM_CAP_IRQFD_RESAMPLE 82 | 635 | #define KVM_CAP_IRQFD_RESAMPLE 82 |
636 | #define KVM_CAP_PPC_BOOKE_WATCHDOG 83 | ||
637 | #define KVM_CAP_PPC_HTAB_FD 84 | ||
629 | 638 | ||
630 | #ifdef KVM_CAP_IRQ_ROUTING | 639 | #ifdef KVM_CAP_IRQ_ROUTING |
631 | 640 | ||
@@ -848,6 +857,11 @@ struct kvm_s390_ucas_mapping { | |||
848 | #define KVM_PPC_GET_SMMU_INFO _IOR(KVMIO, 0xa6, struct kvm_ppc_smmu_info) | 857 | #define KVM_PPC_GET_SMMU_INFO _IOR(KVMIO, 0xa6, struct kvm_ppc_smmu_info) |
849 | /* Available with KVM_CAP_PPC_ALLOC_HTAB */ | 858 | /* Available with KVM_CAP_PPC_ALLOC_HTAB */ |
850 | #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32) | 859 | #define KVM_PPC_ALLOCATE_HTAB _IOWR(KVMIO, 0xa7, __u32) |
860 | #define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) | ||
861 | /* Available with KVM_CAP_RMA */ | ||
862 | #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma) | ||
863 | /* Available with KVM_CAP_PPC_HTAB_FD */ | ||
864 | #define KVM_PPC_GET_HTAB_FD _IOW(KVMIO, 0xaa, struct kvm_get_htab_fd) | ||
851 | 865 | ||
852 | /* | 866 | /* |
853 | * ioctls for vcpu fds | 867 | * ioctls for vcpu fds |
@@ -911,9 +925,6 @@ struct kvm_s390_ucas_mapping { | |||
911 | /* Available with KVM_CAP_XCRS */ | 925 | /* Available with KVM_CAP_XCRS */ |
912 | #define KVM_GET_XCRS _IOR(KVMIO, 0xa6, struct kvm_xcrs) | 926 | #define KVM_GET_XCRS _IOR(KVMIO, 0xa6, struct kvm_xcrs) |
913 | #define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs) | 927 | #define KVM_SET_XCRS _IOW(KVMIO, 0xa7, struct kvm_xcrs) |
914 | #define KVM_CREATE_SPAPR_TCE _IOW(KVMIO, 0xa8, struct kvm_create_spapr_tce) | ||
915 | /* Available with KVM_CAP_RMA */ | ||
916 | #define KVM_ALLOCATE_RMA _IOR(KVMIO, 0xa9, struct kvm_allocate_rma) | ||
917 | /* Available with KVM_CAP_SW_TLB */ | 928 | /* Available with KVM_CAP_SW_TLB */ |
918 | #define KVM_DIRTY_TLB _IOW(KVMIO, 0xaa, struct kvm_dirty_tlb) | 929 | #define KVM_DIRTY_TLB _IOW(KVMIO, 0xaa, struct kvm_dirty_tlb) |
919 | /* Available with KVM_CAP_ONE_REG */ | 930 | /* Available with KVM_CAP_ONE_REG */ |