From: Rusty Russell Date: Mon, 8 Oct 2007 00:50:48 +0000 (+1000) Subject: KVM: Hoist kvm_create_lapic() into kvm_vcpu_init() X-Git-Tag: v2.6.25-rc1~1138^2~225 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=76fafa5e22bd82e92d2734852ba23f17322d675a;p=pandora-kernel.git KVM: Hoist kvm_create_lapic() into kvm_vcpu_init() Move kvm_create_lapic() into kvm_vcpu_init(), rather than having svm and vmx do it. And make it return the error rather than a fairly random -ENOMEM. This also solves the problem that neither svm.c nor vmx.c actually handles the error path properly. Signed-off-by: Rusty Russell Signed-off-by: Avi Kivity --- Reading git-diff-tree failed