]> git.baikalelectronics.ru Git - kernel.git/commit
arm/arm64: KVM: export VCPU power state via MP_STATE ioctl
authorAlex Bennée <alex.bennee@linaro.org>
Fri, 13 Mar 2015 17:02:52 +0000 (17:02 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 14 Mar 2015 12:44:52 +0000 (13:44 +0100)
commite6cf8ebce7e0dbff39027477a50dae701ad5d25b
tree85a9d5575976623c9f6ba01081eaa6a0108be722
parentd567d8b504ee5bbc4b836c7c2b11d2d05b981db6
arm/arm64: KVM: export VCPU power state via MP_STATE ioctl

To cleanly restore an SMP VM we need to ensure that the current pause
state of each vcpu is correctly recorded. Things could get confused if
the CPU starts running after migration restore completes when it was
paused before it state was captured.

We use the existing KVM_GET/SET_MP_STATE ioctl to do this. The arm/arm64
interface is a lot simpler as the only valid states are
KVM_MP_STATE_RUNNABLE and KVM_MP_STATE_STOPPED.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Documentation/virtual/kvm/api.txt
arch/arm/kvm/arm.c