]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2cf6e4cb595980347d92cf796858c0282604af29
tree4417fc296c719f23e952076873cdb91a4c3c757d
parent8710419c9e5fd53fe868a70da963ce59d41f2363
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