KVM: Clean up vm creation and release
authorJan Kiszka <jan.kiszka@siemens.com>
Tue, 9 Nov 2010 16:02:49 +0000 (17:02 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:09 +0000 (11:29 +0200)
commitd89f5eff70a31237ffa1e21c51d23ca532110aea
tree13b47648a564d8382e08d7e5937ea30ff0fb838c
parent9d893c6bc177b6ac5a1e937f4fdc359d272d68ff
KVM: Clean up vm creation and release

IA64 support forces us to abstract the allocation of the kvm structure.
But instead of mixing this up with arch-specific initialization and
doing the same on destruction, split both steps. This allows to move
generic destruction calls into generic code.

It also fixes error clean-up on failures of kvm_create_vm for IA64.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/ia64/include/asm/kvm_host.h
arch/ia64/kvm/kvm-ia64.c
arch/powerpc/kvm/powerpc.c
arch/s390/kvm/kvm-s390.c
arch/x86/kvm/x86.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c