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)
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>

No differences found