aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kvm.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h
index 48807767e726..35525ac63337 100644
--- a/include/linux/kvm.h
+++ b/include/linux/kvm.h
@@ -84,21 +84,18 @@ struct kvm_irqchip {
84#define KVM_EXIT_S390_RESET 14 84#define KVM_EXIT_S390_RESET 14
85#define KVM_EXIT_DCR 15 85#define KVM_EXIT_DCR 15
86#define KVM_EXIT_NMI 16 86#define KVM_EXIT_NMI 16
87#define KVM_EXIT_NMI_WINDOW_OPEN 17
88 87
89/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */ 88/* for KVM_RUN, returned by mmap(vcpu_fd, offset=0) */
90struct kvm_run { 89struct kvm_run {
91 /* in */ 90 /* in */
92 __u8 request_interrupt_window; 91 __u8 request_interrupt_window;
93 __u8 request_nmi_window; 92 __u8 padding1[7];
94 __u8 padding1[6];
95 93
96 /* out */ 94 /* out */
97 __u32 exit_reason; 95 __u32 exit_reason;
98 __u8 ready_for_interrupt_injection; 96 __u8 ready_for_interrupt_injection;
99 __u8 if_flag; 97 __u8 if_flag;
100 __u8 ready_for_nmi_injection; 98 __u8 padding2[2];
101 __u8 padding2;
102 99
103 /* in (pre_kvm_run), out (post_kvm_run) */ 100 /* in (pre_kvm_run), out (post_kvm_run) */
104 __u64 cr8; 101 __u64 cr8;
@@ -391,12 +388,14 @@ struct kvm_trace_rec {
391#define KVM_CAP_DEVICE_ASSIGNMENT 17 388#define KVM_CAP_DEVICE_ASSIGNMENT 17
392#endif 389#endif
393#define KVM_CAP_IOMMU 18 390#define KVM_CAP_IOMMU 18
394#define KVM_CAP_NMI 19
395#if defined(CONFIG_X86) 391#if defined(CONFIG_X86)
396#define KVM_CAP_DEVICE_MSI 20 392#define KVM_CAP_DEVICE_MSI 20
397#endif 393#endif
398/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */ 394/* Bug in KVM_SET_USER_MEMORY_REGION fixed: */
399#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21 395#define KVM_CAP_DESTROY_MEMORY_REGION_WORKS 21
396#if defined(CONFIG_X86)
397#define KVM_CAP_USER_NMI 22
398#endif
400 399
401/* 400/*
402 * ioctls for VM fds 401 * ioctls for VM fds