]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:00 +0000 (11:15 +0200)
commita9ae6f03a85a4108027dc764eeb9625b59f58b0c
tree2d8506aa5a8b0679d0f819e822d0f39a0d340abb
parent69a023a70ac77b581f11f12ea61d065fc3bf79fc
arm/arm64: kvm: Set vcpu->cpu to -1 on vcpu_put

commit e9b152cb957cb194437f37e79f0f3c9d34fe53d6 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/arm/kvm/arm.c