From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbvlY-00050H-DU for qemu-devel@nongnu.org; Thu, 31 Oct 2013 13:10:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbvlE-0007NL-Ka for qemu-devel@nongnu.org; Thu, 31 Oct 2013 13:10:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48166) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbvlE-0007N4-BA for qemu-devel@nongnu.org; Thu, 31 Oct 2013 13:10:20 -0400 Message-ID: <52728EE1.9000701@redhat.com> Date: Thu, 31 Oct 2013 18:09:53 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <20131031150955.GE9948@redhat.com> <52727695.8080007@redhat.com> <20131031154556.GB10424@redhat.com> <52727D97.3070209@redhat.com> <20131031161404.GA10710@redhat.com> <52728294.9050305@redhat.com> <20131031162652.GA10789@redhat.com> <52728790.7010404@redhat.com> <20131031164828.GA10862@redhat.com> <52728ABB.2030808@redhat.com> <20131031170033.GA10925@redhat.com> In-Reply-To: <20131031170033.GA10925@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] pvpanic plans? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: pkrempa@redhat.com, lersek@redhat.com, marcel.a@redhat.com, libvir-list@redhat.com, Hu Tao , qemu-devel@nongnu.org, armbru@redhat.com, rhod@redhat.com, kraxel@redhat.com, anthony@codemonkey.ws, lcapitulino@redhat.com, afaerber@suse.de Il 31/10/2013 18:00, Michael S. Tsirkin ha scritto: > Interesting. Why do we have > - { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED }, > then? It's only for non-resumable states (such as pvpanic right now). It's used here: if (qemu_reset_requested()) { pause_all_vcpus(); cpu_synchronize_all_states(); qemu_system_reset(VMRESET_REPORT); resume_all_vcpus(); if (runstate_needs_reset()) { runstate_set(RUN_STATE_PAUSED); } } Don't ask me what's happening with that resume_all_vcpus, because I have no idea. But I tested it now, and "system_reset" will indeed move you from "paused (internal-error)" to "paused" with RIP=0xfffffff0. Paolo