From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: qemu-kvm-1.0.1 - unable to exit if vcpu is in infinite loop Date: Thu, 28 Jun 2012 15:25:46 +0200 Message-ID: <4FEC5B5A.4060302@siemens.com> References: <4FEC56B2.6050502@dlhnet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" To: Peter Lieven Return-path: Received: from thoth.sbs.de ([192.35.17.2]:31586 "EHLO thoth.sbs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567Ab2F1NZx (ORCPT ); Thu, 28 Jun 2012 09:25:53 -0400 In-Reply-To: <4FEC56B2.6050502@dlhnet.de> Sender: kvm-owner@vger.kernel.org List-ID: On 2012-06-28 15:05, Peter Lieven wrote: > Hi, > > i debugged my initial problem further and found out that the problem > happens to be that > the main thread is stuck in pause_all_vcpus() on reset or quit commands > in the monitor > if one cpu is stuck in the do-while loop kvm_cpu_exec. If I modify the > condition from while (ret == 0) > to while ((ret == 0) && !env->stop); it works, but is this the right fix? > "Quit" command seems to work, but on "Reset" the VM enterns pause state. Before entering the wait loop in pause_all_vcpus, there are kicks sent to all vcpus. Now we need to find out why some of those kicks apparently don't reach the destination. Again: - on which host kernels does this occur, and which change may have changed it? - with which qemu-kvm version is it reproducible, and which commit introduced or fixed it? I failed reproducing so far. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux