diff options
Diffstat (limited to 'arch/x86/include/asm/kvm.h')
| -rw-r--r-- | arch/x86/include/asm/kvm.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm.h b/arch/x86/include/asm/kvm.h index ef9b4b73cce4..950df434763f 100644 --- a/arch/x86/include/asm/kvm.h +++ b/arch/x86/include/asm/kvm.h | |||
| @@ -20,6 +20,7 @@ | |||
| 20 | #define __KVM_HAVE_MCE | 20 | #define __KVM_HAVE_MCE |
| 21 | #define __KVM_HAVE_PIT_STATE2 | 21 | #define __KVM_HAVE_PIT_STATE2 |
| 22 | #define __KVM_HAVE_XEN_HVM | 22 | #define __KVM_HAVE_XEN_HVM |
| 23 | #define __KVM_HAVE_VCPU_EVENTS | ||
| 23 | 24 | ||
| 24 | /* Architectural interrupt line count. */ | 25 | /* Architectural interrupt line count. */ |
| 25 | #define KVM_NR_INTERRUPTS 256 | 26 | #define KVM_NR_INTERRUPTS 256 |
| @@ -252,4 +253,31 @@ struct kvm_reinject_control { | |||
| 252 | __u8 pit_reinject; | 253 | __u8 pit_reinject; |
| 253 | __u8 reserved[31]; | 254 | __u8 reserved[31]; |
| 254 | }; | 255 | }; |
| 256 | |||
| 257 | /* for KVM_GET/SET_VCPU_EVENTS */ | ||
| 258 | struct kvm_vcpu_events { | ||
| 259 | struct { | ||
| 260 | __u8 injected; | ||
| 261 | __u8 nr; | ||
| 262 | __u8 has_error_code; | ||
| 263 | __u8 pad; | ||
| 264 | __u32 error_code; | ||
| 265 | } exception; | ||
| 266 | struct { | ||
| 267 | __u8 injected; | ||
| 268 | __u8 nr; | ||
| 269 | __u8 soft; | ||
| 270 | __u8 pad; | ||
| 271 | } interrupt; | ||
| 272 | struct { | ||
| 273 | __u8 injected; | ||
| 274 | __u8 pending; | ||
| 275 | __u8 masked; | ||
| 276 | __u8 pad; | ||
| 277 | } nmi; | ||
| 278 | __u32 sipi_vector; | ||
| 279 | __u32 flags; | ||
| 280 | __u32 reserved[10]; | ||
| 281 | }; | ||
| 282 | |||
| 255 | #endif /* _ASM_X86_KVM_H */ | 283 | #endif /* _ASM_X86_KVM_H */ |
