]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Sat, 21 Dec 2013 18:01:34 +0000 (10:01 -0800)
commit0c500fd570b7130376f709243fe65148fa411984
treef3ded53b9287df77f6550f8792a09bc923c531ab
parentf8789b60a4febc4d0651ddc0ad9ad1c254639d2b
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>
arch/arm/kvm/arm.c