]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Fix userspace_irqchip_in_use counting
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 25 Jan 2018 17:32:29 +0000 (18:32 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 31 Jan 2018 09:10:38 +0000 (10:10 +0100)
commitc59c44d78c17a3c97e2fa4e06b7dff05c6751d9a
treec72891674e1b4d1c6d88c2a9d2c66b186e6904c7
parent3c7b18515087d714748fcf77f13331dc000381d5
KVM: arm/arm64: Fix userspace_irqchip_in_use counting

We were not decrementing the static key count in the right location.
kvm_arch_vcpu_destroy() is only called to clean up after a failed
VCPU create attempt, whereas kvm_arch_vcpu_free() is called on teardown
of the VM as well.  Move the static key decrement call to
kvm_arch_vcpu_free().

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