The attached patch avoids creating a circular list of cpus in do_fork.

Currently, cpu_init returns a pointer to the last element of the list.
This element is then overwritten by memcpy, including the cpu_index
and next_cpu fields. The patch simply restores these fields to the
correct values.

The circular list causes a test program to halt when cpu_exec_init is
called again.

Best Regards,
Rafael

Attachment: list.patch
Description: Binary data

_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to