Please sign in to comment.
KVM: Clean up error handling during VCPU creation
commit d780592 upstream. 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 <firstname.lastname@example.org> Signed-off-by: Avi Kivity <email@example.com> Signed-off-by: Jiri Slaby <firstname.lastname@example.org> Signed-off-by: Greg Kroah-Hartman <email@example.com>
- Loading branch information...
Showing with 6 additions and 10 deletions.