From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48683) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0PSL-0003jm-FP for qemu-devel@nongnu.org; Thu, 13 Sep 2018 07:06:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0PSG-0007U9-DF for qemu-devel@nongnu.org; Thu, 13 Sep 2018 07:06:41 -0400 Received: from mail.ispras.ru ([83.149.199.45]:41856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0PSG-0007Rz-31 for qemu-devel@nongnu.org; Thu, 13 Sep 2018 07:06:36 -0400 From: "Pavel Dovgalyuk" References: <20180912081747.3228.21861.stgit@pasha-VirtualBox> <20180912081945.3228.19776.stgit@pasha-VirtualBox> In-Reply-To: Date: Thu, 13 Sep 2018 14:06:28 +0300 Message-ID: <000801d44b51$d2c81870$78584950$@ru> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Language: ru Subject: Re: [Qemu-devel] [PATCH v6 20/25] replay: wake up vCPU when replaying List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: 'Paolo Bonzini' , 'Pavel Dovgalyuk' , qemu-devel@nongnu.org Cc: kwolf@redhat.com, peter.maydell@linaro.org, war2jordan@live.com, crosthwaite.peter@gmail.com, boost.lists@gmail.com, quintela@redhat.com, ciro.santilli@gmail.com, jasowang@redhat.com, mst@redhat.com, zuban32s@gmail.com, armbru@redhat.com, maria.klimushenkova@ispras.ru, kraxel@redhat.com, thomas.dullien@googlemail.com, mreitz@redhat.com, alex.bennee@linaro.org, dgilbert@redhat.com, rth@twiddle.net > From: Paolo Bonzini [mailto:pbonzini@redhat.com] > On 12/09/2018 10:19, Pavel Dovgalyuk wrote: > > This patch tries to wake up the vCPU when it sleeps and the icount warp > > checkpoint isn't met. It means that vCPU has something to do, because > > there are no other reasons of non-matching warp checkpoint. > > What happens if !replay_has_checkpoint()? Should that be an assertion? The condition may be true, only when vCPU thread is sleeping. In all other cases (e.g., running) the condition is false and we have nothing to do. Pavel Dovgalyuk