From: Jan Kiszka Date: Mon, 23 May 2011 08:33:05 +0000 (+0200) Subject: KVM: Clean up error handling during VCPU creation X-Git-Tag: v3.1-rc1~264^2~127 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d780592b99d7d8a5ff905f6bacca519d4a342c76;p=pandora-kernel.git KVM: Clean up error handling during VCPU creation So far kvm_arch_vcpu_setup is responsible for freeing the vcpu struct if it fails. Move this confusing resonsibility back into the hands of kvm_vm_ioctl_create_vcpu. Only kvm_arch_vcpu_setup of x86 is affected, all other archs cannot fail. Signed-off-by: Jan Kiszka Signed-off-by: Avi Kivity --- Reading git-diff-tree failed