Received: from eggs.gnu.org ([208.118.235.92]:35701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShtdM-0007Ap-LG for qemu-devel@nongnu.org; Thu, 21 Jun 2012 22:30:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShtdK-0001xn-Jf for qemu-devel@nongnu.org; Thu, 21 Jun 2012 22:30:04 -0400 Received: from csmailer.cs.nctu.edu.tw ([140.113.235.130]:27959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShtdJ-0001ru-UN for qemu-devel@nongnu.org; Thu, 21 Jun 2012 22:30:02 -0400 Date: Fri, 22 Jun 2012 10:29:53 +0800 From: =?utf-8?B?6Zmz6Z+L5Lu7IChXZWktUmVuIENoZW4p?= Message-ID: <20120622022953.GA53903@cs.nctu.edu.tw> References: <1340291218-11669-1-git-send-email-qemulist@gmail.com> <1340291218-11669-3-git-send-email-qemulist@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1340291218-11669-3-git-send-email-qemulist@gmail.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 2/2] kvm: use per-cpu lock to free vcpu thread out of the big lock List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Liu Ping Fan Cc: qemu-devel@nongnu.org Hi Liu, On Thu, Jun 21, 2012 at 11:06:58PM +0800, Liu Ping Fan wrote: > In order to break the big lock, using per-cpu_lock in kvm_cpu_exec() > to protect the race from other cpu's access to env->apic_state & relate= d > field in env. Can this also be applied on tcg_cpu_exec(), too? Regards, chenwj --=20 Wei-Ren Chen (=E9=99=B3=E9=9F=8B=E4=BB=BB) Computer Systems Lab, Institute of Information Science, Academia Sinica, Taiwan (R.O.C.) Tel:886-2-2788-3799 #1667 Homepage: http://people.cs.nctu.edu.tw/~chenwj