]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - arch/arm/kvm/arm.c
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)
commitecccf0cc722f40e0dcc97872e7a960765119a256
tree85a9d5575976623c9f6ba01081eaa6a0108be722
parentaeda9130c38e2e0e77c1aaa65292c2f5a81107a8
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