diff options
Diffstat (limited to 'include/linux/kvm.h')
-rw-r--r-- | include/linux/kvm.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/kvm.h b/include/linux/kvm.h index d302d63517e4..f8e211d8ce88 100644 --- a/include/linux/kvm.h +++ b/include/linux/kvm.h | |||
@@ -228,6 +228,18 @@ struct kvm_vapic_addr { | |||
228 | __u64 vapic_addr; | 228 | __u64 vapic_addr; |
229 | }; | 229 | }; |
230 | 230 | ||
231 | /* for KVM_SET_MPSTATE */ | ||
232 | |||
233 | #define KVM_MP_STATE_RUNNABLE 0 | ||
234 | #define KVM_MP_STATE_UNINITIALIZED 1 | ||
235 | #define KVM_MP_STATE_INIT_RECEIVED 2 | ||
236 | #define KVM_MP_STATE_HALTED 3 | ||
237 | #define KVM_MP_STATE_SIPI_RECEIVED 4 | ||
238 | |||
239 | struct kvm_mp_state { | ||
240 | __u32 mp_state; | ||
241 | }; | ||
242 | |||
231 | struct kvm_s390_psw { | 243 | struct kvm_s390_psw { |
232 | __u64 mask; | 244 | __u64 mask; |
233 | __u64 addr; | 245 | __u64 addr; |
@@ -326,6 +338,7 @@ struct kvm_trace_rec { | |||
326 | #define KVM_CAP_PIT 11 | 338 | #define KVM_CAP_PIT 11 |
327 | #define KVM_CAP_NOP_IO_DELAY 12 | 339 | #define KVM_CAP_NOP_IO_DELAY 12 |
328 | #define KVM_CAP_PV_MMU 13 | 340 | #define KVM_CAP_PV_MMU 13 |
341 | #define KVM_CAP_MP_STATE 14 | ||
329 | 342 | ||
330 | /* | 343 | /* |
331 | * ioctls for VM fds | 344 | * ioctls for VM fds |
@@ -387,5 +400,7 @@ struct kvm_trace_rec { | |||
387 | #define KVM_S390_SET_INITIAL_PSW _IOW(KVMIO, 0x96, struct kvm_s390_psw) | 400 | #define KVM_S390_SET_INITIAL_PSW _IOW(KVMIO, 0x96, struct kvm_s390_psw) |
388 | /* initial reset for s390 */ | 401 | /* initial reset for s390 */ |
389 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) | 402 | #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) |
403 | #define KVM_GET_MP_STATE _IOR(KVMIO, 0x98, struct kvm_mp_state) | ||
404 | #define KVM_SET_MP_STATE _IOW(KVMIO, 0x99, struct kvm_mp_state) | ||
390 | 405 | ||
391 | #endif | 406 | #endif |