History

KVM: s390: implement KVM_(S|G)ET_MP_STATE for user space state control

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.

David Hildenbrand committed 12 years ago

Commit 6352e4d1 parent 0b4820d7 files · +56 −8Browse files

Showing the changes to include/uapi/linux (1 of 7 files). Show all

Unified · Split

include/uapi/linux/kvm.h+4−0
@@ -407,6 +407,10 @@ struct kvm_vapic_addr { · 406 unmodified lines
407407 #define KVM_MP_STATE_INIT_RECEIVED 2
408408 #define KVM_MP_STATE_HALTED 3
409409 #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
410414
411415 struct kvm_mp_state {
412416 __u32 mp_state;