This patch - adds s390 specific MP states to linux headers and documents them - implements the KVM_{SET,GET}_MP_STATE ioctls - enables KVM_CAP_MP_STATE - allows user space to control the VCPU state on s390. If user space sets the VCPU state using the ioctl KVM_SET_MP_STATE, we can disable manual changing of the VCPU state and trust user space to do the right thing.
Showing the changes to include/uapi/linux (1 of 7 files). Show all
Unified · Split
| @@ -407,6 +407,10 @@ struct kvm_vapic_addr { · 406 unmodified lines | ||
| 407 | 407 | #define KVM_MP_STATE_INIT_RECEIVED 2 |
| 408 | 408 | #define KVM_MP_STATE_HALTED 3 |
| 409 | 409 | #define KVM_MP_STATE_SIPI_RECEIVED 4 |
| 410 | +#define KVM_MP_STATE_STOPPED 5 | |
| 411 | +#define KVM_MP_STATE_CHECK_STOP 6 | |
| 412 | +#define KVM_MP_STATE_OPERATING 7 | |
| 413 | +#define KVM_MP_STATE_LOAD 8 | |
| 410 | 414 | |
| 411 | 415 | struct kvm_mp_state { |
| 412 | 416 | __u32 mp_state; |