arm/arm64: kvm: Set vcpu->cpu to -1 on vcpu_put
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 12 Dec 2013 04:29:11 +0000 (20:29 -0800)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:25 +0000 (17:18 +0200)
commitf05c65c6daf2d2c33c31ddc3b48df2693f8e9594
treea739b9c4af97ba3586dd56d871bb615bc640baf0
parent405003b808d4ff3de73eebc18dfb6f1e708626c4
arm/arm64: kvm: Set vcpu->cpu to -1 on vcpu_put

The arch-generic KVM code expects the cpu field of a vcpu to be -1 if
the vcpu is no longer assigned to a cpu.  This is used for the optimized
make_all_cpus_request path and will be used by the vgic code to check
that no vcpus are running.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit e9b152cb957cb194437f37e79f0f3c9d34fe53d6)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/arm.c