diff options
| -rw-r--r-- | virt/kvm/arm/arm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index ca65d06b38a8..675844c2174a 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c | |||
| @@ -188,6 +188,7 @@ void kvm_arch_destroy_vm(struct kvm *kvm) | |||
| 188 | kvm->vcpus[i] = NULL; | 188 | kvm->vcpus[i] = NULL; |
| 189 | } | 189 | } |
| 190 | } | 190 | } |
| 191 | atomic_set(&kvm->online_vcpus, 0); | ||
| 191 | } | 192 | } |
| 192 | 193 | ||
| 193 | int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) | 194 | int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) |
| @@ -296,7 +297,6 @@ void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) | |||
| 296 | { | 297 | { |
| 297 | kvm_mmu_free_memory_caches(vcpu); | 298 | kvm_mmu_free_memory_caches(vcpu); |
| 298 | kvm_timer_vcpu_terminate(vcpu); | 299 | kvm_timer_vcpu_terminate(vcpu); |
| 299 | kvm_vgic_vcpu_destroy(vcpu); | ||
| 300 | kvm_pmu_vcpu_destroy(vcpu); | 300 | kvm_pmu_vcpu_destroy(vcpu); |
| 301 | kvm_vcpu_uninit(vcpu); | 301 | kvm_vcpu_uninit(vcpu); |
| 302 | kmem_cache_free(kvm_vcpu_cache, vcpu); | 302 | kmem_cache_free(kvm_vcpu_cache, vcpu); |
