From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Lieven Subject: qemu-kvm-1.0.1 - unable to exit if vcpu is in infinite loop Date: Thu, 28 Jun 2012 15:05:54 +0200 Message-ID: <4FEC56B2.6050502@dlhnet.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit To: "qemu-devel@nongnu.org" , "kvm@vger.kernel.org" Return-path: Received: from ssl.dlhnet.de ([91.198.192.8]:55313 "EHLO ssl.dlh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753175Ab2F1NF4 (ORCPT ); Thu, 28 Jun 2012 09:05:56 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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. Thanks, Peter