KVM: s390: Fix refcounting and allow module unload
authorChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 26 Nov 2008 13:50:27 +0000 (14:50 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 31 Dec 2008 14:55:03 +0000 (16:55 +0200)
commitd329c035e754156ffabcb64ff75d05bb8e2ddbf5
tree4417fc296c719f23e952076873cdb91a4c3c757d
parent6b7ad61ffb9ca110add6f7fb36cc8a4dd89696a4
KVM: s390: Fix refcounting and allow module unload

Currently it is impossible to unload the kvm module on s390.
This patch fixes kvm_arch_destroy_vm to release all cpus.
This make it possible to unload the module.

In addition we stop messing with the module refcount in arch code.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/s390/kvm/kvm-s390.c