Revision d4834ff9 linux-headers/linux/kvm.h
b/linux-headers/linux/kvm.h | ||
---|---|---|
167 | 167 |
#define KVM_EXIT_OSI 18 |
168 | 168 |
#define KVM_EXIT_PAPR_HCALL 19 |
169 | 169 |
#define KVM_EXIT_S390_UCONTROL 20 |
170 |
#define KVM_EXIT_WATCHDOG 21 |
|
170 | 171 |
|
171 | 172 |
/* For KVM_EXIT_INTERNAL_ERROR */ |
172 |
#define KVM_INTERNAL_ERROR_EMULATION 1 |
|
173 |
#define KVM_INTERNAL_ERROR_SIMUL_EX 2 |
|
173 |
/* Emulate instruction failed. */ |
|
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 | 180 |
/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ |
176 | 181 |
struct kvm_run { |
... | ... | |
477 | 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 | 487 |
#define KVMIO 0xAE |
481 | 488 |
|
482 | 489 |
/* machine type bits, to be used as argument to KVM_CREATE_VM */ |
... | ... | |
626 | 633 |
#define KVM_CAP_READONLY_MEM 81 |
627 | 634 |
#endif |
628 | 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 | 639 |
#ifdef KVM_CAP_IRQ_ROUTING |
631 | 640 |
|
... | ... | |
848 | 857 |
#define KVM_PPC_GET_SMMU_INFO _IOR(KVMIO, 0xa6, struct kvm_ppc_smmu_info) |
849 | 858 |
/* Available with KVM_CAP_PPC_ALLOC_HTAB */ |
850 | 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 | 867 |
* ioctls for vcpu fds |
... | ... | |
911 | 925 |
/* Available with KVM_CAP_XCRS */ |
912 | 926 |
#define KVM_GET_XCRS _IOR(KVMIO, 0xa6, struct kvm_xcrs) |
913 | 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 | 928 |
/* Available with KVM_CAP_SW_TLB */ |
918 | 929 |
#define KVM_DIRTY_TLB _IOW(KVMIO, 0xaa, struct kvm_dirty_tlb) |
919 | 930 |
/* Available with KVM_CAP_ONE_REG */ |
Also available in: Unified diff