KVM: arm/arm64: vgic: Move kvm_vgic_destroy call around
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 27 Oct 2017 14:28:34 +0000 (15:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 6 Nov 2017 16:20:20 +0000 (17:20 +0100)
commitb2c9a85dd75a8cfa18da94b19e84eb0199011187
tree07b27bd8b083aeba75d274b11b847c1eb7c32026
parent7129a9d8a6f352e93647264a495281f789a87aa0
KVM: arm/arm64: vgic: Move kvm_vgic_destroy call around

The way we call kvm_vgic_destroy is a bit bizarre. We call it
*after* having freed the vcpus, which sort of defeats the point
of cleaning up things before that point.

Let's move kvm_vgic_destroy towards the beginning of kvm_arch_destroy_vm,
which seems more sensible.

Acked-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
virt/kvm/arm/arm.c