UPSTREAM: 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.

BUG=chromium:846515
TEST=build/boot on hana with USE=kvm_host

Change-Id: I2374b94ff4d505f05dcaae645b841d8668eadfe5
Signed-off-by: Alex Benne <alex.bennee@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit ecccf0cc722f40e0dcc97872e7a960765119a256)
Signed-off-by: Sonny Rao <sonnyrao@chromium.org>
[SR: context -- don't care about IA64]
 Conflicts:
	Documentation/virtual/kvm/api.txt
Reviewed-on: https://chromium-review.googlesource.com/1088068
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
2 files changed