PERFORCE change 127602 for review

Marko Zec zec at FreeBSD.org
Tue Oct 16 08:39:14 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=127602

Change 127602 by zec at zec_tca51 on 2007/10/16 15:39:07

	The vcpu list needs to be protected not only when new
	items are added to it, but when they get removed as well.

Affected files ...

.. //depot/projects/vimage/src/sys/kern/kern_vimage.c#45 edit

Differences ...

==== //depot/projects/vimage/src/sys/kern/kern_vimage.c#45 (text+ko) ====

@@ -721,7 +721,9 @@
 	LIST_REMOVE(vprocg, vprocg_le);
 	vi_free(vprocg, M_VPROCG);
 
+	mtx_lock_spin(&vcpu_list_mtx);
 	LIST_REMOVE(vcpu, vcpu_le);
+	mtx_unlock_spin(&vcpu_list_mtx);
 	vi_free(vcpu, M_VCPU);
 
 	LIST_REMOVE(vip, vi_le);


More information about the p4-projects mailing list